Bug 344357 - Crash on pdf open
Summary: Crash on pdf open
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.20.3
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-02-19 18:20 UTC by hoea
Modified: 2015-03-15 19:14 UTC (History)
1 user (show)

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


Attachments
first page of pdf (608.99 KB, application/pdf)
2015-02-24 14:00 UTC, hoea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hoea 2015-02-19 18:20:57 UTC
Application: okular (0.20.3)
KDE Platform Version: 4.14.5 (Compiled from sources)
Qt Version: 4.8.6
Operating System: Linux 3.18.2-gentoo x86_64
Distribution: "Gentoo Base System release 2.2"

-- Information about the crash:
- What I was doing when the application crashed:
Just opened the pdf 

LEGOAdventureBookVol11421975366.pdf from Humble Brainiac Book Bundle Presented by No Starch Press

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 0x7fc7d7fbd780 (LWP 14086))]

Thread 3 (Thread 0x7fc7c3967700 (LWP 14088)):
#0  0x00007fc7d5006c49 in syscall () from /lib64/libc.so.6
#1  0x00007fc7d58c1df3 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007fc7d58be285 in QMutex::lockInternal() () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007fc7c536e70b in ?? () from /usr/lib64/kde4/okularGenerator_poppler.so
#4  0x00007fc7c7e57e23 in ?? () from /usr/lib64/libokularcore.so.5
#5  0x00007fc7d58c334f in ?? () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007fc7d31512c4 in start_thread () from /lib64/libpthread.so.0
#7  0x00007fc7d500af4d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fc7c3166700 (LWP 14089)):
[KCrash Handler]
#5  0x00007fc7c4e1d869 in JPXStream::close() () from /usr/lib64/libpoppler.so.50
#6  0x00007fc7c4e1d897 in JPXStream::~JPXStream() () from /usr/lib64/libpoppler.so.50
#7  0x00007fc7c4e1d8b9 in JPXStream::~JPXStream() () from /usr/lib64/libpoppler.so.50
#8  0x00007fc7c4dab564 in Object::free() () from /usr/lib64/libpoppler.so.50
#9  0x00007fc7c4d6dfb6 in Gfx::opXObject(Object*, int) () from /usr/lib64/libpoppler.so.50
#10 0x00007fc7c4d67f68 in Gfx::go(bool) () from /usr/lib64/libpoppler.so.50
#11 0x00007fc7c4d68468 in Gfx::display(Object*, bool) () from /usr/lib64/libpoppler.so.50
#12 0x00007fc7c4db071a in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) () from /usr/lib64/libpoppler.so.50
#13 0x00007fc7c5137ad6 in Poppler::Page::textList(Poppler::Page::Rotation) const () from /usr/lib64/libpoppler-qt4.so.4
#14 0x00007fc7c536d86d in ?? () from /usr/lib64/kde4/okularGenerator_poppler.so
#15 0x00007fc7c7e577f2 in ?? () from /usr/lib64/libokularcore.so.5
#16 0x00007fc7d58c334f in ?? () from /usr/lib64/qt4/libQtCore.so.4
#17 0x00007fc7d31512c4 in start_thread () from /lib64/libpthread.so.0
#18 0x00007fc7d500af4d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fc7d7fbd780 (LWP 14086)):
#0  0x00007fc7d4ffe15d in read () from /lib64/libc.so.6
#1  0x00007fc7d1c38220 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fc7d1bf7424 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fc7d1bf788b in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fc7d1bf79fc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fc7d59f056e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007fc7d645fd16 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#7  0x00007fc7d59c24cf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007fc7d59c27c5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007fc7d59c7a69 in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#10 0x0000000000409d30 in ?? ()
#11 0x00007fc7d4f40fa0 in __libc_start_main () from /lib64/libc.so.6
#12 0x000000000040a70e in _start ()

Reported using DrKonqi
Comment 1 Albert Astals Cid 2015-02-19 21:34:03 UTC
without the pdf this bug is virtually impossible to fix, i suggest you use pdfseparate on the file, test if a single page of those separated pdf crashes and attach that single page.
Comment 2 hoea 2015-02-24 14:00:28 UTC
Created attachment 91272 [details]
first page of pdf

First page: I used pdf-split-pages as pdfseparate crashed, too ;-(
Comment 3 Albert Astals Cid 2015-02-24 14:13:14 UTC
Does that single still make okular crash?  It doesn't here
Comment 4 Christoph Feck 2015-03-15 19:14:28 UTC
Neither the full document, nor the single page crashed here.

If you can reproduce the crash, please install debug symbols for poppler and okular, and add a better backtrace and/or a valgrind log.