[XeTeX] segmentation fault with a given font

Pablo Rodríguez oinos at web.de
Tue Jan 16 18:18:26 CET 2007


Compiling this simple document with XeLaTeX:

\documentclass[a4paper,12pt]{book}
\usepackage[a4paper]{geometry}
\usepackage[german,spanish]{babel}
\usepackage{fontspec}
\setromanfont{Grandjean Garamond}
\begin{document}
hi
\end{document}

I get a segmentation fault. I know that the problem is in the font
naming. This is what I get after restarting the system:

$ fc-list "Grandjean Garamond" family style file
/usr/share/fonts/drakfont/ttf/Grandjean-Garamond-BoldItalic.ttf:
Grandjean Garamond:style=Bold Italic
/usr/share/fonts/drakfont/ttf/Grandjean-Garamond-Italic.ttf: Grandjean
Garamond:style=Italic
/usr/share/fonts/drakfont/ttf/Grandjean-Garamond-Regular.ttf: Grandjean
Garamond:style=Regular
/usr/share/fonts/drakfont/ttf/Grandjean-Garamond-Bold.ttf: Grandjean
Garamond:style=Bold

And the backtrace is the following:

Program received signal SIGSEGV, Segmentation fault.
0x081299c6 in icu_3_4::CoverageFormat1Table::getGlyphCoverage
(this=0x8ba0f4a,
    glyphID=3) at ../../../../libs/icu-xetex/layout/CoverageTables.cpp:51
51      ../../../../libs/icu-xetex/layout/CoverageTables.cpp: No such
file or directory.
        in ../../../../libs/icu-xetex/layout/CoverageTables.cpp
Current language:  auto; currently c++
(gdb) bt
#0  0x081299c6 in icu_3_4::CoverageFormat1Table::getGlyphCoverage (
    this=0x8ba0f4a, glyphID=3)
    at ../../../../libs/icu-xetex/layout/CoverageTables.cpp:51
#1  0x0812bdd3 in icu_3_4::PairPositioningFormat2Subtable::process (
    this=0x8ba0e1a, glyphIterator=0xbfd553a4, fontInstance=0x8b97928)
    at ../../../../libs/icu-xetex/layout/Lookups.h:61
#2  0x081267d4 in icu_3_4::LookupProcessor::applyLookupTable
(this=0xbfd55410,
    lookupTable=0x8b9d328, glyphIterator=0xbfd553a4, fontInstance=0x8b97928)
    at ../../../../libs/icu-xetex/layout/LookupProcessor.cpp:39
#3  0x0812697b in icu_3_4::LookupProcessor::process (this=0xbfd55410,
    glyphStorage=@0x8b98498, glyphPositionAdjustments=0x8a73da0,
    rightToLeft=0 '\0', glyphDefinitionTableHeader=0x8b98678,
    fontInstance=0x8b97928)
    at ../../../../libs/icu-xetex/layout/LookupProcessor.cpp:79
#4  0x08123612 in icu_3_4::GlyphPositioningTableHeader::process (
    this=0x8b9d210, glyphStorage=@0x8b98498,
    glyphPositionAdjustments=0x8a73da0, rightToLeft=0 '\0',
    scriptTag=1818326126, languageTag=0,
glyphDefinitionTableHeader=0x8b98678,
    fontInstance=0x8b97928, featureOrder=0x0)
    at ../../../../libs/icu-xetex/layout/GlyphPositioningTables.cpp:27
#5  0x0811f681 in icu_3_4::OpenTypeLayoutEngine::adjustGlyphPositions (
    this=0x8b98450, chars=0xb696b710, offset=0, count=1, reverse=0 '\0',
    glyphStorage=@0x8b98498, success=@0xbfd5553c)
    at ../../../../libs/icu-xetex/layout/OpenTypeLayoutEngine.cpp:271
#6  0x081219b5 in icu_3_4::LayoutEngine::layoutChars (this=0x8b98450,
    chars=0xb696b710, offset=0, count=1, max=1, rightToLeft=0 '\0', x=0,
y=0,
    success=@0xbfd5553c)
    at ../../../../libs/icu-xetex/layout/LayoutEngine.cpp:445
#7  0x080a1166 in layoutChars ()
#8  0x08094658 in measure_native_node (pNode=0xb696b6e0,
use_glyph_metrics=1)
    at ../../../texk/web2c/xetexdir/XeTeX_ext.c:1516
#9  0x0807342d in znewnativecharacter (f=17, c=Variable "c" is not
available.
) at xetex1.c:3244
#10 0x080766ac in zloadnativefont (u=605545, nom=72869, aire=65617,
s=655360)
    at xetex1.c:3434
#11 0x080769b0 in zreadfontinfo (u=605545, nom=72869, aire=65617, s=655360)
    at xetex1.c:3551
#12 0x08084428 in znewfont (a=0 '\0') at xetex2.c:6638
#13 0x08056255 in prefixedcommand () at xetexini.c:2881
#14 0x0808d945 in maincontrol () at xetex2.c:8476
#15 0x0805af56 in mainbody () at xetexini.c:4952
#16 0x08093697 in main (ac=Cannot access memory at address 0xffff
) at xetexextra.c:350

As far as I know, the font names are correct and they work fine with
other applications.

Thanks for your help,


Pablo


More information about the XeTeX mailing list