Bug 217459 - okular crashes when opening a certain PDF
Summary: okular crashes when opening a certain PDF
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-05 17:31 UTC by Bart Van Assche
Modified: 2009-12-06 19:31 UTC (History)
0 users

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 Bart Van Assche 2009-12-05 17:31:24 UTC
Application that crashed: okular
Version of the application: 0.9.1
KDE Version: 4.3.1 (KDE 4.3.1) "release 169"
Qt Version: 4.5.2
Operating System: Linux 2.6.31.6-scst-debug x86_64
Distribution: "openSUSE 11.2 (x86_64)"

What I was doing when the application crashed:
How to reproduce:
wget http://www.mellanox.com/related-docs/prod_software/Mellanox_OFED_Linux_user_manual_1_40_1.pdf
okular Mellanox_OFED_Linux_user_manual_1_40_1.pdf

 -- Backtrace:
Application: Okular (okular), signal: Aborted
[Current thread is 1 (Thread 0x7f39f153e750 (LWP 23803))]

Thread 2 (Thread 0x7f39e34f1910 (LWP 23809)):
[KCrash Handler]
#5  0x00007f39edb1a4e5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f39edb1b9b0 in abort () at abort.c:88
#7  0x00007f39e3a9d2b8 in LinkGoToR::LinkGoToR(Object*, Object*) () from /usr/lib64/libpoppler.so.4
#8  0x00007f39e3a9e6f4 in LinkAction::parseAction(Object*, GooString*) () from /usr/lib64/libpoppler.so.4
#9  0x00007f39e3a9eb1d in Link::Link(Dict*, GooString*) () from /usr/lib64/libpoppler.so.4
#10 0x00007f39e3a9ec63 in Links::Links(Object*, GooString*) () from /usr/lib64/libpoppler.so.4
#11 0x00007f39e3aa4b22 in Page::getLinks(Catalog*) () from /usr/lib64/libpoppler.so.4
#12 0x00007f39e3aa4b76 in Page::processLinks(OutputDev*, Catalog*) () from /usr/lib64/libpoppler.so.4
#13 0x00007f39e3db9dee in Poppler::Page::links() const () from /usr/lib64/libpoppler-qt4.so.3
#14 0x00007f39e401bbbd in ?? () from /usr/lib64/kde4/okularGenerator_poppler.so
#15 0x00007f39ef3ece65 in ?? () from /usr/lib64/libQtCore.so.4
#16 0x00007f39ef17865d in start_thread (arg=<value optimized out>) at pthread_create.c:297
#17 0x00007f39edbb914d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#18 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f39f153e750 (LWP 23803)):
#0  0x00007f39edbb0033 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f39e902191a in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f39e9021e57 in ?? () from /usr/lib64/libxcb.so.1
#3  0x00007f39e9022115 in xcb_writev () from /usr/lib64/libxcb.so.1
#4  0x00007f39eca7e03a in _XSend () from /usr/lib64/libX11.so.6
#5  0x00007f39eca7e561 in _XEventsQueued () from /usr/lib64/libX11.so.6
#6  0x00007f39eca6724b in XEventsQueued () from /usr/lib64/libX11.so.6
#7  0x00007f39ee7f31c7 in ?? () from /usr/lib64/libQtGui.so.4
#8  0x00007f39eb135fca in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f39eb1363a1 in ?? () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f39eb1368d0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#11 0x00007f39ef4ffd3f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#12 0x00007f39ee7f2faf in ?? () from /usr/lib64/libQtGui.so.4
#13 0x00007f39ef4d51d2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#14 0x00007f39ef4d55a4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#15 0x00007f39ef4d7894 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#16 0x000000000040826c in _start ()

Reported using DrKonqi
Comment 1 Albert Astals Cid 2009-12-06 01:12:53 UTC
Can not reproduce, can you try running it through valgrind to see what's the output?

valgrind okular Mellanox_OFED_Linux_user_manual_1_40_1.pdf
Comment 2 Bart Van Assche 2009-12-06 10:48:07 UTC
(In reply to comment #1)
> Can not reproduce, can you try running it through valgrind to see what's the
> output?
> 
> valgrind okular Mellanox_OFED_Linux_user_manual_1_40_1.pdf

After having installed glibc-debuginfo, okular-debuginfo and libqt4-debuginfo, the latest trunk version of Valgrind produces the following output:

$ ~/software/valgrind/vg-in-place --read-var-info=yes okular Mellanox_OFED_Linux_user_manual_1_40_1.pdf
==6970== Memcheck, a memory error detector
==6970== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==6970== Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright info
==6970== Command: okular Mellanox_OFED_Linux_user_manual_1_40_1.pdf
==6970==
==6970== Conditional jump or move depends on uninitialised value(s)
==6970==    at 0xFC5FFBF: ??? (in /usr/lib64/kde4/okularpart.so)
==6970==    by 0x72208E7: QWidget::event(QEvent*) (in /usr/lib64/libQtGui.so.4.5.2)              
==6970==    by 0x757609A: QFrame::event(QEvent*) (in /usr/lib64/libQtGui.so.4.5.2)
==6970==    by 0x6B1EC47: QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (in /usr/lib64/libQtCore.so.4.5.2)
==6970==    by 0x71CFA8B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib64/libQtGui.so.4.5.2)
==6970==    by 0x71D7D49: QApplication::notify(QObject*, QEvent*) (in /usr/lib64/libQtGui.so.4.5.2)
==6970==    by 0x5C9EA8A: KApplication::notify(QObject*, QEvent*) (in /usr/lib64/libkdeui.so.5.3.0)
==6970==    by 0x6B1F94B: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib64/libQtCore.so.4.5.2)
==6970==    by 0x725E40C: QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) (in /usr/lib64/libQtGui.so.4.5.2)
==6970==    by 0x721F756: QWidget::setGeometry(QRect const&) (in /usr/lib64/libQtGui.so.4.5.2)
==6970==    by 0x76073F3: QAbstractScrollAreaPrivate::layoutChildren() (in /usr/lib64/libQtGui.so.4.5.2)
==6970==    by 0x7607A05: QAbstractScrollArea::event(QEvent*) (in /usr/lib64/libQtGui.so.4.5.2)
==6970==
Error: Illegal file spec in link
Error (0): Call to Object where the object was type 13, not the expected type 3
KCrash: Application 'okular' crashing...
sock_file=/home/bart/.kde4/socket-eu85-10-94-241/kdeinit4__0
Comment 3 Albert Astals Cid 2009-12-06 13:32:42 UTC
Which poppler version do you have installed?
Comment 4 Bart Van Assche 2009-12-06 13:47:24 UTC
(In reply to comment #3)
> Which poppler version do you have installed?

$ rpm -qa|grep -i poppler|sort
libpoppler-glib4-0.12.0-3.5
libpoppler-qt4-3-0.10.1-1.4
libpoppler4-0.10.1-1.6.10
libpoppler5-0.12.0-3.5
poppler-data-0.2.1-4.1
poppler-tools-0.12.0-3.5
Comment 5 Albert Astals Cid 2009-12-06 15:20:59 UTC
Can you please try to upgrade your libpoppler-qt4 package? it should be at the 0.12 version like all others
Comment 6 Bart Van Assche 2009-12-06 19:31:26 UTC
(In reply to comment #5)
> Can you please try to upgrade your libpoppler-qt4 package? it should be at the
> 0.12 version like all others

Thanks, this solved the crash. The inconsistent versions were probably the result of upgrading from openSUSE 11.1 to 11.2 instead of doing a reinstall.