Bug 407369 - Okular crashes when opening a digitally signed pdf file.
Summary: Okular crashes when opening a digitally signed pdf file.
Status: RESOLVED DUPLICATE of bug 407338
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.7.0
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 416637 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-05-09 18:29 UTC by fredhoud
Modified: 2020-01-23 16:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fredhoud 2019-05-09 18:29:07 UTC
SUMMARY


STEPS TO REPRODUCE
1. Opening a PDF file that is signed digitally
2. Crashes
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.15.5
(available in About System)
KDE Plasma Version: 5.57.0
KDE Frameworks Version: 5.12
Qt Version: 

ADDITIONAL INFORMATION
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7facbb8fd200 (LWP 1584))]

Thread 5 (Thread 0x7fac8be17700 (LWP 1588)):
#0  0x00007facb43139f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e028a296b8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e028a29668, cond=0x55e028a29690) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e028a29690, mutex=0x55e028a29668) at pthread_cond_wait.c:655
#3  0x00007fac916fce6b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007fac916fcb97 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007facb430d6db in start_thread (arg=0x7fac8be17700) at pthread_create.c:463
#6  0x00007facb757788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fac8c618700 (LWP 1587)):
#0  0x00007facb43139f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e028c4758c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e028c47538, cond=0x55e028c47560) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e028c47560, mutex=0x55e028c47538) at pthread_cond_wait.c:655
#3  0x00007fac916fce6b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007fac916fcb97 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007facb430d6db in start_thread (arg=0x7fac8c618700) at pthread_create.c:463
#6  0x00007facb757788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7faca26c5700 (LWP 1586)):
#0  0x00007facb756abf9 in __GI___poll (fds=0x7fac9c004db0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007facb1fdb5c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007facb1fdb6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007facb7ead15b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007facb7e4e64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007facb7c7641a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007facb831b015 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007facb7c77bc2 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007facb430d6db in start_thread (arg=0x7faca26c5700) at pthread_create.c:463
#9  0x00007facb757788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7facab4b2700 (LWP 1585)):
#0  0x00007facb756abf9 in __GI___poll (fds=0x7facab4b1cb8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007facb4d90747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007facb4d9236a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007facaca2d32a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007facb7c77bc2 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007facb430d6db in start_thread (arg=0x7facab4b2700) at pthread_create.c:463
#6  0x00007facb757788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7facbb8fd200 (LWP 1584)):
[KCrash Handler]
#6  SECMOD_ReferenceModule (module=0x0) at pk11util.c:847
#7  0x00007fac8a9f0c8c in SECMOD_AddModule (newModule=0x55e028e601e0) at pk11util.c:541
#8  0x00007fac8a9f0d30 in SECMOD_AddNewModuleEx (moduleName=0x7fac8aefb08d "Root Certs", dllPath=0x7fac8aefb07f "libnssckbi.so", defaultMechanismFlags=0, cipherEnableFlags=0, modparms=<optimized out>, nssparms=<optimized out>) at pk11util.c:695
#9  0x00007fac8aea98fe in SignatureHandler::init_nss() () from /usr/lib/x86_64-linux-gnu/libpoppler.so.73
#10 0x00007fac8aea9c99 in SignatureHandler::SignatureHandler(unsigned char*, int) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.73
#11 0x00007fac8adcbc25 in FormFieldSignature::validateSignature(bool, bool, long) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.73
#12 0x00007fac8b1bad55 in Poppler::FormFieldSignature::validate(int, QDateTime const&) const () from /usr/lib/x86_64-linux-gnu/libpoppler-qt5.so.1
#13 0x00007fac8b1bb19f in Poppler::FormFieldSignature::validate(Poppler::FormFieldSignature::ValidateOptions) const () from /usr/lib/x86_64-linux-gnu/libpoppler-qt5.so.1
#14 0x00007fac8b409240 in PopplerFormFieldSignature::PopplerFormFieldSignature (this=0x55e028e0a820, field=0x55e028dee880) at ./generators/poppler/formfields.cpp:387
#15 0x00007fac8b403626 in PDFGenerator::addFormFields (this=this@entry=0x55e028da9a90, popplerPage=popplerPage@entry=0x55e028dee060, page=page@entry=0x55e028dee3c0) at ./generators/poppler/generator_pdf.cpp:1978
#16 0x00007fac8b403ade in PDFGenerator::loadPages (this=this@entry=0x55e028da9a90, pagesVector=..., rotation=rotation@entry=0, clear=clear@entry=false) at ./generators/poppler/generator_pdf.cpp:787
#17 0x00007fac8b403edf in PDFGenerator::init (this=this@entry=0x55e028da9a90, pagesVector=..., password=...) at ./generators/poppler/generator_pdf.cpp:683
#18 0x00007fac8b40408a in PDFGenerator::loadDocumentWithPassword (this=0x55e028da9a90, filePath=..., pagesVector=..., password=...) at ./generators/poppler/generator_pdf.cpp:638
#19 0x00007faca0c5005a in Okular::DocumentPrivate::openDocumentInternal (this=0x55e028777e10, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at ./core/document.cpp:875
#20 0x00007faca0c506fd in Okular::Document::openDocument (this=this@entry=0x55e028885170, docFile=..., url=..., _mime=..., password=...) at ./core/document.cpp:2443
#21 0x00007faca0f7d6db in Okular::Part::doOpenFile (this=this@entry=0x55e0288703f0, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7ffc800cb117) at ./part.cpp:1415
#22 0x00007faca0f7dd27 in Okular::Part::openFile (this=0x55e0288703f0) at ./part.cpp:1549
#23 0x00007facbb4d6a56 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x55e028846110) at ./src/readonlypart.cpp:190
#24 0x00007facbb4d78e1 in KParts::ReadOnlyPart::openUrl (this=this@entry=0x55e0288703f0, url=...) at ./src/readonlypart.cpp:153
#25 0x00007faca0f6fe06 in Okular::Part::openUrl (this=0x55e0288703f0, _url=..., swapInsteadOfOpening=<optimized out>) at ./part.cpp:1755
#26 0x000055e0274aeae2 in Shell::openUrl (this=this@entry=0x55e02884c800, url=..., serializedOptions=...) at ./shell/shell.cpp:280
#27 0x000055e0274aed72 in Shell::openDocument (this=this@entry=0x55e02884c800, url=..., serializedOptions=...) at ./shell/shell.cpp:221
#28 0x000055e0274aee16 in Shell::openDocument (this=this@entry=0x55e02884c800, url=..., serializedOptions=...) at ./shell/shell.cpp:208
#29 0x000055e0274a8306 in Okular::main (paths=..., serializedOptions=...) at ./shell/okular_main.cpp:176
#30 0x000055e0274a7955 in main (argc=<optimized out>, argv=<optimized out>) at ./shell/main.cpp:74
Comment 1 Albert Astals Cid 2019-05-09 22:52:00 UTC
Your poppler is old, which distribution is that?

is there any chance you can try with a new poppler? Or try with the poppler from flathub?
Comment 2 Bug Janitor Service 2019-05-24 04:33:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Juan Ases García 2019-05-30 21:02:47 UTC
I can confirm that Okular crashes opening signed PDFs like this https://kbdeveloper.qoppa.com/wp-content/uploads/blank_signed.pdf in the latest version of KDE Neon Developer Edition neon-developer-20190527-2358.iso but the bug seems a duplicate of #407338 and resolved in poppler-0.77.0 released on May 25, 2019

*** This bug has been marked as a duplicate of bug 407338 ***
Comment 4 Yuri Chornoivan 2020-01-23 16:50:17 UTC
*** Bug 416637 has been marked as a duplicate of this bug. ***