https://bugs.kde.org/show_bug.cgi?id=408254
Bug ID: 408254 Summary: Okular crashes with an encrypted pdf from Adobe sign Product: okular Version: 1.7.1 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: PDF backend Assignee: okular-devel@kde.org Reporter: nico.kru...@gmail.com Target Milestone: --- SUMMARY I'm trying to open a pdf I received and downloaded from Adobe Sign (which I unfortunately can't share). Whenever I open it, Okular immediately crashes - pdf preview in Dolphin as well as pdf import in Gimp seem to work though. STEPS TO REPRODUCE 1. open pdf OBSERVED RESULT crash EXPECTED RESULT no crash SOFTWARE/OS VERSIONS Linux/KDE Plasma: Kernel 5.1.4, x86_64 (available in About System) KDE Plasma Version: 5.15.5 KDE Frameworks Version: 5.58.0 Qt Version: 5.12.3 libpoppler: 0.72.0 ADDITIONAL INFORMATION Backtrace from the crash: Application: Okular (okular), signal: Segmentation fault Using host libthread_db library "/lib64/libthread_db.so.1". [Current thread is 1 (Thread 0x7fb22a7bb900 (LWP 7168))] Thread 3 (Thread 0x7fb226e48700 (LWP 7170)): #0 0x00007fb22c504c9f in poll () from /lib64/libc.so.6 #1 0x00007fb22b158dbe in ?? () from /usr/lib64/libglib-2.0.so.0 #2 0x00007fb22b158edf in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #3 0x00007fb22ca96e1b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5 #4 0x00007fb22ca3fbdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5 #5 0x00007fb22c881751 in QThread::exec() () from /usr/lib64/libQt5Core.so.5 #6 0x00007fb22cd144e6 in ?? () from /usr/lib64/libQt5DBus.so.5 #7 0x00007fb22c8828d2 in ?? () from /usr/lib64/libQt5Core.so.5 #8 0x00007fb22bc40faa in start_thread () from /lib64/libpthread.so.0 #9 0x00007fb22c50f71f in clone () from /lib64/libc.so.6 Thread 2 (Thread 0x7fb228751700 (LWP 7169)): #0 0x00007fb22c504c9f in poll () from /lib64/libc.so.6 #1 0x00007fb22bcc5cc2 in ?? () from /usr/lib64/libxcb.so.1 #2 0x00007fb22bcc78ba in xcb_wait_for_event () from /usr/lib64/libxcb.so.1 #3 0x00007fb228961e28 in ?? () from /usr/lib64/libQt5XcbQpa.so.5 #4 0x00007fb22c8828d2 in ?? () from /usr/lib64/libQt5Core.so.5 #5 0x00007fb22bc40faa in start_thread () from /lib64/libpthread.so.0 #6 0x00007fb22c50f71f in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7fb22a7bb900 (LWP 7168)): [KCrash Handler] #6 0x00007fb22c572311 in __strlen_avx2 () from /lib64/libc.so.6 #7 0x00007fb22c49ed9f in strdup () from /lib64/libc.so.6 #8 0x00007fb21ca5b77d in SignatureInfo::setSubjectDN (this=this@entry=0x55759f4d1040, subjectDN=0x0) at /usr/src/debug/poppler-0.72.0-1.4.x86_64/poppler/SignatureInfo.cc:127 #9 0x00007fb21c9c9ec0 in FormFieldSignature::validateSignature (forceRevalidation=<optimized out>, validationTime=4294967295, doVerifyCert=true, this=0x55759f5f59b0) at /usr/src/debug/poppler-0.72.0-1.4.x86_64/poppler/Form.cc:1750 #10 FormFieldSignature::validateSignature (this=0x55759f5f59b0, doVerifyCert=<optimized out>, forceRevalidation=<optimized out>, validationTime=4294967295) at /usr/src/debug/poppler-0.72.0-1.4.x86_64/poppler/Form.cc:1690 #11 0x00007fb21cbeb3e4 in Poppler::FormFieldSignature::validate (this=this@entry=0x55759f5f5950, opt=opt@entry=1, validationTime=...) at /usr/src/debug/poppler-qt5-0.72.0-1.4.x86_64/qt5/src/poppler-form.cc:681 #12 0x00007fb21cbeb940 in Poppler::FormFieldSignature::validate (this=0x55759f5f5950, opt=opt@entry=Poppler::FormFieldSignature::ValidateVerifyCertificate) at /usr/src/debug/poppler-qt5-0.72.0-1.4.x86_64/qt5/src/poppler-form.cc:674 #13 0x00007fb21cc75e53 in PopplerFormFieldSignature::PopplerFormFieldSignature (this=0x55759f5f5b70, field=0x55759f5f5950) at /usr/src/debug/okular-19.04.1-1.2.x86_64/generators/poppler/formfields.cpp:387 #14 0x00007fb21cc6e9bd in PDFGenerator::addFormFields (this=<optimized out>, popplerPage=<optimized out>, page=<optimized out>) at /usr/src/debug/okular-19.04.1-1.2.x86_64/generators/poppler/generator_pdf.cpp:1978 #15 0x00007fb21cc6ec90 in PDFGenerator::loadPages (this=this@entry=0x55759f4c5020, pagesVector=..., rotation=rotation@entry=0, clear=clear@entry=false) at /usr/src/debug/okular-19.04.1-1.2.x86_64/generators/poppler/generator_pdf.cpp:787 #16 0x00007fb21cc6f04f in PDFGenerator::init (this=this@entry=0x55759f4c5020, pagesVector=..., password=...) at /usr/src/debug/okular-19.04.1-1.2.x86_64/generators/poppler/generator_pdf.cpp:683 #17 0x00007fb21cc6f258 in PDFGenerator::loadDocumentWithPassword (this=0x55759f4c5020, filePath=..., pagesVector=..., password=...) at /usr/src/debug/okular-19.04.1-1.2.x86_64/generators/poppler/generator_pdf.cpp:638 #18 0x00007fb2259b18bc in Okular::DocumentPrivate::openDocumentInternal (this=0x55759eb902a0, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at /usr/src/debug/okular-19.04.1-1.2.x86_64/core/document.cpp:875 #19 0x00007fb2259b1f3b in Okular::Document::openDocument (this=this@entry=0x55759eb69460, docFile=..., url=..., _mime=..., password=...) at /usr/src/debug/okular-19.04.1-1.2.x86_64/core/document.cpp:2443 #20 0x00007fb225b19d85 in Okular::Part::doOpenFile (this=this@entry=0x55759eb43d90, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7ffc6e7a8107) at /usr/src/debug/okular-19.04.1-1.2.x86_64/part.cpp:1415 #21 0x00007fb225b1b041 in Okular::Part::openFile (this=0x55759eb43d90) at /usr/src/debug/okular-19.04.1-1.2.x86_64/part.cpp:1549 #22 0x00007fb22e1b2f8d in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x55759eb66af0) at /usr/src/debug/kparts-5.58.0-1.2.x86_64/src/readonlypart.cpp:190 #23 0x00007fb22e1b3f16 in KParts::ReadOnlyPart::openUrl (this=this@entry=0x55759eb43d90, url=...) at /usr/src/debug/kparts-5.58.0-1.2.x86_64/src/readonlypart.cpp:153 #24 0x00007fb225b0b8d6 in Okular::Part::openUrl (this=0x55759eb43d90, _url=..., swapInsteadOfOpening=<optimized out>) at /usr/src/debug/okular-19.04.1-1.2.x86_64/part.cpp:1755 #25 0x000055759d23f9fb in Shell::openUrl (this=0x55759eb0f2e0, url=..., serializedOptions=...) at /usr/src/debug/okular-19.04.1-1.2.x86_64/shell/shell.cpp:280 #26 0x000055759d2413a0 in Shell::fileOpen (this=0x55759eb0f2e0) at /usr/include/qt5/QtCore/qarraydata.h:257 #27 0x000055759d247385 in Shell::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=0x7ffc6e7a8720, _c=QMetaObject::InvokeMetaMethod) at /usr/src/debug/okular-19.04.1-1.2.x86_64/build/shell/okular_autogen/EWIEGA46WW/moc_shell.cpp:183 #28 0x000055759d24748c in Shell::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/okular-19.04.1-1.2.x86_64/build/shell/okular_autogen/EWIEGA46WW/moc_shell.cpp:171 #29 0x00007fb22ca6ba18 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5 #30 0x00007fb22d4f7812 in QAction::triggered(bool) () from /usr/lib64/libQt5Widgets.so.5 #31 0x00007fb22d4f9e52 in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQt5Widgets.so.5 #32 0x00007fb22d67ac82 in ?? () from /usr/lib64/libQt5Widgets.so.5 #33 0x00007fb22d6822aa in ?? () from /usr/lib64/libQt5Widgets.so.5 #34 0x00007fb22d6832d2 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5 #35 0x00007fb22d53f4f6 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #36 0x00007fb22d6858b3 in QMenu::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #37 0x00007fb22d4fdc32 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #38 0x00007fb22d5070f3 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #39 0x00007fb22ca40e92 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5 #40 0x00007fb22d682da6 in ?? () from /usr/lib64/libQt5Widgets.so.5 #41 0x00007fb22d6830b6 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5 #42 0x00007fb22d53f4f6 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #43 0x00007fb22d6858b3 in QMenu::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #44 0x00007fb22d4fdc32 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #45 0x00007fb22d5070f3 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #46 0x00007fb22ca40e92 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5 #47 0x00007fb22d5061e3 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib64/libQt5Widgets.so.5 #48 0x00007fb22d55b9e4 in ?? () from /usr/lib64/libQt5Widgets.so.5 #49 0x00007fb22d55dee4 in ?? () from /usr/lib64/libQt5Widgets.so.5 #50 0x00007fb22d4fdc32 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #51 0x00007fb22d506ea0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #52 0x00007fb22ca40e92 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5 #53 0x00007fb22ced0183 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5 #54 0x00007fb22ced19eb in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5 #55 0x00007fb22ceaa5eb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5 #56 0x00007fb228962dda in ?? () from /usr/lib64/libQt5XcbQpa.so.5 #57 0x00007fb22b158bc3 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #58 0x00007fb22b158e50 in ?? () from /usr/lib64/libglib-2.0.so.0 #59 0x00007fb22b158edf in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #60 0x00007fb22ca96e01 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5 #61 0x00007fb22ca3fbdb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5 #62 0x00007fb22ca475c2 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5 #63 0x000055759d2389ea in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-19.04.1-1.2.x86_64/shell/main.cpp:90 [Inferior 1 (process 7168) detached] -- You are receiving this mail because: You are the assignee for the bug.