Bug 186556 - okular crashes opening pdf files
Summary: okular crashes opening pdf files
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-08 15:09 UTC by Alan Prescott
Modified: 2009-03-10 18:15 UTC (History)
2 users (show)

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


Attachments
One of many PDFs which cause okular to crash (309.55 KB, application/pdf)
2009-03-08 15:41 UTC, Alan Prescott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Prescott 2009-03-08 15:09:19 UTC
Version:           unknown (using 4.2.1 (KDE 4.2.1) "release 108", KDE:KDE4:Factory:Desktop / openSUSE_11.0)
Compiler:          gcc
OS:                Linux (i686) release 2.6.25.20-0.1-pae

From the console ...

alan@nikyo:~> okular
okular(8383): Attempt to use QAction "bookmark_action_0" with KXMLGUIFactory! 
*** glibc detected *** okular: malloc(): memory corruption: 0x082cddd0 ***    
======= Backtrace: =========                                                  
/lib/libc.so.6[0xb68bcfc4]                                                    
/lib/libc.so.6[0xb68bf6aa]                                                    
/lib/libc.so.6(__libc_malloc+0x9c)[0xb68c111c]                                
/usr/lib/libQtCore.so.4(_Z7qMallocj+0x1d)[0xb74bfe8d]                         
/usr/lib/libQtCore.so.4(_ZN7QStringC1E5QChar+0x1e)[0xb750a03e]                
/usr/lib/kde4/okularGenerator_poppler.so[0xb2aab574]                          
/usr/lib/libokularcore.so.1[0xb4710811]                                       
/usr/lib/libokularcore.so.1(_ZN6Okular8Document12openDocumentERK7QStringRK4KUrlRK10KSharedPtrI9KMimeTypeE+0x4c1)[0xb47187c1]                                                                                                              
/usr/lib/kde4/okularpart.so[0xb47c09b4]                                                                              
/usr/lib/libkparts.so.4(_ZN6KParts12ReadOnlyPart7openUrlERK4KUrl+0x16a)[0xb809d67a]                                  
/usr/lib/kde4/okularpart.so[0xb47bb8cc]                                                                              
okular[0x804fe22]                                                                                                    
okular[0x8050b67]                                                                                                    
okular[0x8050d3b]                                                                                                    
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x228)[0xb75cfc68]                                  
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iiPPv+0x60)[0xb75d00a0]                               
/usr/lib/libQtGui.so.4(_ZN7QAction9triggeredEb+0x51)[0xb6bd27d1]                                                     
/usr/lib/libQtGui.so.4(_ZN7QAction8activateENS_11ActionEventE+0xaf)[0xb6bd3d4f]                                      
/usr/lib/libQtGui.so.4[0xb7030cfc]                                                                                   
/usr/lib/libQtGui.so.4[0xb70374d8]
/usr/lib/libQtGui.so.4(_ZN5QMenu17mouseReleaseEventEP11QMouseEvent+0x132)[0xb7037fc2]
/usr/lib/libkdeui.so.5(_ZN5KMenu17mouseReleaseEventEP11QMouseEvent+0x55)[0xb7c1df95]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x753)[0xb6c2fba3]
/usr/lib/libQtGui.so.4(_ZN5QMenu5eventEP6QEvent+0xc9)[0xb703a3a9]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xbc)[0xb6bd8dac]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xa31)[0xb6be1a21]
/usr/lib/libkdeui.so.5(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x3d)[0xb7b3f4ed]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x7b)[0xb75b990b]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_E+0xde)[0xb6be0a8e]
/usr/lib/libQtGui.so.4[0xb6c50c8e]
/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x16f7)[0xb6c4fd47]
/usr/lib/libQtGui.so.4[0xb6c794dc]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1e9)[0xb64f12d9]
/usr/lib/libglib-2.0.so.0[0xb64f485b]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x68)[0xb64f49d8]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x58)[0xb75e5488]
/usr/lib/libQtGui.so.4[0xb6c78ba5]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x4a)[0xb75b7f4a]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xea)[0xb75b838a]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xb9)[0xb75ba819]
/usr/lib/libQtGui.so.4(_ZN12QApplication4execEv+0x27)[0xb6bd8c27]
okular(_ZN14KXMLGUIBuilder15createContainerEP7QWidgetiRK11QDomElementRP7QAction+0x993)[0x804e487]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb68675f5]
okular(_ZN11KMainWindow10setCaptionERK7QStringb+0x4d)[0x804dfb1]
======= Memory map: ========
08048000-08052000 r-xp 00000000 fd:03 99403      /usr/bin/okular
08052000-08053000 r--p 0000a000 fd:03 99403      /usr/bin/okular
08053000-08054000 rw-p 0000b000 fd:03 99403      /usr/bin/okular
08054000-08476000 rw-p 08054000 00:00 0          [heap]
b2500000-b2521000 rw-p b2500000 00:00 0
b2521000-b2600000 ---p b2521000 00:00 0
b2670000-b26b0000 rw-p b2670000 00:00 0
b26b0000-b26c7000 r-xp 00000000 fd:03 235379     /usr/lib/libQtTest.so.4.5.0
b26c7000-b26c8000 r--p 00016000 fd:03 235379     /usr/lib/libQtTest.so.4.5.0
b26c8000-b26c9000 rw-p 00017000 fd:03 235379     /usr/lib/libQtTest.so.4.5.0
b26c9000-b26ca000 rw-p b26c9000 00:00 0
b26ca000-b2856000 r-xp 00000000 fd:03 41258      /usr/lib/libpoppler.so.3.0.0
b2856000-b285c000 r--p 0018b000 fd:03 41258      /usr/lib/libpoppler.so.3.0.0
b285c000-b2875000 rw-p 00191000 fd:03 41258      /usr/lib/libpoppler.so.3.0.0
b2875000-b2a10000 r-xp 00000000 fd:03 21787      /usr/lib/libpoppler.so.4.0.0
b2a10000-b2a17000 r--p 0019a000 fd:03 21787      /usr/lib/libpoppler.so.4.0.0
b2a17000-b2a2e000 rw-p 001a1000 fd:03 21787      /usr/lib/libpoppler.so.4.0.0
b2a2e000-b2a95000 r-xp 00000000 fd:03 75875      /usr/lib/libpoppler-qt4.so.3.0.0
b2a95000-b2a96000 r--p 00067000 fd:03 75875      /usr/lib/libpoppler-qt4.so.3.0.0
b2a96000-b2a97000 rw-p 00068000 fd:03 75875      /usr/lib/libpoppler-qt4.so.3.0.0
b2a97000-b2ab1000 r-xp 00000000 fd:03 99612      /usr/lib/kde4/okularGenerator_poppler.so
b2ab1000-b2ab2000 r--p 00019000 fd:03 99612      /usr/lib/kde4/okularGenerator_poppler.so
b2ab2000-b2ab3000 rw-p 0001a000 fd:03 99612      /usr/lib/kde4/okularGenerator_poppler.so
b2ab3000-b2b31000 r-xp 00000000 fd:03 235969     /usr/lib/libkfile.so.4.2.0
b2b31000-b2b33000 r--p 0007e000 fd:03 235969     /usr/lib/libkfile.so.4.2.0
b2b33000-b2b34000 rw-p 00080000 fd:03 235969     /usr/lib/libkfile.so.4.2.0
b2b34000-b2b36000 r-xp 00000000 fd:03 69158      /usr/lib/kde4/libkfilemodule.so
b2b36000-b2b37000 r--p 00001000 fd:03 69158      /usr/lib/kde4/libkfilemodule.so
b2b37000-b2b38000 rw-p 00002000 fd:03 69158      /usr/lib/kde4/libkfilemodule.so
b2b38000-b2b84000 r--p 00000000 fd:04 59         /var/cache/libx11/compose/l4_024_3KCrash: Application 'okular' crashing...
sock_file=/home/alan/.kde4/socket-nikyo/kdeinit4__0


Backtrace
alan@nikyo:~> okular
okular(8383): Attempt to use QAction "bookmark_action_0" with KXMLGUIFactory! 
*** glibc detected *** okular: malloc(): memory corruption: 0x082cddd0 ***    
======= Backtrace: =========                                                  
/lib/libc.so.6[0xb68bcfc4]                                                    
/lib/libc.so.6[0xb68bf6aa]                                                    
/lib/libc.so.6(__libc_malloc+0x9c)[0xb68c111c]                                
/usr/lib/libQtCore.so.4(_Z7qMallocj+0x1d)[0xb74bfe8d]                         
/usr/lib/libQtCore.so.4(_ZN7QStringC1E5QChar+0x1e)[0xb750a03e]                
/usr/lib/kde4/okularGenerator_poppler.so[0xb2aab574]                          
/usr/lib/libokularcore.so.1[0xb4710811]                                       
/usr/lib/libokularcore.so.1(_ZN6Okular8Document12openDocumentERK7QStringRK4KUrlRK10KSharedPtrI9KMimeTypeE+0x4c1)[0xb47187c1]                                                                                                              
/usr/lib/kde4/okularpart.so[0xb47c09b4]                                                                              
/usr/lib/libkparts.so.4(_ZN6KParts12ReadOnlyPart7openUrlERK4KUrl+0x16a)[0xb809d67a]                                  
/usr/lib/kde4/okularpart.so[0xb47bb8cc]                                                                              
okular[0x804fe22]                                                                                                    
okular[0x8050b67]                                                                                                    
okular[0x8050d3b]                                                                                                    
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x228)[0xb75cfc68]                                  
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iiPPv+0x60)[0xb75d00a0]                               
/usr/lib/libQtGui.so.4(_ZN7QAction9triggeredEb+0x51)[0xb6bd27d1]                                                     
/usr/lib/libQtGui.so.4(_ZN7QAction8activateENS_11ActionEventE+0xaf)[0xb6bd3d4f]                                      
/usr/lib/libQtGui.so.4[0xb7030cfc]                                                                                   
/usr/lib/libQtGui.so.4[0xb70374d8]
/usr/lib/libQtGui.so.4(_ZN5QMenu17mouseReleaseEventEP11QMouseEvent+0x132)[0xb7037fc2]
/usr/lib/libkdeui.so.5(_ZN5KMenu17mouseReleaseEventEP11QMouseEvent+0x55)[0xb7c1df95]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x753)[0xb6c2fba3]
/usr/lib/libQtGui.so.4(_ZN5QMenu5eventEP6QEvent+0xc9)[0xb703a3a9]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xbc)[0xb6bd8dac]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xa31)[0xb6be1a21]
/usr/lib/libkdeui.so.5(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x3d)[0xb7b3f4ed]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x7b)[0xb75b990b]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_E+0xde)[0xb6be0a8e]
/usr/lib/libQtGui.so.4[0xb6c50c8e]
/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x16f7)[0xb6c4fd47]
/usr/lib/libQtGui.so.4[0xb6c794dc]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1e9)[0xb64f12d9]
/usr/lib/libglib-2.0.so.0[0xb64f485b]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x68)[0xb64f49d8]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x58)[0xb75e5488]
/usr/lib/libQtGui.so.4[0xb6c78ba5]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x4a)[0xb75b7f4a]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xea)[0xb75b838a]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xb9)[0xb75ba819]
/usr/lib/libQtGui.so.4(_ZN12QApplication4execEv+0x27)[0xb6bd8c27]
okular(_ZN14KXMLGUIBuilder15createContainerEP7QWidgetiRK11QDomElementRP7QAction+0x993)[0x804e487]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb68675f5]
okular(_ZN11KMainWindow10setCaptionERK7QStringb+0x4d)[0x804dfb1]
======= Memory map: ========
08048000-08052000 r-xp 00000000 fd:03 99403      /usr/bin/okular
08052000-08053000 r--p 0000a000 fd:03 99403      /usr/bin/okular
08053000-08054000 rw-p 0000b000 fd:03 99403      /usr/bin/okular
08054000-08476000 rw-p 08054000 00:00 0          [heap]
b2500000-b2521000 rw-p b2500000 00:00 0
b2521000-b2600000 ---p b2521000 00:00 0
b2670000-b26b0000 rw-p b2670000 00:00 0
b26b0000-b26c7000 r-xp 00000000 fd:03 235379     /usr/lib/libQtTest.so.4.5.0
b26c7000-b26c8000 r--p 00016000 fd:03 235379     /usr/lib/libQtTest.so.4.5.0
b26c8000-b26c9000 rw-p 00017000 fd:03 235379     /usr/lib/libQtTest.so.4.5.0
b26c9000-b26ca000 rw-p b26c9000 00:00 0
b26ca000-b2856000 r-xp 00000000 fd:03 41258      /usr/lib/libpoppler.so.3.0.0
b2856000-b285c000 r--p 0018b000 fd:03 41258      /usr/lib/libpoppler.so.3.0.0
b285c000-b2875000 rw-p 00191000 fd:03 41258      /usr/lib/libpoppler.so.3.0.0
b2875000-b2a10000 r-xp 00000000 fd:03 21787      /usr/lib/libpoppler.so.4.0.0
b2a10000-b2a17000 r--p 0019a000 fd:03 21787      /usr/lib/libpoppler.so.4.0.0
b2a17000-b2a2e000 rw-p 001a1000 fd:03 21787      /usr/lib/libpoppler.so.4.0.0
b2a2e000-b2a95000 r-xp 00000000 fd:03 75875      /usr/lib/libpoppler-qt4.so.3.0.0
b2a95000-b2a96000 r--p 00067000 fd:03 75875      /usr/lib/libpoppler-qt4.so.3.0.0
b2a96000-b2a97000 rw-p 00068000 fd:03 75875      /usr/lib/libpoppler-qt4.so.3.0.0
b2a97000-b2ab1000 r-xp 00000000 fd:03 99612      /usr/lib/kde4/okularGenerator_poppler.so
b2ab1000-b2ab2000 r--p 00019000 fd:03 99612      /usr/lib/kde4/okularGenerator_poppler.so
b2ab2000-b2ab3000 rw-p 0001a000 fd:03 99612      /usr/lib/kde4/okularGenerator_poppler.so
b2ab3000-b2b31000 r-xp 00000000 fd:03 235969     /usr/lib/libkfile.so.4.2.0
b2b31000-b2b33000 r--p 0007e000 fd:03 235969     /usr/lib/libkfile.so.4.2.0
b2b33000-b2b34000 rw-p 00080000 fd:03 235969     /usr/lib/libkfile.so.4.2.0
b2b34000-b2b36000 r-xp 00000000 fd:03 69158      /usr/lib/kde4/libkfilemodule.so
b2b36000-b2b37000 r--p 00001000 fd:03 69158      /usr/lib/kde4/libkfilemodule.so
b2b37000-b2b38000 rw-p 00002000 fd:03 69158      /usr/lib/kde4/libkfilemodule.so
b2b38000-b2b84000 r--p 00000000 fd:04 59         /var/cache/libx11/compose/l4_024_3KCrash: Application 'okular' crashing...
sock_file=/home/alan/.kde4/socket-nikyo/kdeinit4__0
Comment 1 Dario Andres 2009-03-08 15:25:51 UTC
If you can reproduce the crash at will, may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? 
You need to install the "kdegraphics4-debuginfo" package
Thanks :)
Comment 2 Pino Toscano 2009-03-08 15:29:51 UTC
Can you provide the document which crashes for you?

Also, which version of the poppler-qt4 library do you have?
Comment 3 Alan Prescott 2009-03-08 15:37:10 UTC
Oops - pasted console output twice instead of backtrace

<backtrace>
Application: Okular (okular), signal SIGABRT

Thread 1 (Thread 0xb608e9a0 (LWP 8597)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb675b900 in raise () from /lib/libc.so.6
#8  0xb675d238 in abort () from /lib/libc.so.6
#9  0xb679710d in ?? () from /lib/libc.so.6
#10 0xb679cfc4 in ?? () from /lib/libc.so.6
#11 0xb679f6aa in ?? () from /lib/libc.so.6
#12 0xb67a111c in malloc () from /lib/libc.so.6
#13 0xb739fe8d in qMalloc (size=22) at global/qmalloc.cpp:55
#14 0xb73ea03e in QString (this=0xbfad987c, ch={ucs = 47}) at tools/qstring.cpp:895
#15 0xb2979574 in ?? () from /usr/lib/kde4/okularGenerator_poppler.so
#16 0xb490d811 in ?? () from /usr/lib/libokularcore.so.1
#17 0xb49157c1 in Okular::Document::openDocument () from /usr/lib/libokularcore.so.1
#18 0xb49bd9b4 in ?? () from /usr/lib/kde4/okularpart.so
#19 0xb7f7d67a in KParts::ReadOnlyPart::openUrl (this=0x810f0a8, url=@0xbfad9e64) at /usr/src/debug/kdelibs-4.2.1/kparts/part.cpp:558
#20 0xb49b88cc in ?? () from /usr/lib/kde4/okularpart.so
#21 0x0804fe22 in _start ()
</backtrace>
Comment 4 Alan Prescott 2009-03-08 15:41:19 UTC
Created attachment 31908 [details]
One of many PDFs which cause okular to crash

Every pdf I've tried has cause okular to crash

poppler library: libpoppler-qt4-3-0.8.2-1.3
Comment 5 Pino Toscano 2009-03-08 16:12:22 UTC
> poppler library: libpoppler-qt4-3-0.8.2-1.3

A bit old, you are strongly suggested to update, even because the backtrace suggests the problem is in poppler-qt4.
Comment 6 Alan Prescott 2009-03-08 18:32:26 UTC
This is the latest version for openSUSE 11.0.
If this is incompatible with okular should I report it as a (packaging) bug with openSUSE?

(openSUSE 11.1 gets version 0.10.4-6.3)
Comment 7 Alan Prescott 2009-03-10 18:13:01 UTC
openSUSE 11.0 libraries now provide 0.10.4-7.2

All Ok