Bug 457367 - Okular crashing when opening a specific pdf file
Summary: Okular crashing when opening a specific pdf file
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 22.04.1
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-08-01 11:08 UTC by Lukasz Plich
Modified: 2022-08-01 15:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukasz Plich 2022-08-01 11:08:05 UTC
Application: okular (22.04.1)

Qt Version: 5.15.5
Frameworks Version: 5.96.0
Operating System: Linux 5.18.13-200.fc36.x86_64 x86_64
Windowing System: X11
Distribution: Fedora Linux 36 (KDE Plasma)
DrKonqi: 5.25.3 [KCrashBackend]

-- Information about the crash:
Okular 22.04.1 is crashing only when opening a specific pdf file. I can't send the pdf file as it contains many private data, but as far as I can describe it, it's an invoice of a bought product from a shop. It contains text with different formating, picture and a table. It doesn't contain any electronic signature or any specific metadata as far as I can tell. I am sending a picture of some data collected by chromium browser of this pdf file under this link: https://imgur.com/0qaJkKi

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Aborted

[KCrash Handler]
#4  0x00007f55df6adc4c in __pthread_kill_implementation () from /lib64/libc.so.6
#5  0x00007f55df65d9c6 in raise () from /lib64/libc.so.6
#6  0x00007f55df6477f4 in abort () from /lib64/libc.so.6
#7  0x00007f55df8c3b57 in __gnu_cxx::__verbose_terminate_handler() [clone .cold] () from /lib64/libstdc++.so.6
#8  0x00007f55df8cf43c in __cxxabiv1::__terminate(void (*)()) () from /lib64/libstdc++.so.6
#9  0x00007f55df8cf4a7 in std::terminate() () from /lib64/libstdc++.so.6
#10 0x00007f55df8cf708 in __cxa_throw () from /lib64/libstdc++.so.6
#11 0x00007f55df8c63f6 in std::__throw_logic_error(char const*) () from /lib64/libstdc++.so.6
#12 0x00007f55b440cadf in SignatureHandler::getSignerName[abi:cxx11]() () from /lib64/libpoppler.so.117
#13 0x00007f55b42f0c87 in FormFieldSignature::validateSignature(bool, bool, long, bool, bool) () from /lib64/libpoppler.so.117
#14 0x00007f55b45b2191 in Poppler::FormFieldSignature::validate(int, QDateTime const&) const () from /lib64/libpoppler-qt5.so.1
#15 0x00007f55b45b2623 in Poppler::FormFieldSignature::validate(Poppler::FormFieldSignature::ValidateOptions) const () from /lib64/libpoppler-qt5.so.1
#16 0x00007f55c4072a8d in PopplerFormFieldSignature::PopplerFormFieldSignature(std::unique_ptr<Poppler::FormFieldSignature, std::default_delete<Poppler::FormFieldSignature> >) () from /usr/lib64/qt5/plugins/okular/generators/okularGenerator_poppler.so
#17 0x00007f55c4077810 in PDFGenerator::getFormFields(Poppler::Page*) [clone .constprop.0] () from /usr/lib64/qt5/plugins/okular/generators/okularGenerator_poppler.so
#18 0x00007f55c4069116 in PDFGenerator::init(QVector<Okular::Page*>&, QString const&) () from /usr/lib64/qt5/plugins/okular/generators/okularGenerator_poppler.so
#19 0x00007f55cc1e96c8 in Okular::DocumentPrivate::openDocumentInternal(KPluginMetaData const&, bool, QString const&, QByteArray const&, QString const&) () from /lib64/libOkular5Core.so.10
#20 0x00007f55cc1f5c8c in Okular::Document::openDocument(QString const&, QUrl const&, QMimeType const&, QString const&) () from /lib64/libOkular5Core.so.10
#21 0x00007f55cc36a152 in Okular::Part::doOpenFile(QMimeType const&, QString const&, bool*) () from /usr/lib64/qt5/plugins/okularpart.so
#22 0x00007f55cc36b94d in Okular::Part::openFile() () from /usr/lib64/qt5/plugins/okularpart.so
#23 0x00007f55e14002d5 in KParts::ReadOnlyPartPrivate::openLocalFile() () from /lib64/libKF5Parts.so.5
#24 0x00007f55e1404abf in KParts::ReadOnlyPart::openUrl(QUrl const&) () from /lib64/libKF5Parts.so.5
#25 0x00007f55cc36862c in Okular::Part::openUrl(QUrl const&, bool) () from /usr/lib64/qt5/plugins/okularpart.so
#26 0x000055b4e8bf4f7b in Shell::openUrl(QUrl const&, QString const&) ()
#27 0x000055b4e8bf5a25 in Shell::openDocument(QUrl const&, QString const&) ()
#28 0x000055b4e8bef087 in main ()
[Inferior 1 (process 33792) detached]

Reported using DrKonqi
Comment 1 Albert Astals Cid 2022-08-01 15:57:57 UTC
Update to poppler 22.07.0 or newer