Bug 353679 - Okular ODP backend crashes on opening .ppt
Summary: Okular ODP backend crashes on opening .ppt
Status: REPORTED
Alias: None
Product: calligrastage
Classification: Applications
Component: okularplugin (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Friedrich W. H. Kossebau
URL: http://www.denx.de/wiki/pub/ELDKHisto...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-08 08:53 UTC by Nick Leverton
Modified: 2022-11-15 22:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
PDF which causes Okular segfault on opening (141.99 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2022-11-15 22:15 UTC, Nick Leverton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Leverton 2015-10-08 08:53:23 UTC
Okular  crashes every time on the following .ppt file:

http://www.denx.de/wiki/pub/ELDKHistory/DocumentationLinks/OpenEmbeddedv1.ppt

I assume okular is meant to handle .ppt's since it has registered itself as a handler in "file associations".

Reproducible: Always




-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  QString (other=<error reading variable: Cannot access memory at address 0x10>, this=this@entry=0x7ffc19044740) at /usr/include/qt4/QtCore/qstring.h:725
#7  KService::library (this=this@entry=0x0) at ../../kdecore/services/kservice.cpp:860
#8  0x00007f0252dd2795 in KPluginLoader::KPluginLoader (this=0x7ffc190448c0, service=..., componentdata=..., parent=0x0) at ../../kdecore/util/kpluginloader.cpp:166
#9  0x00007f023cbee897 in KoDocumentEntry::createKoPart(QString*) const () from /usr/lib/libkomain.so.13
#10 0x00007f023ced5395 in ?? () from /usr/lib/kde4/okularGenerator_odp.so
#11 0x00007f02429a76e6 in Okular::Generator::loadDocumentWithPassword (this=<optimized out>, fileName=..., pagesVector=...) at ../core/generator.cpp:191
#12 0x00007f024299b50e in Okular::DocumentPrivate::openDocumentInternal (this=0xab97d0, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at ../core/document.cpp:946
#13 0x00007f024299be5a in Okular::Document::openDocument (this=0xa75370, docFile=..., url=..., _mime=..., password=...) at ../core/document.cpp:2227
#14 0x00007f0242c8a193 in Okular::Part::doOpenFile (this=0xa80c40, mimeA=..., fileNameToOpenA=..., isCompressedFile=<optimized out>) at ../part.cpp:1253
#15 0x00007f0242c8c22f in Okular::Part::openFile (this=0xd85e88) at ../part.cpp:1374
#16 0x00007f0254b3ec36 in KParts::ReadOnlyPartPrivate::_k_slotJobFinished (this=0xa80260, job=0xd84ec0) at ../../kparts/part.cpp:694
#17 0x00007f025285771c in QMetaObject::activate (sender=sender@entry=0xd84ec0, m=m@entry=0x7f0253088ee0 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffc190450d0) at kernel/qobject.cpp:3567
#18 0x00007f0252ce8152 in KJob::result (this=this@entry=0xd84ec0, _t1=_t1@entry=0xd84ec0) at ./kjob.moc:207
#19 0x00007f0252ce81a0 in KJob::emitResult (this=this@entry=0xd84ec0) at ../../kdecore/jobs/kjob.cpp:318
#20 0x00007f025452bd27 in KIO::FileCopyJob::slotResult (this=0xd84ec0, job=0xd68de0) at ../../kio/kio/job.cpp:2470
#21 0x00007f025285771c in QMetaObject::activate (sender=sender@entry=0xd68de0, m=m@entry=0x7f0253088ee0 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffc19045260) at kernel/qobject.cpp:3567
#22 0x00007f0252ce8152 in KJob::result (this=this@entry=0xd68de0, _t1=_t1@entry=0xd68de0) at ./kjob.moc:207
#23 0x00007f0252ce81a0 in KJob::emitResult (this=this@entry=0xd68de0) at ../../kdecore/jobs/kjob.cpp:318
#24 0x00007f0254527b3b in KIO::SimpleJob::slotFinished (this=this@entry=0xd68de0) at ../../kio/kio/job.cpp:496
#25 0x00007f0254528f61 in KIO::TransferJob::slotFinished (this=0xd68de0) at ../../kio/kio/job.cpp:1110
#26 0x00007f025285771c in QMetaObject::activate (sender=0xd551a0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3567
#27 0x00007f02545d3448 in KIO::SlaveInterface::dispatch (this=0x7ffc19044740, _cmd=104, rawdata=...) at ../../kio/kio/slaveinterface.cpp:176
#28 0x00007f02545d03ad in KIO::SlaveInterface::dispatch (this=0xd551a0) at ../../kio/kio/slaveinterface.cpp:92
#29 0x00007f02545c2efe in KIO::Slave::gotInput (this=0xd551a0) at ../../kio/kio/slave.cpp:344
#30 0x00007f025285771c in QMetaObject::activate (sender=0xbf2700, m=m@entry=0x7f02548e5960 <KIO::Connection::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3567
#31 0x00007f02544edd90 in KIO::Connection::readyRead (this=<optimized out>) at ./connection.moc:105
#32 0x00007f02544ee2f9 in KIO::ConnectionPrivate::dequeue (this=0xda8ed0) at ../../kio/kio/connection.cpp:82
#33 0x00007f025285be11 in QObject::event (this=0xbf2700, e=<optimized out>) at kernel/qobject.cpp:1222
#34 0x00007f025326148c in QApplicationPrivate::notify_helper (this=this@entry=0x8d3370, receiver=receiver@entry=0xbf2700, e=e@entry=0xda63c0) at kernel/qapplication.cpp:4570
#35 0x00007f0253267fa8 in QApplication::notify (this=this@entry=0x7ffc19045f50, receiver=receiver@entry=0xbf2700, e=e@entry=0xda63c0) at kernel/qapplication.cpp:4356
#36 0x00007f0253fd91aa in KApplication::notify (this=0x7ffc19045f50, receiver=0xbf2700, event=0xda63c0) at ../../kdeui/kernel/kapplication.cpp:311
#37 0x00007f025284271d in QCoreApplication::notifyInternal (this=0x7ffc19045f50, receiver=receiver@entry=0xbf2700, event=event@entry=0xda63c0) at kernel/qcoreapplication.cpp:955
#38 0x00007f0252845fc1 in sendEvent (event=0xda63c0, receiver=0xbf2700) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#39 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x888670) at kernel/qcoreapplication.cpp:1579
#40 0x00007f0252846453 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#41 0x00007f0252871bd3 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#42 postEventSourceDispatch (s=0x8bf2d0) at kernel/qeventdispatcher_glib.cpp:280
#43 0x00007f024ea1fc5d in g_main_dispatch (context=0x8d35a0) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3111
#44 g_main_context_dispatch (context=context@entry=0x8d35a0) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3710
#45 0x00007f024ea1ff48 in g_main_context_iterate (context=context@entry=0x8d35a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3781
#46 0x00007f024ea1fffc in g_main_context_iteration (context=0x8d35a0, may_block=1) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3842
#47 0x00007f0252871d1d in QEventDispatcherGlib::processEvents (this=0x8c28a0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#48 0x00007f0253305f96 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#49 0x00007f0252841271 in QEventLoop::processEvents (this=this@entry=0x7ffc19045ec0, flags=...) at kernel/qeventloop.cpp:149
#50 0x00007f02528415d5 in QEventLoop::exec (this=this@entry=0x7ffc19045ec0, flags=...) at kernel/qeventloop.cpp:204
#51 0x00007f0252847059 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#52 0x00007f025325f92c in QApplication::exec () at kernel/qapplication.cpp:3828
#53 0x0000000000409540 in main (argc=<optimized out>, argv=<optimized out>) at ../../shell/main.cpp:64
Comment 1 Justin Zobel 2022-11-10 22:32:51 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Nick Leverton 2022-11-15 22:15:17 UTC
Hi,

Thankyou for taking the trouble to check back on this report.  The original URL is dead unfortunately and I can't find a copy of that file on the net.  However I have tested with a different ppt and unfortunately I am still seeing a segfault on opening.

Application: Okular (okular), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f351a7c1f70 in KoPart::document() const () from /lib/x86_64-linux-gnu/libkomain.so.17
#5  0x00007f35209149e8 in OkularOdpGenerator::loadDocument (this=0x55f13f20a500, fileName=..., pages=...) at ./extras/okularodpgenerator/OkularOdpGenerator.cpp:64
#6  0x00007f353c2ad2a6 in Okular::Generator::loadDocumentWithPassword (this=<optimized out>, fileName=..., pagesVector=...) at ./core/generator.cpp:205
#7  0x00007f353c29cb60 in Okular::DocumentPrivate::openDocumentInternal (this=0x55f13ed46380, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at ./core/document.cpp:936
#8  0x00007f353c29d201 in Okular::Document::openDocument (this=this@entry=0x55f13eebb420, docFile=..., url=..., _mime=..., password=...) at ./core/document.cpp:2438
#9  0x00007f353c3f5b65 in Okular::Part::doOpenFile (this=this@entry=0x55f13ed07000, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7ffe7301b8e7) at ./part/part.cpp:1457
#10 0x00007f353c3f6944 in Okular::Part::openFile (this=0x55f13ed07000) at ./part/part.cpp:1582
#11 0x00007f3546647355 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x55f13ed751d0) at ./src/readonlypart.cpp:180
#12 0x00007f354664841e in KParts::ReadOnlyPart::openUrl (this=this@entry=0x55f13ed07000, url=...) at ./src/readonlypart.cpp:141
#13 0x00007f353c3e5f23 in Okular::Part::openUrl (this=<optimized out>, _url=..., swapInsteadOfOpening=<optimized out>) at ./part/part.cpp:1808
#14 0x000055f13cd31091 in Shell::openUrl (this=<optimized out>, url=..., serializedOptions=...) at ./shell/shell.cpp:319
#15 0x000055f13cd313a4 in Shell::openDocument (serializedOptions=..., url=..., this=0x55f13ed01d10) at ./shell/shell.cpp:265
#16 Shell::openDocument (this=this@entry=0x55f13ed01d10, url=..., serializedOptions=...) at ./shell/shell.cpp:250
#17 0x000055f13cd274fa in Okular::main (paths=..., serializedOptions=...) at ./shell/okular_main.cpp:193
#18 0x000055f13cd271b3 in main (argc=<optimized out>, argv=<optimized out>) at ./shell/main.cpp:93
[Inferior 1 (process 67759) detached]

Now running Debian Bookworm (testing):
ii  libokular5core10                              4:22.04.3-1                          amd64        libraries for the Okular document viewer
ii  okular                                        4:22.04.3-1                          amd64        universal document viewer
ii  okular-backend-odp                            1:3.2.1+dfsg-6+b2                    amd64        Okular backend for ODP documents
ii  okular-backend-odt                            1:3.2.1+dfsg-6+b2                    amd64        Okular backend for ODT documents
ii  okular-extra-backends                         4:22.04.3-1                          amd64        additional document format support for Okular
ii  libkf5kiocore5:amd64                          5.98.0-1                             amd64        resource and network access abstraction (KIO core library)
ii  libkf5parts5:amd64                            5.98.0-1                             amd64        Document centric plugin system.
Comment 3 Nick Leverton 2022-11-15 22:15:27 UTC
Created attachment 153783 [details]
PDF which causes Okular segfault on opening

This file is probably copyright (C) Open University and is uploaded under fair comment provisions for software review, analysis and debugging.