Bug 408837 - Okular crash when opening PDF from Firefox
Summary: Okular crash when opening PDF from Firefox
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.7.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-06-17 16:39 UTC by George Stevenson
Modified: 2019-06-22 10:22 UTC (History)
1 user (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 George Stevenson 2019-06-17 16:39:59 UTC
Application: okular (1.7.2)

Qt Version: 5.12.3
Frameworks Version: 5.59.0
Operating System: Linux 4.18.0-21-generic x86_64
Distribution: KDE neon User Edition 5.16

-- Information about the crash:
- What I was doing when the application crashed:
Click to download a pdf document from Google Drive (in Firefox). Rather than save the pdf, select Open and select Okular from list of apps. Okular opens but immediately crash again. Tried multiple times.

The crash can be reproduced every time.

-- Backtrace:
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 0x7f0c80581200 (LWP 21434))]

Thread 4 (Thread 0x7f0c545cd700 (LWP 21447)):
#0  0x00007f0c78f8d9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5648a8cd1c28) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x5648a8cd1bd8, cond=0x5648a8cd1c00) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x5648a8cd1c00, mutex=0x5648a8cd1bd8) at pthread_cond_wait.c:655
#3  0x00007f0c5512adcb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f0c5512aaf7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f0c78f876db in start_thread (arg=0x7f0c545cd700) at pthread_create.c:463
#6  0x00007f0c7c1f188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f0c65c35700 (LWP 21436)):
#0  0x00007f0c76c533d2 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f0c76c55963 in g_main_context_prepare () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0c76c563fb in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0c76c565dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f0c7cb27dcb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f0c7cac903a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f0c7c8f04ca in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f0c7cf96015 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007f0c7c8f1c72 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f0c78f876db in start_thread (arg=0x7f0c65c35700) at pthread_create.c:463
#10 0x00007f0c7c1f188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f0c6e8f5700 (LWP 21435)):
#0  0x00007f0c7c1e4bf9 in __GI___poll (fds=0x7f0c6e8f4ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f0c79a0a747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f0c79a0c36a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f0c716dc578 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f0c7c8f1c72 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f0c78f876db in start_thread (arg=0x7f0c6e8f5700) at pthread_create.c:463
#6  0x00007f0c7c1f188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f0c80581200 (LWP 21434)):
[KCrash Handler]
#6  SECMOD_ReferenceModule (module=0x0) at pk11util.c:847
#7  0x00007f0c531a6c8c in SECMOD_AddModule (newModule=0x5648a9134f80) at pk11util.c:541
#8  0x00007f0c531a6d30 in SECMOD_AddNewModuleEx (moduleName=0x7f0c536b108d "Root Certs", dllPath=0x7f0c536b107f "libnssckbi.so", defaultMechanismFlags=0, cipherEnableFlags=0, modparms=<optimized out>, nssparms=<optimized out>) at pk11util.c:695
#9  0x00007f0c5365f8fe in SignatureHandler::init_nss() () from /usr/lib/x86_64-linux-gnu/libpoppler.so.73
#10 0x00007f0c5365fc99 in SignatureHandler::SignatureHandler(unsigned char*, int) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.73
#11 0x00007f0c53581c25 in FormFieldSignature::validateSignature(bool, bool, long) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.73
#12 0x00007f0c53970d55 in Poppler::FormFieldSignature::validate(int, QDateTime const&) const () from /usr/lib/x86_64-linux-gnu/libpoppler-qt5.so.1
#13 0x00007f0c5397119f in Poppler::FormFieldSignature::validate(Poppler::FormFieldSignature::ValidateOptions) const () from /usr/lib/x86_64-linux-gnu/libpoppler-qt5.so.1
#14 0x00007f0c53bbf240 in PopplerFormFieldSignature::PopplerFormFieldSignature (this=0x5648a90e5680, field=0x5648a90e57b0) at ./generators/poppler/formfields.cpp:387
#15 0x00007f0c53bb9626 in PDFGenerator::addFormFields (this=this@entry=0x5648a90979f0, popplerPage=popplerPage@entry=0x5648a90d5260, page=page@entry=0x5648a90da550) at ./generators/poppler/generator_pdf.cpp:1978
#16 0x00007f0c53bb9ade in PDFGenerator::loadPages (this=this@entry=0x5648a90979f0, pagesVector=..., rotation=rotation@entry=0, clear=clear@entry=false) at ./generators/poppler/generator_pdf.cpp:787
#17 0x00007f0c53bb9edf in PDFGenerator::init (this=this@entry=0x5648a90979f0, pagesVector=..., password=...) at ./generators/poppler/generator_pdf.cpp:683
#18 0x00007f0c53bba08a in PDFGenerator::loadDocumentWithPassword (this=0x5648a90979f0, filePath=..., pagesVector=..., password=...) at ./generators/poppler/generator_pdf.cpp:638
#19 0x00007f0c641c005a in Okular::DocumentPrivate::openDocumentInternal (this=0x5648a8b4ff70, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at ./core/document.cpp:875
#20 0x00007f0c641c06fd in Okular::Document::openDocument (this=this@entry=0x5648a8b33460, docFile=..., url=..., _mime=..., password=...) at ./core/document.cpp:2443
#21 0x00007f0c644ed6db in Okular::Part::doOpenFile (this=this@entry=0x5648a8ae8470, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7ffc03e35d87) at ./part.cpp:1415
#22 0x00007f0c644edd27 in Okular::Part::openFile (this=0x5648a8ae8470) at ./part.cpp:1549
#23 0x00007f0c80162a56 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x5648a8b2f100) at ./src/readonlypart.cpp:190
#24 0x00007f0c801638e1 in KParts::ReadOnlyPart::openUrl (this=this@entry=0x5648a8ae8470, url=...) at ./src/readonlypart.cpp:153
#25 0x00007f0c644dfe06 in Okular::Part::openUrl (this=0x5648a8ae8470, _url=..., swapInsteadOfOpening=<optimized out>) at ./part.cpp:1755
#26 0x00005648a8204ae2 in Shell::openUrl (this=this@entry=0x5648a8af90c0, url=..., serializedOptions=...) at ./shell/shell.cpp:280
#27 0x00005648a8204d72 in Shell::openDocument (this=this@entry=0x5648a8af90c0, url=..., serializedOptions=...) at ./shell/shell.cpp:221
#28 0x00005648a8204e16 in Shell::openDocument (this=this@entry=0x5648a8af90c0, url=..., serializedOptions=...) at ./shell/shell.cpp:208
#29 0x00005648a81fe306 in Okular::main (paths=..., serializedOptions=...) at ./shell/okular_main.cpp:176
#30 0x00005648a81fd955 in main (argc=<optimized out>, argv=<optimized out>) at ./shell/main.cpp:77

Possible duplicates by query: bug 408576, bug 407369.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2019-06-22 08:56:01 UTC
Does opening it from not firefox? i.e. dolphin or the command line make a difference?
Comment 2 George Stevenson 2019-06-22 10:22:53 UTC
So I remember Okular also crashed if I opened the document from Dolphin. Tried again today and all seems good. Noticed Okular mentions the document have both fields and is digitally signed. Not sure if there were any Okular bugs relating to this that was closed recently? And I might have updated? Anyway please consider this bug fixed ^_^
Thank you!