Bug 294450 - stack smashing detected
Summary: stack smashing detected
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-19 20:29 UTC by cornel panceac
Modified: 2012-02-19 20:39 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 cornel panceac 2012-02-19 20:29:03 UTC
Application: okular (0.13.3)
KDE Platform Version: 4.7.4 (4.7.4)
Qt Version: 4.8.0
Operating System: Linux 3.2.6-3.fc16.i686.PAE i686
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
I tried to open a certain pdf file. it opens fine with xpdf, however evince crashed just like okular.

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Aborted
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0xb77199c0 (LWP 4798))]

Thread 2 (Thread 0xb505fb40 (LWP 4799)):
[KCrash Handler]
#7  0xb774b424 in __kernel_vsyscall ()
#8  0x4d4ce98f in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0x4d4d02d5 in __GI_abort () at abort.c:91
#10 0x4d50de3a in __libc_message (do_abort=2, fmt=0x4d60662b "*** %s ***: %s terminated\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:198
#11 0x4d5a9fd5 in __GI___fortify_fail (msg=0x4d606613 "stack smashing detected") at fortify_fail.c:32
#12 0x4d5a9f8a in __stack_chk_fail () at stack_chk_fail.c:29
#13 0xb51d9d24 in __stack_chk_fail_local () from /usr/lib/libpoppler.so.18
#14 0xb50f3a55 in JPXStream::init2 (this=0xb4710e88, buf=0xb47111e8 "", bufLen=91427, format=CODEC_JP2) at JPEG2000Stream.cc:170
#15 0xb50f3bcc in JPXStream::init (this=0xb4710e88) at JPEG2000Stream.cc:78
#16 0xb50f3dd0 in JPXStream::getImageParams (this=0xb4710e88, bitsPerComponent=0xb505ec68, csMode=0xb505ec6c) at JPEG2000Stream.cc:185
#17 0xb512e195 in Gfx::doImage (this=0xb4706bd8, ref=0xb505ecd8, str=0xb4710e88, inlineImg=false) at Gfx.cc:4063
#18 0xb512fc2e in Gfx::opXObject (this=0xb4706bd8, args=0xb505eda4, numArgs=1) at Gfx.cc:4010
#19 0xb5124237 in Gfx::execOp (this=0xb4706bd8, cmd=0xb505ef44, args=0xb505eda4, numArgs=1) at Gfx.cc:851
#20 0xb512b2bc in Gfx::go (this=0xb4706bd8, topLevel=true) at Gfx.cc:711
#21 0xb512b7e5 in Gfx::display (this=0xb4706bd8, obj=0xb505f044, topLevel=true) at Gfx.cc:678
#22 0xb516d710 in Page::displaySlice (this=0x9a2bb98, out=0xb4701a30, hDPI=149.76470588235293, vDPI=149.72921615201901, rotate=0, useMediaBox=false, crop=true, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=false, catalog=0x9a2ac90, abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at Page.cc:485
#23 0xb5173950 in PDFDoc::displayPageSlice (this=0x9a2a9a0, out=0xb4701a30, page=1, hDPI=149.76470588235293, vDPI=149.72921615201901, rotate=0, useMediaBox=false, crop=true, printing=false, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at PDFDoc.cc:471
#24 0xb52827c4 in Poppler::Page::renderToImage (this=0xb4700dc8, xres=149.76470588235293, yres=149.72921615201901, x=-1, y=-1, w=-1, h=-1, rotate=Poppler::Page::Rotate0) at poppler-page.cc:218
#25 0xb52f7faf in PDFPixmapGeneratorThread::run (this=0x9951d90) at /usr/src/debug/okular-4.7.4/generators/poppler/generator_pdf.cpp:1928
#26 0x4e3ad0b1 in QThreadPrivate::start (arg=0x9951d90) at thread/qthread_unix.cpp:298
#27 0x4d65acd3 in start_thread (arg=0xb505fb40) at pthread_create.c:309
#28 0x4d59183e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb77199c0 (LWP 4798)):
#0  0xb774b424 in __kernel_vsyscall ()
#1  0x4d58d6c7 in syscall () at ../sysdeps/unix/sysv/linux/i386/syscall.S:30
#2  0x4e3ab8b8 in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x99cf408) at thread/qmutex_unix.cpp:99
#3  QMutexPrivate::wait (this=0x99cf408, timeout=-1) at thread/qmutex_unix.cpp:113
#4  0x4e3a6e2c in QMutex::lockInternal (this=0x9a6e130) at thread/qmutex.cpp:450
#5  0xb52f4434 in lockInline (this=0x9a6e130) at /usr/include/QtCore/qmutex.h:190
#6  QMutexLocker (m=0x9a6e130, this=<synthetic pointer>) at /usr/include/QtCore/qmutex.h:109
#7  PDFGenerator::metaData (this=0x9a09828, key=..., option=...) at /usr/src/debug/okular-4.7.4/generators/poppler/generator_pdf.cpp:1084
#8  0xb60af21d in Okular::Document::openDocument (this=0x98dab30, docFile=..., url=..., _mime=...) at /usr/src/debug/okular-4.7.4/core/document.cpp:1711
#9  0xb615fa3d in Okular::Part::openFile (this=0x98b0e08) at /usr/src/debug/okular-4.7.4/part.cpp:966
#10 0x411936c0 in KParts::ReadOnlyPartPrivate::openLocalFile (this=0x98b0f98) at /usr/src/debug/kdelibs-4.7.4/kparts/part.cpp:590
#11 0x41193d9e in KParts::ReadOnlyPart::openUrl (this=0x98b0e08, url=...) at /usr/src/debug/kdelibs-4.7.4/kparts/part.cpp:554
#12 0xb614ec10 in Okular::Part::openUrl (this=0x98b0e08, _url=...) at /usr/src/debug/okular-4.7.4/part.cpp:1085
#13 0x0804f3e5 in Shell::openUrl (this=0x98a2f50, url=...) at /usr/src/debug/okular-4.7.4/shell/shell.cpp:134
#14 0x0804f507 in Shell::delayedOpen (this=0x98a2f50) at /usr/src/debug/okular-4.7.4/shell/shell.cpp:117
#15 0x4e4d4752 in QMetaCallEvent::placeMetaCall (this=0x9899b00, object=0x98a2f50) at kernel/qobject.cpp:525
#16 0x4e4dd42b in QObject::event (this=0x98a2f50, e=0x9899b00) at kernel/qobject.cpp:1195
#17 0x4ecf4c12 in QWidget::event (this=0x98a2f50, event=0x9899b00) at kernel/qwidget.cpp:8820
#18 0x4f12d784 in QMainWindow::event (this=0x98a2f50, event=0x9899b00) at widgets/qmainwindow.cpp:1478
#19 0x43318a94 in KMainWindow::event (this=0x98a2f50, ev=0x9899b00) at /usr/src/debug/kdelibs-4.7.4/kdeui/widgets/kmainwindow.cpp:1084
#20 0x43361fa3 in KXmlGuiWindow::event (this=0x98a2f50, ev=0x9899b00) at /usr/src/debug/kdelibs-4.7.4/kdeui/xmlgui/kxmlguiwindow.cpp:126
#21 0x4ec9a134 in notify_helper (e=0x9899b00, receiver=0x98a2f50, this=0x9737980) at kernel/qapplication.cpp:4550
#22 QApplicationPrivate::notify_helper (this=0x9737980, receiver=0x98a2f50, e=0x9899b00) at kernel/qapplication.cpp:4522
#23 0x4ec9f67b in QApplication::notify (this=0x9737980, receiver=0x98a2f50, e=0x9899b00) at kernel/qapplication.cpp:4515
#24 0x43239972 in KApplication::notify (this=0xbfb64620, receiver=0x98a2f50, event=0x9899b00) at /usr/src/debug/kdelibs-4.7.4/kdeui/kernel/kapplication.cpp:311
#25 0x4e4c25fe in QCoreApplication::notifyInternal (this=0xbfb64620, receiver=0x98a2f50, event=0x9899b00) at kernel/qcoreapplication.cpp:876
#26 0x4e4c6558 in sendEvent (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x971a9e0) at kernel/qcoreapplication.cpp:1500
#28 0x4e4c688d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393
#29 0x4e4f4eb5 in sendPostedEvents () at kernel/qcoreapplication.h:236
#30 postEventSourceDispatch (s=0x973bbb8) at kernel/qeventdispatcher_glib.cpp:279
#31 0x4d74662f in g_main_dispatch (context=0x973ae70) at gmain.c:2441
#32 g_main_context_dispatch (context=0x973ae70) at gmain.c:3011
#33 0x4d746d70 in g_main_context_iterate (context=0x973ae70, block=1299535888, dispatch=1, self=0x9735e48) at gmain.c:3089
#34 0x4d74701f in g_main_context_iteration (context=0x973ae70, may_block=1) at gmain.c:3152
#35 0x4e4f52b8 in QEventDispatcherGlib::processEvents (this=0x971b548, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#36 0x4ed4ea9b in QGuiEventDispatcherGlib::processEvents (this=0x971b548, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#37 0x4e4c14ee in QEventLoop::processEvents (this=0xbfb64594, flags=...) at kernel/qeventloop.cpp:149
#38 0x4e4c1799 in QEventLoop::exec (this=0xbfb64594, flags=...) at kernel/qeventloop.cpp:204
#39 0x4e4c693b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#40 0x4ec97f35 in QApplication::exec () at kernel/qapplication.cpp:3811
#41 0x0804e090 in main (argc=2, argv=0xbfb64864) at /usr/src/debug/okular-4.7.4/shell/main.cpp:85

Reported using DrKonqi
Comment 1 Albert Astals Cid 2012-02-19 20:39:12 UTC
The call happens inside poppler (actually inside openjpeg) so open a bug against poppler or openjpeg, there's nothing okular can do here to fix the crash