Bug 366617 - okular crash when opening a pdfmod generated file
Summary: okular crash when opening a pdfmod generated file
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.25.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-08-11 06:55 UTC by José Ángel Martínez
Modified: 2016-08-18 22:10 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
pdf file extracted with pdfmod (176.47 KB, application/pdf)
2016-08-11 09:39 UTC, José Ángel Martínez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Ángel Martínez 2016-08-11 06:55:37 UTC
Application: okular (0.25.0)
KDE Platform Version: 4.14.22
Qt Version: 4.8.7
Operating System: Linux 4.6.4-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed: I extracted a page of a pdf file with pdfmod. When openning this extracted page with okular, it crash

- Custom settings of the application:

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Aborted
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[KCrash Handler]
#6  0x00007f3f0e6e804f in raise () from /usr/lib/libc.so.6
#7  0x00007f3f0e6e947a in abort () from /usr/lib/libc.so.6
#8  0x00007f3efae9afc8 in PDFDoc::getDocInfoStringEntry(char const*) () from /usr/lib/libpoppler.so.63
#9  0x00007f3efb204402 in Poppler::Document::info(QString const&) const () from /usr/lib/libpoppler-qt4.so.4
#10 0x00007f3efb45dc33 in PDFGenerator::metaData(QString const&, QVariant const&) const () from /usr/lib/kde4/okularGenerator_poppler.so
#11 0x00007f3efee6d257 in Okular::Document::metaData(QString const&, QVariant const&) const () from /usr/lib/libokularcore.so.7
#12 0x00007f3eff1ca02f in Okular::Part::setWindowTitleFromDocument() () from /usr/lib/kde4/okularpart.so
#13 0x00007f3eff1da8b5 in ?? () from /usr/lib/kde4/okularpart.so
#14 0x00007f3f0f211590 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#15 0x00007f3f1162bae2 in KParts::ReadOnlyPartPrivate::openLocalFile() () from /usr/lib/libkparts.so.4
#16 0x00007f3f1162e3ad in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#17 0x00007f3eff1cf333 in Okular::Part::openUrl(KUrl const&) () from /usr/lib/kde4/okularpart.so
#18 0x00000000004111fe in Shell::openUrl(KUrl const&, QString const&) ()
#19 0x000000000041141c in Shell::openDocument(QString const&, QString const&) ()
#20 0x000000000040c658 in Okular::main(QStringList const&, QString const&) ()
#21 0x000000000040b470 in main ()

Reported using DrKonqi
Comment 1 Oliver Sander 2016-08-11 07:46:09 UTC
Can you please attach the file?
Comment 2 José Ángel Martínez 2016-08-11 09:39:12 UTC
Created attachment 100539 [details]
pdf file extracted with pdfmod
Comment 3 Oliver Sander 2016-08-11 09:44:23 UTC
It works for me.  Is your okular/poppler too old?  Mine is

$okular --version
Qt: 4.8.7
KDE: 4.14.22
Okular: 0.25.0

$apt show libpoppler-dev
Package: libpoppler-dev
Version: 0.44.0-3

on an up-to-date Debian Testing.
Comment 4 José Ángel Martínez 2016-08-11 09:51:49 UTC
I have se same version:

$okular --version
Qt: 4.8.7
Plataforma de desarrollo de KDE: 4.14.22
Okular: 0.25.0

up-to-date archlinux
Comment 5 Oliver Sander 2016-08-11 09:57:53 UTC
Hmm, strange.  Can you get a backtrace with debug symbols?
Comment 6 José Ángel Martínez 2016-08-11 11:04:42 UTC
Sorry, I do not know how to do that...
Comment 7 Oliver Sander 2016-08-11 12:10:24 UTC
I don't know how to do it on ArchLinux.  DuckDuckGo gave me the following link, which appears to go into the right direction:

https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces
Comment 8 Olivier Churlaud 2016-08-11 12:12:35 UTC
In archlinux, the only way is to recompile. For example, install the aur version:

https://aur.archlinux.org/packages/okular-git
Comment 9 Olivier Churlaud 2016-08-11 12:13:18 UTC
The problem is that it might be also in kpart, so maybe you'll need to do the same for the whole chain.
Comment 10 Oliver Sander 2016-08-11 12:21:03 UTC
According to the original trace, the segfault happens in poppler, so maybe you should start with that.
Comment 11 bugzilla-kde 2016-08-18 10:59:04 UTC
I'm using ArchLinux too and I see the same problem.
It seems that it's indeed a problem with poppler, because after downgrading poppler, poppler-glib, poppler-qt4 and poppler-qt5 from the current v. 0.46.0-2 to v. 0.42.0-1 I haven't seen any okular crashes anymore.
Comment 12 José Ángel Martínez 2016-08-18 11:14:51 UTC
Downgrading these packages also worked for me. No more okular crashes.
Comment 13 Albert Astals Cid 2016-08-18 22:10:50 UTC
bug in poppler 0.46, use a newer or older version.