Bug 414179 - Okular crashes when a password protected PDF is opened.
Summary: Okular crashes when a password protected PDF is opened.
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.7.3
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-11-15 15:23 UTC by Anoop Chargotra
Modified: 2020-02-14 12:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (5.39 KB, text/plain)
2019-12-02 15:12 UTC, Paolo
Details
New crash information added by DrKonqi (6.05 KB, patch)
2020-02-14 12:16 UTC, NSLW
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anoop Chargotra 2019-11-15 15:23:44 UTC
Application: okular (1.7.3)

Qt Version: 5.12.5
Frameworks Version: 5.61.0
Operating System: Linux 5.3.11-300.fc31.x86_64 x86_64
Distribution: "Fedora release 31 (Thirty One)"

-- Information about the crash:
Okular crashes when a password protected PDF is opened. This issue is seen on Fedora 31 (KDE Plasma Version: 5.16.5, KDE Framework Version: 5.61.0). On previous versions it used to work fine. This issue is always reproducible.

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9fa877bc80 (LWP 10551))]

Thread 4 (Thread 0x7f9f9153e700 (LWP 10556)):
#0  0x00007f9fab51bd45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9f91bc506b in util_queue_thread_func () from /usr/lib64/dri/i965_dri.so
#2  0x00007f9f91bc4c7b in impl_thrd_routine () from /usr/lib64/dri/i965_dri.so
#3  0x00007f9fab5154e2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f9fabe09643 in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f9f99ae8700 (LWP 10554)):
#0  0x00007f9fabdfa3fc in read () from /lib64/libc.so.6
#1  0x00007f9faaaf646f in g_wakeup_acknowledge () from /lib64/libglib-2.0.so.0
#2  0x00007f9faaaae2e7 in g_main_context_check () from /lib64/libglib-2.0.so.0
#3  0x00007f9faaaae742 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#4  0x00007f9faaaae8d3 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#5  0x00007f9fac386cd3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f9fac330ceb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#7  0x00007f9fac189395 in QThread::exec() () from /lib64/libQt5Core.so.5
#8  0x00007f9fac602f4a in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#9  0x00007f9fac18a4e6 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#10 0x00007f9fab5154e2 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f9fabe09643 in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f9f9b44c700 (LWP 10552)):
#0  0x00007f9fabdfea1f in poll () from /lib64/libc.so.6
#1  0x00007f9fab59b38a in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007f9fab59cfea in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007f9f9b655ac8 in QXcbEventQueue::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007f9fac18a4e6 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007f9fab5154e2 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f9fabe09643 in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f9fa877bc80 (LWP 10551)):
[KCrash Handler]
#6  0x00007f9fabe69cb5 in __strlen_avx2 () from /lib64/libc.so.6
#7  0x00007f9fabd97f23 in strdup () from /lib64/libc.so.6
#8  0x00007f9f90a73371 in SignatureInfo::setSubjectDN(char const*) () from /lib64/libpoppler.so.84
#9  0x00007f9f909d1b81 in FormFieldSignature::validateSignature(bool, bool, long) () from /lib64/libpoppler.so.84
#10 0x00007f9f90c2edd9 in Poppler::FormFieldSignature::validate(int, QDateTime const&) const () from /lib64/libpoppler-qt5.so.1
#11 0x00007f9f90c2f904 in Poppler::FormFieldSignature::validate(Poppler::FormFieldSignature::ValidateOptions) const () from /lib64/libpoppler-qt5.so.1
#12 0x00007f9f90c972f7 in PopplerFormFieldSignature::PopplerFormFieldSignature(Poppler::FormFieldSignature*) () from /usr/lib64/qt5/plugins/okular/generators/okularGenerator_poppler.so
#13 0x00007f9f90c8f99d in PDFGenerator::addFormFields(Poppler::Page*, Okular::Page*) () from /usr/lib64/qt5/plugins/okular/generators/okularGenerator_poppler.so
#14 0x00007f9f90c8fc70 in PDFGenerator::loadPages(QVector<Okular::Page*>&, int, bool) () from /usr/lib64/qt5/plugins/okular/generators/okularGenerator_poppler.so
#15 0x00007f9f90c90033 in PDFGenerator::init(QVector<Okular::Page*>&, QString const&) () from /usr/lib64/qt5/plugins/okular/generators/okularGenerator_poppler.so
#16 0x00007f9f90c9023c in PDFGenerator::loadDocumentWithPassword(QString const&, QVector<Okular::Page*>&, QString const&) () from /usr/lib64/qt5/plugins/okular/generators/okularGenerator_poppler.so
#17 0x00007f9f9862c817 in Okular::DocumentPrivate::openDocumentInternal(KPluginMetaData const&, bool, QString const&, QByteArray const&, QString const&) () from /lib64/libOkular5Core.so.9
#18 0x00007f9f9862ceab in Okular::Document::openDocument(QString const&, QUrl const&, QMimeType const&, QString const&) () from /lib64/libOkular5Core.so.9
#19 0x00007f9f987739c4 in Okular::Part::doOpenFile(QMimeType const&, QString const&, bool*) () from /usr/lib64/qt5/plugins/okularpart.so
#20 0x00007f9f98774119 in Okular::Part::openFile() () from /usr/lib64/qt5/plugins/okularpart.so
#21 0x00007f9fada3b2f1 in KParts::ReadOnlyPartPrivate::openLocalFile() () from /lib64/libKF5Parts.so.5
#22 0x00007f9fada3c28e in KParts::ReadOnlyPart::openUrl(QUrl const&) () from /lib64/libKF5Parts.so.5
#23 0x00007f9f98764a6e in Okular::Part::openUrl(QUrl const&, bool) () from /usr/lib64/qt5/plugins/okularpart.so
#24 0x00005599cc2b8d1b in Shell::openUrl(QUrl const&, QString const&) ()
#25 0x00005599cc2b8f97 in Shell::openDocument(QUrl const&, QString const&) [clone .part.0] ()
#26 0x00005599cc2b1537 in Okular::main(QStringList const&, QString const&) ()
#27 0x00005599cc2b0c1b in main ()
[Inferior 1 (process 10551) detached]

Reported using DrKonqi
Comment 1 Albert Astals Cid 2019-11-15 22:55:33 UTC
without having the pdf file it's hard to know if it's fixed, but i'd say "your poppler is old"
Comment 2 Anoop Chargotra 2019-11-17 02:07:13 UTC
Can't share my PDF as it's my bank statement. Let me know if I you want some other information. BTW, PDF opens fine in Gnome document viewer.
Comment 3 Bug Janitor Service 2019-12-02 04:33:07 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 4 Paolo 2019-12-02 15:12:03 UTC
Created attachment 124268 [details]
New crash information added by DrKonqi

okular (1.7.3) using Qt 5.12.5

- What I was doing when the application crashed:
I clicked a pdf file to open it; it is not password protected
- Unusual behavior I noticed:
Okular crashes immediately after clicking pdf file
- Custom settings of the application:

-- Backtrace (Reduced):
#8  0x00007fadde92b371 in SignatureInfo::setSubjectDN(char const*) () from /lib64/libpoppler.so.84
#9  0x00007fadde889b81 in FormFieldSignature::validateSignature(bool, bool, long) () from /lib64/libpoppler.so.84
#10 0x00007fade8255dd9 in Poppler::FormFieldSignature::validate(int, QDateTime const&) const () from /lib64/libpoppler-qt5.so.1
#11 0x00007fade8256904 in Poppler::FormFieldSignature::validate(Poppler::FormFieldSignature::ValidateOptions) const () from /lib64/libpoppler-qt5.so.1
#12 0x00007fade82be2f7 in PopplerFormFieldSignature::PopplerFormFieldSignature(Poppler::FormFieldSignature*) () from /usr/lib64/qt5/plugins/okular/generators/okularGenerator_poppler.so
Comment 5 Albert Astals Cid 2019-12-02 21:41:58 UTC
Don't hijacks bugs.
Your poppler is old, update it
Comment 6 Paolo 2019-12-03 08:54:10 UTC
(In reply to Albert Astals Cid from comment #5)
> Don't hijacks bugs.
> Your poppler is old, update it

I'm not hijacking bugs, I thought it was useful to add more infos about the crash. Anyway, thank you. Bug gone
Comment 7 NSLW 2020-02-14 12:16:08 UTC
Created attachment 126008 [details]
New crash information added by DrKonqi

okular (1.8.3) using Qt 5.13.2

My PDF file crashes with Okular and doesn't crash with Evince. I cannot share the file itself.

-- Backtrace (Reduced):
#8  0x00007f4d36a18331 in SignatureInfo::setSubjectDN (this=this@entry=0x56242ed418c0, subjectDN=0x0) at /usr/src/debug/poppler-0.73.0-16.fc31.x86_64/poppler/SignatureInfo.cc:136
#9  0x00007f4d36976b31 in FormFieldSignature::validateSignature (this=0x56242ed42d40, doVerifyCert=<optimized out>, forceRevalidation=<optimized out>, validationTime=4294967295) at /usr/src/debug/poppler-0.73.0-16.fc31.x86_64/poppler/Form.cc:1750
#10 0x00007f4d36bd3d09 in Poppler::FormFieldSignature::validate (this=<optimized out>, opt=<optimized out>, validationTime=...) at /usr/src/debug/poppler-0.73.0-16.fc31.x86_64/qt5/src/poppler-form.cc:871
#11 0x00007f4d36bd4834 in Poppler::FormFieldSignature::validate (this=0x56242edb8a60, opt=opt@entry=Poppler::FormFieldSignature::ValidateVerifyCertificate) at /usr/src/debug/poppler-0.73.0-16.fc31.x86_64/qt5/src/poppler-form.cc:864
#12 0x00007f4d36c74187 in PopplerFormFieldSignature::PopplerFormFieldSignature (this=0x56242edb8c40, field=0x56242edb8a60) at /usr/src/debug/okular-19.08.3-1.fc31.x86_64/generators/poppler/formfields.cpp:387