Bug 240125 - Ark crashed when clicked to open zipped pdf file from archive.
Summary: Ark crashed when clicked to open zipped pdf file from archive.
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-30 19:09 UTC by Saxman
Modified: 2010-06-03 21:36 UTC (History)
2 users (show)

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


Attachments
Output of valgrind ark ... as requested. (7.29 KB, text/plain)
2010-05-30 20:07 UTC, Saxman
Details
SIGTERM backtrace (13.12 KB, application/octet-stream)
2010-05-30 23:36 UTC, Romário Rios
Details
SIGSEGV backtrace (13.20 KB, application/octet-stream)
2010-05-30 23:45 UTC, Romário Rios
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Saxman 2010-05-30 19:09:27 UTC
Application: ark (2.14)
KDE Platform Version: 4.4.3 (KDE 4.4.3)
Qt Version: 4.6.2
Operating System: Linux 2.6.32.12-115.fc12.i686.PAE i686
Distribution: "Fedora release 12 (Constantine)"

-- Information about the crash:
1. Download http://www.publicguardian.gov.uk/docs/LPA_PFA_Creation_zip_pack_May_10.zip
2. Use Dolphin file manager to locate file.
3. Click on downloaded file - ark opens zip.
4. Click on "Lasting power of attorney.*instrument.pdf"
5. Ark immediately crashes.

The crash can be reproduced every time.

 -- Backtrace:
Application: Ark (ark), signal: Segmentation fault
[KCrash Handler]
#6  Object::free (this=0x1) at Object.cc:124
#7  0x015113c4 in ObjectStream::~ObjectStream (this=0x8f28d10, __in_chrg=<value optimized out>) at XRef.cc:185
#8  0x01512c4f in XRef::fetch (this=0x8f240a0, num=2542, gen=0, obj=0xbfb1ff14) at XRef.cc:976
#9  0x014aafd8 in Catalog::getJS (this=0x8f256f8, i=0) at Catalog.cc:439
#10 0x013f62d7 in Poppler::Document::scripts (this=0x8f7e2e8) at poppler-document.cc:570
#11 0x00f5e3fc in PDFGenerator::metaData (this=0x8f26ff8, key=..., option=...) at /usr/src/debug/kdegraphics-4.4.3/okular/generators/poppler/generator_pdf.cpp:1001
#12 0x019cf88c in Okular::Document::openDocument (this=0x8e49358, docFile=..., url=..., _mime=...) at /usr/src/debug/kdegraphics-4.4.3/okular/core/document.cpp:1718
#13 0x013366d0 in Okular::Part::openFile (this=0x8db06a8) at /usr/src/debug/kdegraphics-4.4.3/okular/part.cpp:930
#14 0x040c7a7a in KParts::ReadOnlyPart::openUrl (this=0x8db06a8, url=...) at /usr/src/debug/kdelibs-4.4.3/kparts/part.cpp:557
#15 0x01329078 in Okular::Part::openUrl (this=0x8db06a8, _url=...) at /usr/src/debug/kdegraphics-4.4.3/okular/part.cpp:1049
#16 0x00eb9936 in ArkViewer::viewInInternalViewer (this=0x8bdd0d0, filename=...) at /usr/src/debug/kdeutils-4.4.3/ark/part/arkviewer.cpp:173
#17 0x00eb9eaf in ArkViewer::view (filename=..., parent=0x8ccd090) at /usr/src/debug/kdeutils-4.4.3/ark/part/arkviewer.cpp:86
#18 0x00ead26e in Ark::Part::slotPreviewExtracted (this=0x8bec540, job=0x8e0d140) at /usr/src/debug/kdeutils-4.4.3/ark/part/part.cpp:502
#19 0x00eaaa1b in Ark::Part::qt_metacall (this=0x8bec540, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0xb5404330)
    at /usr/src/debug/kdeutils-4.4.3/i686-redhat-linux-gnu/ark/part/moc_part.cpp:132
#20 0x0427f5db in QMetaObject::metacall (object=0x8bec540, cl=InvokeMetaMethod, idx=26, argv=0xb5404330) at kernel/qmetaobject.cpp:237
#21 0x04289bd7 in QMetaCallEvent::placeMetaCall (this=0xb540cd98, object=0x8bec540) at kernel/qobject.cpp:561
#22 0x0428ac4e in QObject::event (this=0x8bec540, e=0xb540cd98) at kernel/qobject.cpp:1248
#23 0x04a47d2c in QApplicationPrivate::notify_helper (this=0x8b3b0d0, receiver=0x8bec540, e=0xb540cd98) at kernel/qapplication.cpp:4300
#24 0x04a4e556 in QApplication::notify (this=0xbfb2109c, receiver=0x8bec540, e=0xb540cd98) at kernel/qapplication.cpp:3704
#25 0x0550e7eb in KApplication::notify (this=0xbfb2109c, receiver=0x8bec540, event=0xb540cd98) at /usr/src/debug/kdelibs-4.4.3/kdeui/kernel/kapplication.cpp:302
#26 0x0427ac03 in QCoreApplication::notifyInternal (this=0xbfb2109c, receiver=0x8bec540, event=0xb540cd98) at kernel/qcoreapplication.cpp:704
#27 0x0427bac3 in sendEvent (receiver=0x0, event_type=0, data=0x8b25860) at kernel/qcoreapplication.h:215
#28 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8b25860) at kernel/qcoreapplication.cpp:1345
#29 0x0427bc1e in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#30 0x042a3350 in sendPostedEvents (s=0x8b3d378) at kernel/qcoreapplication.h:220
#31 postEventSourceDispatch (s=0x8b3d378) at kernel/qeventdispatcher_glib.cpp:276
#32 0x00d18fb8 in g_main_dispatch (context=0x8b3d2f8) at gmain.c:1960
#33 IA__g_main_context_dispatch (context=0x8b3d2f8) at gmain.c:2513
#34 0x00d1c8e8 in g_main_context_iterate (context=0xb23eb0, block=1, dispatch=1, self=0x8b3b2d8) at gmain.c:2591
#35 0x00d1ca14 in IA__g_main_context_iteration (context=0x8b3d2f8, may_block=1) at gmain.c:2654
#36 0x042a2e46 in QEventDispatcherGlib::processEvents (this=0x8b25360, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#37 0x04af60e6 in QGuiEventDispatcherGlib::processEvents (this=0x8b25360, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#38 0x042792da in QEventLoop::processEvents (this=0xbfb20ff4, flags=...) at kernel/qeventloop.cpp:149
#39 0x0427961a in QEventLoop::exec (this=0xbfb20ff4, flags=...) at kernel/qeventloop.cpp:201
#40 0x0427bce7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#41 0x04a47dd8 in QApplication::exec () at kernel/qapplication.cpp:3579
#42 0x0804fc8d in main (argc=4, argv=0xbfb21434) at /usr/src/debug/kdeutils-4.4.3/ark/app/main.cpp:210

Reported using DrKonqi
Comment 1 Raphael Kubo da Costa 2010-05-30 19:21:06 UTC
Reassigning to the Okular folks.
Comment 2 Albert Astals Cid 2010-05-30 19:24:09 UTC
Which poppler version are you using?
Comment 3 Saxman 2010-05-30 19:33:24 UTC
I am using poppler-0.12.4-2.fc12.i686
Comment 4 Albert Astals Cid 2010-05-30 19:41:38 UTC
Can you send us a valgrind trace?

Install valgrind go to konsole and type
valgrind ark path/to/zip

And attach the output
Comment 5 Saxman 2010-05-30 20:07:34 UTC
Created attachment 47495 [details]
Output of valgrind ark ... as requested.

This is output of:
valgrind ark Downloads/LPA_PFA_Creation_zip_pack_May_10.zip
as requested.
Note that when run this way, ark did not crash and instead displayed the file!
Comment 6 Albert Astals Cid 2010-05-30 20:24:41 UTC
Hmmm, this is quite weird, two more questions:
 * If you run ark from the console but without the valgrind command in front, does it work or does it crash?
 * Which glibc are you using?
Comment 7 Saxman 2010-05-30 20:31:19 UTC
1) Yes, it does crash without valgrind.
See:
[dsaxby@olivia ~]$ ark Downloads/LPA_PFA_Creation_zip_pack_May_10.zip 
ark(18279)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
ark(18279)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
ark(18279)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Annotation Widget not supported. 
(repeated many times)
KCrash: Application 'ark' crashing...
sock_file=/home/dsaxby/.kde/socket-olivia/kdeinit4__0
Error: Weird page contents
2) rpm -q glibc
glibc-2.11.1-6.i686
Comment 8 Romário Rios 2010-05-30 20:45:42 UTC
I can confirm this. But it only happens in the builtin document visualizer.

And I got this interesting output before crash:
$ ark LPA_PFA_Creation_zip_pack_May_10.zip
ark(6349)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
ark(6349)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
ark(6349)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Annotation Widget not supported. 
Error (0): Call to Object where the object was type 13, not the expected type 7 
evaluate() threw an exception
KCrash: Application 'ark' crashing...
sock_file=/home/luizromario/.kdemod4/socket-romario-laptop/kdeinit4__0
Comment 9 Albert Astals Cid 2010-05-30 21:08:54 UTC
#8 Can you post your gdb backtrace and your valgrind trace?
Comment 10 Romário Rios 2010-05-30 23:36:42 UTC
Created attachment 47499 [details]
SIGTERM backtrace
Comment 11 Romário Rios 2010-05-30 23:45:36 UTC
Created attachment 47500 [details]
SIGSEGV backtrace

As requested by #9.

I also noticed that sometimes the program quits with SIGSEGV and, sometimes, with SIGTERM. And that file may even be loaded at first, but, in that case, just reopening crashes Ark.

Some info about my system:
$ uname -a
Linux romario-laptop 2.6.33-ARCH #1 SMP PREEMPT Sun May 2 10:40:03 CEST 2010 x86_64 Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz GenuineIntel GNU/Linux
$ kde4-config -v
Qt: 4.6.2
KDE development platform: 4.4.3 (KDE 4.4.3)
Comment 12 Albert Astals Cid 2010-05-31 00:38:24 UTC
Question, if you extract the pdf file and then open it with okular it still crashes?
Comment 13 Saxman 2010-05-31 00:43:28 UTC
No - it works just fine when opened directly by okular after extracting. Works both via dolphin and directly by command line.
Note I performed the extraction using ark.
Comment 14 Romário Rios 2010-05-31 00:47:33 UTC
Same here.
Comment 15 Albert Astals Cid 2010-06-03 21:36:31 UTC
Ok, i just fixed a crash that could lead to the very same backtrace you guys have, if you update to KDE 4.4.5 or KDE 4.5 and it still happens, please reopen the bug.

Thanks for using Okular.