SGI: Development

xpdf 3.03

Does this file crash anyone else's xpdf 3.03 ?

(SFW, just an APC brochure)
Code:
urchin 1% WARNING: core: xpdf: PID 1513, failed to write a  text area (core file deleted)

Attachment:
ASTE-6Z6KAM_R0_EN.pdf [665.12 KiB]
Downloaded 13 times
It crashes, just like some other pdfs I've tried, in freetype. So far, I haven't found the time to track down the cause.
Code:
$ dbx ./xpdf/xpdf
dbx version 7.3.3 (78517_Dec16 MR) Dec 16 2001 07:45:22
[...]
(dbx) run ASTE-6Z6KAM_R0_EN-xpdf-crash.pdf
Process  3233 (xpdf) started
Process  3233 (xpdf) stopped on signal SIGSEGV: Segmentation violation (default)
at [tt_face_get_name:166 ,0x462494]
166  for ( n = 0; n < face->num_names; n++, rec++ )
(dbx) where
>  0 tt_face_get_name(0x1042a370, 0x15, 0x1042a384, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/freetype/freetype-2.4.11/src/sfnt/sfobjs.c":166, 0x462494]
1 sfnt_load_face(0x4623c0, 0x1042a370, 0x0, 0x0, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/freetype/freetype-2.4.11/src/sfnt/sfobjs.c":783, 0x4632f8]
2 tt_face_init(0x0, 0x0, 0x0, 0x0, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/freetype/freetype-2.4.11/src/truetype/ttobjs.c":557, 0x426db4]
3 open_face(0x0, 0x0, 0x0, 0x0, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/freetype/freetype-2.4.11/src/base/ftobjs.c":1236, 0x40d448]
4 FT_Open_Face(0x1042a370, 0x7ffb6720, 0x0, 0x0, 0x102ad8e0, 0x0, 0x2, 0x1) ["/usr/people/canavan/src/freetype/freetype-2.4.11/src/base/ftobjs.c":2166, 0x40ec94]
5 FT_New_Face(0x1042a370, 0x102ae314, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/freetype/freetype-2.4.11/src/base/ftobjs.c":1298, 0x40d544]
6 SplashFTFontFile::loadTrueTypeFont(SplashFTFontEngine*,SplashFontFileID*,char*,int,int,int*,int)(0x4, 0x0, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/splash/SplashFTFontEngine.cc":75, 0x100fe174]
7 SplashFTFontEngine::loadTrueTypeFont(SplashFontFileID*,char*,int,int,int*,int)(0x0, 0x0, 0x0, 0x0, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/splash/SplashFontEngine.cc":174, 0x10102cf4]
8 SplashFontEngine::loadTrueTypeFont(SplashFontFileID*,char*,int,int,int*,int,char*)(0x1042a370, 0x15, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/splash/SplashFontEngine.cc":262, 0x101066ac]
9 SplashOutputDev::doUpdateFont(GfxState*)(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1046d220, 0x0) ["/usr/people/canavan/src/xpdf/xpdf-3.03/splash/SplashFontEngine.cc":1319, 0x10109d50]
10 SplashOutputDev::drawChar(GfxState*,double,double,double,double,double,double,unsigned int,int,unsigned int*,int)(0x1028ceb0, 0x10479100, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/splash/SplashFontEngine.cc":1678, 0x1010a518]
11 Gfx::doShowText(GString*)(0x1046a1b8, 0x10429b18, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/goo/gmem.cc":3480, 0x1017d4d4]
12 Gfx::opShowSpaceText(Object*,int)(0x1046a1b8, 0x0, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/goo/gmem.cc":3315, 0x1017cac4]
13 Gfx::go(int)(0x0, 0x0, 0x1, 0xffff, 0x101de6f0, 0x0, 0x2, 0x0) ["/usr/people/canavan/src/xpdf/xpdf-3.03/xpdf/CMap.cc":729, 0x10051bdc]
14 Gfx::display(Object*,int)(0x1046a1b8, 0x7ffb71d0, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/goo/gmem.cc":587, 0x1017c5b8]
15 Page::displaySlice(OutputDev*,double,double,int,int,int,int,int,int,int,int,int (*)(void*),void*)(0x102aecd0, 0x1028ceb0, 0x102aecd0, 0x1046a1b8, 0x1046a1b8, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/xpdf/SplashOutputDev.cc":350, 0x1012f1f8]
16 PDFDoc::displayPageSlice(OutputDev*,int,double,double,int,int,int,int,int,int,int,int,int (*)(void*),void*)(0x1042a370, 0x15, 0x0, 0xffff, 0x0, 0x0, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/xpdf/Link.cc":410, 0x100aca34]
17 PDFCore::update(int,int,int,double,int,int,int,int)(0x1028c858, 0x102cd3a8, 0x0, 0x3de, 0x8000, 0x3de, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/xpdf/Link.cc":884, 0x100afde8]
18 XPDFCore::update(int,int,int,double,int,int,int,int)(0x1028c858, 0x15, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/xpdf/Link.cc":284, 0x100b06b0]
19 PDFCore::gotoNextPage(int,int)(0x1042a370, 0x15, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/xpdf/Link.cc":926, 0x100ab288]
20 XPDFCore::gotoNextPage(int,int)(0x0, 0x15, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/xpdf/Link.cc":312, 0x100ab31c]
21 XPDFViewer::nextPageCbk(_WidgetRec*,void*,void*)(0x1042a370, 0x15, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/xpdf/XPDFApp.cc":2589, 0x100984b4]
22 XtCallCallbackList(0x1027d158, 0x1027acc8, 0x7ffb75e0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/xlv41/6.5.30m/work/x/xc/lib/Xt/Intrinsic.c":671, 0xf429040]
23 ActivateCommon(0x1027d158, 0x7ffb7838, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/xlv41/6.5.30m/work/motif2.1/src/lib/Xm/PushB.c":2433, 0x41a1044]
24 Activate(0x1042a370, 0x15, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/xlv41/6.5.30m/work/motif2.1/src/lib/Xm/PushB.c":2342, 0x41a10f4]
25 HandleActions(0x1027d158, 0x7ffb7838, 0x0, 0x1027d158, 0x8000, 0x10000, 0x2, 0x1) ["/xlv41/6.5.30m/work/x/xc/lib/Xt/VarCreate.c":627, 0xf47c8fc]
26 HandleComplexState(0x0, 0x1027d188, 0x7ffb7700, 0x0, 0x8000, 0x10000, 0x2, 0x1) ["/xlv41/6.5.30m/work/x/xc/lib/Xt/VarCreate.c":1053, 0xf4901a4]
27 _XtTranslateEvent(0x1042a370, 0x7ffb7838, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/xlv41/6.5.30m/work/x/xc/lib/Xt/Intrinsic.c":1085, 0xf427854]
28 XtDispatchEventToWidget(0x1027d158, 0x7ffb7838, 0x0, 0xffff, 0x8000, 0x10000, 0x2, 0x1) ["/xlv41/6.5.30m/work/x/xc/lib/Xt/EventUtil.c":1033, 0xf42625c]
29 _XtDefaultDispatcher(0x7ffb7838, 0x15, 0x0, 0x0, 0x8000, 0x10000, 0x2, 0x1) ["/xlv41/6.5.30m/work/x/xc/lib/Xt/EventUtil.c":1507, 0xf47a200]
30 XtAppMainLoop(0x10221a10, 0x15, 0x0, 0x0, 0x8000, 0x10000, 0x2, 0x1) ["/xlv41/6.5.30m/work/x/xc/lib/Xt/EventUtil.c":1570, 0xf4248cc]
31 ::main(0x0, 0x0, 0x0, 0x0, 0x0, 0x10000, 0x0, 0x1) ["/usr/people/canavan/src/xpdf/xpdf-3.03/xpdf/GlobalParams.cc":313, 0x100503ec]
32 __start() ["/xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M4/csu/crt1text.s":177, 0x10030fe8]
Fortunately, I have only the 3.0 which i OK :-)
canavan wrote:
It crashes, just like some other pdfs I've tried, in freetype.

Thank you, I'll pass that along.
I've just uploaded a patched version of freetype to /incoming and opened a bug for freetype at
https://savannah.nongnu.org/patch/index.php?7952
canavan wrote:
I've just uploaded a patched version of freetype ...

Whoo baby, canavan be da man ! this works perfect !

Thank you.
acroread opens it just fine :P

_________________
r-a-c.de