Bug 329907 - Okular crashes due to bad interaction of poppler, libgs and lcms
Summary: Okular crashes due to bad interaction of poppler, libgs and lcms
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.19.1
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
: 330090 330303 333298 333324 334531 335462 335465 336480 336719 340024 341176 351660 356279 363231 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-13 09:08 UTC by oliver
Modified: 2016-05-19 23:42 UTC (History)
16 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The crashing pdf (295.84 KB, application/pdf)
2014-01-13 09:16 UTC, oliver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oliver 2014-01-13 09:08:02 UTC
Application: okular (0.17.5)
KDE Platform Version: 4.11.5
Qt Version: 4.8.5
Operating System: Linux 3.12.6-200.fc19.x86_64 x86_64
Distribution: "Fedora release 19 (Schrödinger’s Cat)"

-- Information about the crash:
- What I was doing when the application crashed:
While filling out a PDF with forms, I selected it to print while still in the "show forms" mode.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f0401e148c0 (LWP 25949))]

Thread 2 (Thread 0x7f03f21b5700 (LWP 28037)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000003d62a7b1e6 in wait (time=18446744073709551615, this=0x17c0b00) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=mutex@entry=0x18a3750, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x0000003d62a7738b in QSemaphore::acquire (this=this@entry=0x18549b0, n=n@entry=1) at thread/qsemaphore.cpp:144
#4  0x00007f03e3dfb5cf in GSRendererThread::run (this=0x18549a0) at /usr/src/debug/okular-4.11.5/generators/spectre/rendererthread.cpp:50
#5  0x0000003d62a7ad0f in QThreadPrivate::start (arg=0x18549a0) at thread/qthread_unix.cpp:338
#6  0x0000003d56e07c53 in start_thread (arg=0x7f03f21b5700) at pthread_create.c:308
#7  0x0000003d562f5dbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f0401e148c0 (LWP 25949)):
[KCrash Handler]
#6  gs_lcms2_malloc (id=0x0, size=3744) at base/gsicc_lcms2.c:49
#7  0x0000003d7c80e6ed in _cmsMallocZeroDefaultFn (ContextID=<optimized out>, size=3744) at cmserr.c:97
#8  0x0000003d7c814c12 in cmsCreateProfilePlaceholder (ContextID=ContextID@entry=0x0) at cmsio0.c:461
#9  0x0000003d7c816048 in cmsOpenProfileFromMemTHR (ContextID=0x0, MemPtr=0x18e4640, dwSize=725408) at cmsio0.c:1034
#10 0x00007f03f38ff1e3 in GfxICCBasedColorSpace::parse (arr=<optimized out>, gfx=gfx@entry=0x18a1a60, recursion=recursion@entry=0) at GfxState.cc:1727
#11 0x00007f03f38feca3 in GfxColorSpace::parse (csObj=0x7ffff2abae20, gfx=0x18a1a60, recursion=0) at GfxState.cc:294
#12 0x00007f03f38dcbe6 in Gfx::opSetFillColorSpace (this=0x18a1a60, args=0x7ffff2abaf50, numArgs=<optimized out>) at Gfx.cc:1530
#13 0x00007f03f38e7029 in Gfx::go (this=0x18a1a60, topLevel=<optimized out>) at Gfx.cc:715
#14 0x00007f03f38e748d in Gfx::display (this=this@entry=0x18a1a60, obj=obj@entry=0x7ffff2abb240, topLevel=topLevel@entry=true) at Gfx.cc:681
#15 0x00007f03f3927ddc in Page::displaySlice (this=this@entry=0xf7f800, out=out@entry=0xfde590, hDPI=hDPI@entry=72, vDPI=vDPI@entry=72, rotate=rotate@entry=0, useMediaBox=useMediaBox@entry=false, crop=<optimized out>, sliceX=sliceX@entry=-1, sliceY=sliceY@entry=-1, sliceW=sliceW@entry=-1, sliceH=sliceH@entry=-1, printing=printing@entry=true, abortCheckCbk=abortCheckCbk@entry=0x0, abortCheckCbkData=abortCheckCbkData@entry=0x0, annotDisplayDecideCbk=annotDisplayDecideCbk@entry=0x3b1a85c440 <Poppler::annotDisplayDecideCbk(Annot*, void*)>, annotDisplayDecideCbkData=annotDisplayDecideCbkData@entry=0x7ffff2abb5ff) at Page.cc:523
#16 0x00007f03f3942fdc in PSOutputDev::checkPageSlice (this=0x189a2d0, page=0xf7f800, rotateA=0, useMediaBox=<optimized out>, crop=true, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=true, abortCheckCbk=0x0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0x3b1a85c440 <Poppler::annotDisplayDecideCbk(Annot*, void*)>, annotDisplayDecideCbkData=0x7ffff2abb5ff) at PSOutputDev.cc:3072
#17 0x00007f03f3927d0e in Page::displaySlice (this=0xf7f800, out=0x189a2d0, out@entry=0x7ffff2abb610, hDPI=72, hDPI@entry=6.9533447591547972e-310, vDPI=72, vDPI@entry=6.8998712124876214e-310, rotate=0, rotate@entry=-1, useMediaBox=useMediaBox@entry=false, crop=true, crop@entry=255, sliceX=sliceX@entry=-1, sliceY=sliceY@entry=-1, sliceW=sliceW@entry=-1, sliceH=sliceH@entry=-1, printing=printing@entry=true, abortCheckCbk=abortCheckCbk@entry=0x0, abortCheckCbkData=abortCheckCbkData@entry=0x0, annotDisplayDecideCbk=annotDisplayDecideCbk@entry=0x3b1a85c440 <Poppler::annotDisplayDecideCbk(Annot*, void*)>, annotDisplayDecideCbkData=annotDisplayDecideCbkData@entry=0x7ffff2abb5ff) at Page.cc:511
#18 0x00007f03f3927f4e in Page::display (this=<optimized out>, out=out@entry=0x7ffff2abb610, hDPI=hDPI@entry=6.9533447591547972e-310, vDPI=vDPI@entry=6.8998712124876214e-310, rotate=rotate@entry=-1, useMediaBox=useMediaBox@entry=false, crop=crop@entry=255, printing=printing@entry=true, abortCheckCbk=0x0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0x3b1a85c440 <Poppler::annotDisplayDecideCbk(Annot*, void*)>, annotDisplayDecideCbkData=0x7ffff2abb5ff) at Page.cc:451
#19 0x00007f03f392ddad in PDFDoc::displayPage (this=<optimized out>, out=0x7ffff2abb610, out@entry=0x189a2d0, page=page@entry=1, hDPI=6.9533447591547972e-310, vDPI=6.8998712124876214e-310, rotate=-1, useMediaBox=useMediaBox@entry=false, crop=crop@entry=true, printing=false, printing@entry=true, abortCheckCbk=abortCheckCbk@entry=0x0, abortCheckCbkData=0x3b1a85c440 <Poppler::annotDisplayDecideCbk(Annot*, void*)>, abortCheckCbkData@entry=0x0, annotDisplayDecideCbk=0x7ffff2abb5ff, annotDisplayDecideCbk@entry=0x3b1a85c440 <Poppler::annotDisplayDecideCbk(Annot*, void*)>, annotDisplayDecideCbkData=annotDisplayDecideCbkData@entry=0x7ffff2abb5ff) at PDFDoc.cc:467
#20 0x0000003b1a85cadb in Poppler::PSConverter::convert (this=<optimized out>) at poppler-ps-converter.cc:256
#21 0x00007f03f3c6e5fa in PDFGenerator::print (this=0xec7fc0, printer=...) at /usr/src/debug/okular-4.11.5/generators/poppler/generator_pdf.cpp:1173
#22 0x00007f03f587c682 in Okular::Part::doPrint (this=0xbc2ba0, printer=...) at /usr/src/debug/okular-4.11.5/part.cpp:2583
#23 0x00007f03f5886b88 in Okular::Part::slotPrintPreview (this=0xbc2ba0) at /usr/src/debug/okular-4.11.5/part.cpp:2251
#24 0x00007f03f5888a45 in Okular::Part::qt_static_metacall (_o=0x0, _id=3744, _a=0x7ffff2abba20, _c=<optimized out>) at /usr/src/debug/okular-4.11.5/x86_64-redhat-linux-gnu/part.moc:184
#25 0x0000003d62b8df78 in QMetaObject::activate (sender=sender@entry=0xd7f7d0, m=m@entry=0x3d67268220 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffff2abba20) at kernel/qobject.cpp:3547
#26 0x0000003d667c2412 in QAction::triggered (this=this@entry=0xd7f7d0, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#27 0x0000003d667c3de3 in QAction::activate (this=this@entry=0xd7f7d0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#28 0x0000003d66bec6a9 in QMenuPrivate::activateCausedStack (this=this@entry=0xdff050, causedStack=..., action=action@entry=0xd7f7d0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1038
#29 0x0000003d66bf0bf9 in QMenuPrivate::activateAction (this=0xdff050, action=0xd7f7d0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1130
#30 0x0000003d66bf45d5 in QMenu::mouseReleaseEvent (this=this@entry=0xe10d90, e=e@entry=0x7ffff2abc150) at widgets/qmenu.cpp:2372
#31 0x00007f0402b559a5 in KMenu::mouseReleaseEvent (this=0xe10d90, e=0x7ffff2abc150) at /usr/src/debug/kdelibs-4.11.5/kdeui/widgets/kmenu.cpp:464
#32 0x0000003d66817b6e in QWidget::event (this=this@entry=0xe10d90, event=event@entry=0x7ffff2abc150) at kernel/qwidget.cpp:8376
#33 0x0000003d66bf49db in QMenu::event (this=0xe10d90, e=0x7ffff2abc150) at widgets/qmenu.cpp:2481
#34 0x0000003d667c852c in QApplicationPrivate::notify_helper (this=0x9e9a00, receiver=0xe10d90, e=0x7ffff2abc150) at kernel/qapplication.cpp:4562
#35 0x0000003d667cec2d in QApplication::notify (this=this@entry=0x7ffff2abca30, receiver=receiver@entry=0xe10d90, e=e@entry=0x7ffff2abc150) at kernel/qapplication.cpp:4105
#36 0x00007f0402a9ed5a in KApplication::notify (this=0x7ffff2abca30, receiver=0xe10d90, event=0x7ffff2abc150) at /usr/src/debug/kdelibs-4.11.5/kdeui/kernel/kapplication.cpp:311
#37 0x0000003d62b7a26d in QCoreApplication::notifyInternal (this=0x7ffff2abca30, receiver=0xe10d90, event=0x7ffff2abc150) at kernel/qcoreapplication.cpp:949
#38 0x0000003d667ce3e3 in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0xe10d90, event=event@entry=0x7ffff2abc150, alienWidget=alienWidget@entry=0x0, nativeWidget=nativeWidget@entry=0xe10d90, buttonDown=buttonDown@entry=0x3d672a3278 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at ../../src/corelib/kernel/qcoreapplication.h:231
#39 0x0000003d6683fcac in QETWidget::translateMouseEvent (this=this@entry=0xe10d90, event=event@entry=0x7ffff2abc490) at kernel/qapplication_x11.cpp:4472
#40 0x0000003d6683e3ec in QApplication::x11ProcessEvent (this=0x7ffff2abca30, event=event@entry=0x7ffff2abc490) at kernel/qapplication_x11.cpp:3661
#41 0x0000003d66864ea4 in x11EventSourceDispatch (s=s@entry=0x9eee70, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#42 0x0000003d59247df6 in g_main_dispatch (context=0x9f23a0) at gmain.c:3054
#43 g_main_context_dispatch (context=context@entry=0x9f23a0) at gmain.c:3630
#44 0x0000003d59248148 in g_main_context_iterate (context=context@entry=0x9f23a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3701
#45 0x0000003d592481ec in g_main_context_iteration (context=0x9f23a0, may_block=1) at gmain.c:3762
#46 0x0000003d62ba7145 in QEventDispatcherGlib::processEvents (this=0x9c3e80, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#47 0x0000003d66865016 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#48 0x0000003d62b78ecf in QEventLoop::processEvents (this=this@entry=0x7ffff2abc870, flags=...) at kernel/qeventloop.cpp:149
#49 0x0000003d62b791c5 in QEventLoop::exec (this=this@entry=0x7ffff2abc870, flags=...) at kernel/qeventloop.cpp:204
#50 0x0000003d62b7e45b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#51 0x0000003d667c6cec in QApplication::exec () at kernel/qapplication.cpp:3823
#52 0x0000000000408376 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-4.11.5/shell/main.cpp:100

Reported using DrKonqi
Comment 1 oliver 2014-01-13 09:10:31 UTC
I should have written that I selected "Print Preview."
Comment 2 oliver 2014-01-13 09:16:07 UTC
The recipe with the attached PDF file is:

Select Print Preview: notice that the preview window is empty. 
Close the Print Preview window.
Select Print Preview again.
Okular crashes.
Comment 3 oliver 2014-01-13 09:16:51 UTC
Created attachment 84612 [details]
The crashing pdf
Comment 4 Albert Astals Cid 2014-01-13 20:50:36 UTC
Bad interaction between libgs, liblcms and poppler :(
Comment 5 Albert Astals Cid 2014-01-13 21:07:45 UTC
For the record http://lists.freedesktop.org/archives/poppler/2014-January/010779.html
Comment 6 Albert Astals Cid 2014-01-19 22:14:51 UTC
*** Bug 330090 has been marked as a duplicate of this bug. ***
Comment 7 Jekyll Wu 2014-01-23 01:42:08 UTC
*** Bug 330303 has been marked as a duplicate of this bug. ***
Comment 8 Albert Astals Cid 2014-04-10 20:39:55 UTC
*** Bug 333298 has been marked as a duplicate of this bug. ***
Comment 9 Jekyll Wu 2014-04-12 00:29:05 UTC
*** Bug 333324 has been marked as a duplicate of this bug. ***
Comment 10 Albert Astals Cid 2014-05-08 21:43:24 UTC
*** Bug 334531 has been marked as a duplicate of this bug. ***
Comment 11 Jekyll Wu 2014-05-29 01:30:24 UTC
*** Bug 335462 has been marked as a duplicate of this bug. ***
Comment 12 Jekyll Wu 2014-05-29 01:30:58 UTC
*** Bug 335465 has been marked as a duplicate of this bug. ***
Comment 13 Albert Astals Cid 2014-06-19 20:53:56 UTC
*** Bug 336480 has been marked as a duplicate of this bug. ***
Comment 14 Christoph Feck 2014-06-25 18:57:50 UTC
*** Bug 336719 has been marked as a duplicate of this bug. ***
Comment 15 Albert Astals Cid 2014-10-16 22:17:48 UTC
*** Bug 340024 has been marked as a duplicate of this bug. ***
Comment 16 Albert Astals Cid 2014-11-22 15:24:00 UTC
*** Bug 341176 has been marked as a duplicate of this bug. ***
Comment 17 Albert Astals Cid 2014-11-22 15:25:47 UTC
This is actually fixed if you use newer lcms and ghostscript so i'm going to close it.
Comment 18 Albert Astals Cid 2015-08-23 21:23:08 UTC
*** Bug 351660 has been marked as a duplicate of this bug. ***
Comment 19 Albert Astals Cid 2015-12-05 11:44:55 UTC
*** Bug 356279 has been marked as a duplicate of this bug. ***
Comment 20 Albert Astals Cid 2016-05-19 23:42:18 UTC
*** Bug 363231 has been marked as a duplicate of this bug. ***