Bug 18671 - okular crashes on page 9 of a casio calculator manual
Summary: okular crashes on page 9 of a casio calculator manual
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-23 01:51 UTC by Sitaram Chamarty
Modified: 2011-06-19 15:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Sitaram Chamarty 2008-11-23 01:51:19 UTC
rendering the PDF at http://ftp.casio.co.jp/pub/world_manual/edu/en/fx115MS_991MS_E.pdf crashes okular once you go past page 8.

A quick check on IRC and someone said this should be reported to poppler; apologies if that is not so...
Comment 1 Brad Hards 2008-11-23 02:05:53 UTC
On my kubuntu 8.10 box, I see the crash. Looks like a freetype problem.

The package is Freetype 2.3.7-2ubuntu1.

Application: Okular (okular), signal SIGFPE
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7f9ac8c896f0 (LWP 14560)]
[New Thread 0x4206d950 (LWP 14629)]
[KCrash handler]
#4  0x00007f9ac226bedf in ?? () from /usr/lib/libfreetype.so.6
#5  0x00007f9ac226c030 in ?? () from /usr/lib/libfreetype.so.6
#6  0x00007f9ac226c2ab in ?? () from /usr/lib/libfreetype.so.6
#7  0x00007f9ac227059d in ?? () from /usr/lib/libfreetype.so.6
#8  0x00007f9ac227098e in ?? () from /usr/lib/libfreetype.so.6
#9  0x00007f9ac22508b0 in ?? () from /usr/lib/libfreetype.so.6
#10 0x00007f9ac2252d3e in FT_Open_Face () from /usr/lib/libfreetype.so.6
#11 0x00007f9ac2253af0 in FT_New_Memory_Face () from /usr/lib/libfreetype.so.6
#12 0x00007f9aba390c6b in SplashFTFontFile::loadType1Font (engineA=0x1119180, 
    idA=0x1404db0, src=0x11f7450, encA=0x136b240) at SplashFTFontFile.cc:38
#13 0x00007f9aba3919c4 in SplashFontEngine::loadType1CFont (
    this=<value optimized out>, idA=0x0, src=0x11f7450, enc=0xfffffffe)
    at SplashFontEngine.cc:156
#14 0x00007f9aba2c530a in SplashOutputDev::doUpdateFont (this=0xbd6660, 
    state=0x11f8620) at SplashOutputDev.cc:1045
#15 0x00007f9aba2c55ec in SplashOutputDev::drawChar (this=0x142e588, 
    state=0x0, x=<value optimized out>, y=<value optimized out>, 
    dx=<value optimized out>, dy=<value optimized out>, originX=0, originY=0, 
    code=112, nBytes=-2, u=0x390b235, uLen=-2) at SplashOutputDev.cc:1323
#16 0x00007f9aba2f6b20 in Gfx::doShowText (this=0x113bba0, s=0x11e20f0)
    at Gfx.cc:3389
#17 0x00007f9aba2f7b3a in Gfx::opShowText (this=0x113bba0, args=0x4206cad0, 
    numArgs=<value optimized out>) at Gfx.cc:3176
#18 0x00007f9aba2eef5c in Gfx::go (this=0x113bba0, topLevel=1) at Gfx.cc:611
#19 0x00007f9aba2f5646 in Gfx::display (this=0x113bba0, obj=0x4206ce00, 
    topLevel=1) at Gfx.cc:580
#20 0x00007f9aba33af40 in Page::displaySlice (this=0x10cd5e0, out=0xbd6660, 
    hDPI=131.65714285714284, vDPI=131.84886649874056, 
    rotate=<value optimized out>, useMediaBox=<value optimized out>, crop=1, 
    sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=0, 
    catalog=0x10bf6b0, abortCheckCbk=0, abortCheckCbkData=0x0, 
    annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at Page.cc:415
#21 0x00007f9aba646a1d in Poppler::Page::renderToImage (this=0x11b8130, 
    xres=131.65714285714284, yres=131.84886649874056, x=-1, y=-1, w=-1, h=-1, 
    rotate=Poppler::Page::Rotate0) at poppler-page.cc:188
#22 0x00007f9aba8a21fa in ?? () from /usr/lib/kde4/okularGenerator_poppler.so
#23 0x00007f9ac77be362 in ?? () from /usr/lib/libQtCore.so.4
#24 0x00007f9ac31393ea in start_thread () from /lib/libpthread.so.0
#25 0x00007f9ac641bc6d in clone () from /lib/libc.so.6
#26 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9ac8c896f0 (LWP 14560)):
#0  0x00007f9ac6414482 in select () from /lib/libc.so.6
#1  0x00007f9ac1456356 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f9ac1457bdd in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#3  0x00007f9ac541458e in _XReply () from /usr/lib/libX11.so.6
#4  0x00007f9ac540978d in XTranslateCoordinates () from /usr/lib/libX11.so.6
#5  0x00007f9ac6c023bc in QWidget::mapFromGlobal ()
   from /usr/lib/libQtGui.so.4
#6  0x00007f9ac6c02429 in QWidget::mapFromGlobal ()
   from /usr/lib/libQtGui.so.4
#7  0x00007f9ac6c02429 in QWidget::mapFromGlobal ()
   from /usr/lib/libQtGui.so.4
#8  0x00007f9ac6c02429 in QWidget::mapFromGlobal ()
   from /usr/lib/libQtGui.so.4
#9  0x00007f9ac6c02429 in QWidget::mapFromGlobal ()
   from /usr/lib/libQtGui.so.4
#10 0x00007f9ac6c02429 in QWidget::mapFromGlobal ()
   from /usr/lib/libQtGui.so.4
#11 0x00007f9ac6c02429 in QWidget::mapFromGlobal ()
   from /usr/lib/libQtGui.so.4
#12 0x00007f9abc680905 in ?? () from /usr/lib/kde4/okularpart.so
#13 0x00007f9abc372b86 in Okular::Document::setViewport ()
   from /usr/lib/libokularcore.so.1
#14 0x00007f9abc372fa4 in Okular::Document::setViewportPage ()
   from /usr/lib/libokularcore.so.1
#15 0x00007f9abc636e5d in ?? () from /usr/lib/kde4/okularpart.so
#16 0x00007f9ac78bb134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#17 0x00007f9ac6b78f57 in QAction::triggered () from /usr/lib/libQtGui.so.4
#18 0x00007f9ac6b79720 in QAction::activate () from /usr/lib/libQtGui.so.4
#19 0x00007f9ac6b7cfd2 in QAction::qt_metacall () from /usr/lib/libQtGui.so.4
#20 0x00007f9ac6bd59f5 in QWidgetAction::qt_metacall ()
   from /usr/lib/libQtGui.so.4
#21 0x00007f9ac812b568 in KAction::qt_metacall () from /usr/lib/libkdeui.so.5
#22 0x00007f9ac78bb134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#23 0x00007f9abc661d93 in ?? () from /usr/lib/kde4/okularpart.so
#24 0x00007f9ac78bb134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#25 0x00007f9ac7105737 in QAbstractButton::clicked ()
   from /usr/lib/libQtGui.so.4
#26 0x00007f9ac6e8988b in ?? () from /usr/lib/libQtGui.so.4
#27 0x00007f9ac6e8b452 in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007f9ac6e8b6a5 in QAbstractButton::mouseReleaseEvent ()
   from /usr/lib/libQtGui.so.4
#29 0x00007f9ac6bd1359 in QWidget::event () from /usr/lib/libQtGui.so.4
#30 0x00007f9ac6b7ec3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#31 0x00007f9ac6b8725a in QApplication::notify () from /usr/lib/libQtGui.so.4
#32 0x00007f9ac8202fcb in KApplication::notify () from /usr/lib/libkdeui.so.5
#33 0x00007f9ac78a6d61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#34 0x00007f9ac6b865f8 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#35 0x00007f9ac6beac19 in ?? () from /usr/lib/libQtGui.so.4
#36 0x00007f9ac6be9637 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#37 0x00007f9ac6c112f4 in ?? () from /usr/lib/libQtGui.so.4
#38 0x00007f9ac3387d3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#39 0x00007f9ac338b50d in ?? () from /usr/lib/libglib-2.0.so.0
#40 0x00007f9ac338b6cb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#41 0x00007f9ac78cf15f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#42 0x00007f9ac6c10a9f in ?? () from /usr/lib/libQtGui.so.4
#43 0x00007f9ac78a5682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#44 0x00007f9ac78a580d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#45 0x00007f9ac78a7cbd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#46 0x0000000000407784 in _start ()
#0  0x00007f9ac6414482 in select () from /lib/libc.so.6
Comment 2 Pino Toscano 2008-11-23 02:12:20 UTC
Okular seem to crash earlier because it preloads the pages, but the problem is
really at page 10.
Comment 3 Albert Astals Cid 2008-11-23 15:06:41 UTC
Brad does it crash for you also with test-poppler-qt4?

I've tried it with freetype 2.3.5-1ubuntu4.8.04.1 and self compiled freetype from their CVS and it works fine
Comment 4 Brad Hards 2008-11-28 18:47:33 UTC
I don't have the poppler build on that kubuntu box, but it doesn't crash for me using any tools on Fedora 9.

Will try to get the build environment set up soon.
Comment 5 Brad Hards 2008-11-28 19:45:36 UTC
Built git (from today, 29 November 2008) on Kubuntu 8.10, and it continues to SIGFPE with both the test-poppler-qt4 tool and the poppler-qt4 demo app.

(gdb) bt                                                  
#0  0x00007f9cba6f2edf in ?? () from /usr/lib/libfreetype.so.6
#1  0x00007f9cba6f3030 in ?? () from /usr/lib/libfreetype.so.6
#2  0x00007f9cba6f32ab in ?? () from /usr/lib/libfreetype.so.6
#3  0x00007f9cba6f759d in ?? () from /usr/lib/libfreetype.so.6
#4  0x00007f9cba6f798e in ?? () from /usr/lib/libfreetype.so.6
#5  0x00007f9cba6d78b0 in ?? () from /usr/lib/libfreetype.so.6
#6  0x00007f9cba6d9d3e in FT_Open_Face () from /usr/lib/libfreetype.so.6
#7  0x00007f9cba6daaf0 in FT_New_Memory_Face () from /usr/lib/libfreetype.so.6
#8  0x00007f9cbaa9e8db in SplashFTFontFile::loadType1Font (engineA=0xa1b350, idA=0xa19540, src=0xa1c6a0, encA=0xb642a0)
    at /home/bradh/poppler/splash/SplashFTFontFile.cc:52
#9  0x00007f9cbaa9f634 in SplashFontEngine::loadType1CFont (this=<value optimized out>, idA=0x0, src=0xa1c6a0, enc=0xfffffffe)
    at /home/bradh/poppler/splash/SplashFontEngine.cc:170
#10 0x00007f9cbaa8bd2a in SplashOutputDev::doUpdateFont (this=0xa1cd10, state=0xa67320) at /home/bradh/poppler/poppler/SplashOutputDev.cc:1081
#11 0x00007f9cbaa8c00c in SplashOutputDev::drawChar (this=0xaffb08, state=0x0, x=<value optimized out>, y=<value optimized out>, dx=<value optimized out>,
    dy=<value optimized out>, originX=0, originY=0, code=112, nBytes=-2, u=0x390b235, uLen=-2) at /home/bradh/poppler/poppler/SplashOutputDev.cc:1359
#12 0x00007f9cbaa16cb2 in Gfx::doShowText (this=0xa86fb0, s=0xa44e80) at /home/bradh/poppler/poppler/Gfx.cc:3431
#13 0x00007f9cbaa17004 in Gfx::opShowText (this=0xa86fb0, args=0x7fffc31ca130, numArgs=<value optimized out>) at /home/bradh/poppler/poppler/Gfx.cc:3217
#14 0x00007f9cbaa0e1dd in Gfx::go (this=0xa86fb0, topLevel=1) at /home/bradh/poppler/poppler/Gfx.cc:642
#15 0x00007f9cbaa12706 in Gfx::display (this=0xa86fb0, obj=0x7fffc31ca460, topLevel=1) at /home/bradh/poppler/poppler/Gfx.cc:611
#16 0x00007f9cbaa52a00 in Page::displaySlice (this=0x9e63c0, out=0xa1cd10, hDPI=72, vDPI=72, rotate=<value optimized out>,
    useMediaBox=<value optimized out>, crop=1, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=0, catalog=0x9ea840, abortCheckCbk=0,
    abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at /home/bradh/poppler/poppler/Page.cc:438
#17 0x00007f9cbad8e52d in Poppler::Page::renderToImage (this=0xa57580, xres=72, yres=72, x=-1, y=-1, w=-1, h=-1, rotate=Poppler::Page::Rotate0)
    at /home/bradh/poppler/qt4/src/poppler-page.cc:205
#18 0x00000000004058a3 in PDFDisplay::display (this=0x7fffc31cbed0) at /home/bradh/poppler/qt4/tests/test-poppler-qt4.cpp:64
#19 0x00007f9cb8b4b218 in QWidget::event () from /usr/lib/libQtGui.so.4
#20 0x00007f9cb8af8c3d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#21 0x00007f9cb8b01894 in QApplication::notify () from /usr/lib/libQtGui.so.4
#22 0x00007f9cb97f2d61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#23 0x00007f9cb8b875f4 in ?? () from /usr/lib/libQtGui.so.4
#24 0x00007f9cb8b898d7 in ?? () from /usr/lib/libQtGui.so.4
#25 0x00007f9cb8b633c0 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#26 0x00007f9cb8b8b2f4 in ?? () from /usr/lib/libQtGui.so.4
#27 0x00007f9cb7103d3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0x00007f9cb710750d in ?? () from /usr/lib/libglib-2.0.so.0
#29 0x00007f9cb71076cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0x00007f9cb981b15f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#31 0x00007f9cb8b8aa9f in ?? () from /usr/lib/libQtGui.so.4
#32 0x00007f9cb97f1682 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#33 0x00007f9cb97f180d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#34 0x00007f9cb97f3cbd in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#35 0x0000000000408373 in main (argc=2, argv=0x7fffc31cc798) at /home/bradh/poppler/qt4/tests/test-poppler-qt4.cpp:216
Comment 6 Albert Astals Cid 2011-06-19 15:15:20 UTC
Does not crash anymore for me. Please reopen if you can still repro the crash


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.