Application: okular (0.10.1) KDE Platform Version: 4.4.1 (KDE 4.4.1) (Compiled from sources) Qt Version: 4.6.2 Operating System: Linux 2.6.31-gentoo-r10 x86_64 Distribution (Platform): Gentoo Packages -- Information about the crash: I scrolles with tho mousewheel through an dokument and than okular crashed -- Backtrace: Application: Okular (okular), signal: Segmentation fault Traceback (most recent call last): File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2200.4-gdb.py", line 9, in <module> from gobject import register File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module> import gdb.backtrace ImportError: No module named backtrace The current source language is "auto; currently c". [Current thread is 1 (Thread 0x7fdcfb1e0740 (LWP 5674))] Thread 2 (Thread 0x7fdce8819910 (LWP 5682)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261 #1 0x00007fdcf8fbfaf9 in QWaitConditionPrivate::wait (this=0x11c5df8, mutex=0x11c5df0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87 #2 QWaitCondition::wait (this=0x11c5df8, mutex=0x11c5df0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159 #3 0x00007fdcf8fbb9a0 in QSemaphore::acquire (this=0x102e6c0, n=1) at thread/qsemaphore.cpp:142 #4 0x00007fdce88e7342 in GSRendererThread::run (this=0x102e6b0) at /var/tmp/portage/kde-base/okular-4.4.1/work/okular-4.4.1/okular/generators/spectre/rendererthread.cpp:50 #5 0x00007fdcf8fbec15 in QThreadPrivate::start (arg=0x102e6b0) at thread/qthread_unix.cpp:248 #6 0x00007fdcf8d302a7 in start_thread (arg=<value optimized out>) at pthread_create.c:297 #7 0x00007fdcf765e8cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #8 0x0000000000000000 in ?? () Thread 1 (Thread 0x7fdcfb1e0740 (LWP 5674)): [KCrash Handler] #5 KIconCache::find (this=0xa0000000640065, key=..., pix=..., path=0x7fff373b8910) at /var/tmp/portage/kde-base/kdelibs-4.4.1-r1/work/kdelibs-4.4.1/kdeui/icons/kiconcache.cpp:271 #6 0x00007fdcf9f2d4de in KIconLoader::loadIcon (this=0xfc4820, _name=..., group=KIconLoader::User, size=32, state=0, overlays=..., path_store=0x7fff373b8910, canReturnNull=true) at /var/tmp/portage/kde-base/kdelibs-4.4.1-r1/work/kdelibs-4.4.1/kdeui/icons/kiconloader.cpp:988 #7 0x00007fdcf0a47864 in PagePainter::paintCroppedPageOnPainter (destPainter=0x7fff373b90d0, page=0xa16f70, pixID=<value optimized out>, flags=<value optimized out>, scaledWidth=1445, scaledHeight= 2044, limits=..., crop=...) at /var/tmp/portage/kde-base/okular-4.4.1/work/okular-4.4.1/okular/ui/pagepainter.cpp:572 #8 0x00007fdcf0a55ede in PageView::drawDocumentOnPainter (this=0x797af0, contentsRect=..., p=0x7fff373b90d0) at /var/tmp/portage/kde-base/okular-4.4.1/work/okular-4.4.1/okular/ui/pageview.cpp:2395 #9 0x00007fdcf0a56725 in PageView::paintEvent (this=0x797af0, pe=<value optimized out>) at /var/tmp/portage/kde-base/okular-4.4.1/work/okular-4.4.1/okular/ui/pageview.cpp:1206 #10 0x00007fdcf829fdcc in QWidget::event (this=0x797af0, event=0x7fff373b9a60) at kernel/qwidget.cpp:8144 #11 0x00007fdcf86495ab in QFrame::event (this=0x797af0, e=0x7fff373b9a60) at widgets/qframe.cpp:557 #12 0x00007fdcf0a5b8ad in PageView::viewportEvent (this=0x797af0, e=0x7fff373b9a60) at /var/tmp/portage/kde-base/okular-4.4.1/work/okular-4.4.1/okular/ui/pageview.cpp:2241 #13 0x00007fdcf90b21f7 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x8238a0, event=0x7fff373b9a60) at kernel/qcoreapplication.cpp:819 #14 0x00007fdcf8248f3c in QApplicationPrivate::notify_helper (this=0x62acb0, receiver=0x8238a0, e=0x7fff373b9a60) at kernel/qapplication.cpp:4296 #15 0x00007fdcf82502a0 in QApplication::notify (this=0x7fff373bcd60, receiver=0x8238a0, e=0x7fff373b9a60) at kernel/qapplication.cpp:4183 #16 0x00007fdcf9f6522b in KApplication::notify (this=0x7fff373bcd60, receiver=0x8238a0, event=0x7fff373b9a60) at /var/tmp/portage/kde-base/kdelibs-4.4.1-r1/work/kdelibs-4.4.1/kdeui/kernel/kapplication.cpp:302 #17 0x00007fdcf90b2dab in QCoreApplication::notifyInternal (this=0x7fff373bcd60, receiver=0x8238a0, event=0x7fff373b9a60) at kernel/qcoreapplication.cpp:704 #18 0x00007fdcf82a7dd9 in QCoreApplication::sendSpontaneousEvent (this=0x7ebf20, pdev=0x900328, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x9000f0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218 #19 QWidgetPrivate::drawWidget (this=0x7ebf20, pdev=0x900328, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x9000f0) at kernel/qwidget.cpp:5339 #20 0x00007fdcf8460ffe in QWidgetBackingStore::sync (this=0x9000f0) at painting/qbackingstore.cpp:1283 #21 0x00007fdcf82993c0 in QWidgetPrivate::syncBackingStore (this=0x73eb80) at kernel/qwidget.cpp:1672 #22 0x00007fdcf82a04de in QWidget::event (this=0x74ce10, event=0x7fff373ba980) at kernel/qwidget.cpp:8291 #23 0x00007fdcf8664bfb in QMainWindow::event (this=0x74ce10, event=0x7fff373ba980) at widgets/qmainwindow.cpp:1433 #24 0x00007fdcfa07b7c3 in KXmlGuiWindow::event (this=0xa0000000640065, ev=0x7fff373b7b30) at /var/tmp/portage/kde-base/kdelibs-4.4.1-r1/work/kdelibs-4.4.1/kdeui/xmlgui/kxmlguiwindow.cpp:131 #25 0x00007fdcf8248f6d in QApplicationPrivate::notify_helper (this=0x62acb0, receiver=0x74ce10, e=0x7fff373ba980) at kernel/qapplication.cpp:4300 #26 0x00007fdcf82502a0 in QApplication::notify (this=0x7fff373bcd60, receiver=0x74ce10, e=0x7fff373ba980) at kernel/qapplication.cpp:4183 #27 0x00007fdcf9f6522b in KApplication::notify (this=0x7fff373bcd60, receiver=0x74ce10, event=0x7fff373ba980) at /var/tmp/portage/kde-base/kdelibs-4.4.1-r1/work/kdelibs-4.4.1/kdeui/kernel/kapplication.cpp:302 #28 0x00007fdcf90b2dab in QCoreApplication::notifyInternal (this=0x7fff373bcd60, receiver=0x74ce10, event=0x7fff373ba980) at kernel/qcoreapplication.cpp:704 #29 0x00007fdcf845e547 in QCoreApplication::sendEvent (widget=0x74ce10, updateImmediately=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #30 sendUpdateRequest (widget=0x74ce10, updateImmediately=<value optimized out>) at painting/qbackingstore.cpp:503 #31 0x00007fdcf846182d in QWidgetBackingStore::markDirty (this=0x9000f0, rect=..., widget=0x8238a0, updateImmediately=true, invalidateBuffer=false) at painting/qbackingstore.cpp:667 #32 0x00007fdcf829b9f1 in QWidget::repaint (this=0x8238a0, rect=...) at kernel/qwidget.cpp:10034 #33 0x00007fdcf0a56e20 in PageView::scrollContentsBy (this=0x797af0, dx=0, dy=<value optimized out>) at /var/tmp/portage/kde-base/okular-4.4.1/work/okular-4.4.1/okular/ui/pageview.cpp:2253 #34 0x00007fdcf86d4bc0 in QAbstractScrollArea::qt_metacall (this=0x797af0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff373bacf0) at .moc/release-shared/moc_qabstractscrollarea.cpp:85 #35 0x00007fdcf0a60545 in PageView::qt_metacall (this=0xa0000000640065, _c=926645040, _id=926644848, _a=0x7fff373b8910) at /var/tmp/portage/kde-base/okular-4.4.1/work/okular-4.4.1_build/okular/pageview.moc:151 #36 0x00007fdcf90c6167 in QMetaObject::activate (sender=0x7e7130, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff373b8910) at kernel/qobject.cpp:3285 #37 0x00007fdcf88e631e in QAbstractSlider::valueChanged (this=0xa0000000640065, _t1=180) at .moc/release-shared/moc_qabstractslider.cpp:182 #38 0x00007fdcf8604970 in QAbstractSlider::wheelEvent (this=0x7e7130, e=0x7fff373bbec0) at widgets/qabstractslider.cpp:731 #39 0x00007fdcf82a051c in QWidget::event (this=0x7e7130, event=0x7fff373bbec0) at kernel/qwidget.cpp:8006 #40 0x00007fdcf8248f6d in QApplicationPrivate::notify_helper (this=0x62acb0, receiver=0x7e7130, e=0x7fff373bbec0) at kernel/qapplication.cpp:4300 #41 0x00007fdcf8250b8d in QApplication::notify (this=<value optimized out>, receiver=0x7e7130, e=0x7fff373bbec0) at kernel/qapplication.cpp:3920 #42 0x00007fdcf9f6522b in KApplication::notify (this=0x7fff373bcd60, receiver=0x7e7130, event=0x7fff373bbec0) at /var/tmp/portage/kde-base/kdelibs-4.4.1-r1/work/kdelibs-4.4.1/kdeui/kernel/kapplication.cpp:302 #43 0x00007fdcf90b2dab in QCoreApplication::notifyInternal (this=0x7fff373bcd60, receiver=0x7e7130, event=0x7fff373bbec0) at kernel/qcoreapplication.cpp:704 #44 0x00007fdcf0a5ca8d in PageView::wheelEvent (this=0x797af0, e=0x7fff373bbec0) at /var/tmp/portage/kde-base/okular-4.4.1/work/okular-4.4.1/okular/ui/pageview.cpp:2173 #45 0x00007fdcf82a051c in QWidget::event (this=0x797af0, event=0x7fff373bbec0) at kernel/qwidget.cpp:8006 #46 0x00007fdcf86495ab in QFrame::event (this=0x797af0, e=0x7fff373bbec0) at widgets/qframe.cpp:557 #47 0x00007fdcf0a5b8ad in PageView::viewportEvent (this=0x797af0, e=0x7fff373bbec0) at /var/tmp/portage/kde-base/okular-4.4.1/work/okular-4.4.1/okular/ui/pageview.cpp:2241 #48 0x00007fdcf90b21f7 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x8238a0, event=0x7fff373bbec0) at kernel/qcoreapplication.cpp:819 #49 0x00007fdcf8248f3c in QApplicationPrivate::notify_helper (this=0x62acb0, receiver=0x8238a0, e=0x7fff373bbec0) at kernel/qapplication.cpp:4296 #50 0x00007fdcf8250b8d in QApplication::notify (this=<value optimized out>, receiver=0x8238a0, e=0x7fff373bbec0) at kernel/qapplication.cpp:3920 #51 0x00007fdcf9f6522b in KApplication::notify (this=0x7fff373bcd60, receiver=0x8238a0, event=0x7fff373bbec0) at /var/tmp/portage/kde-base/kdelibs-4.4.1-r1/work/kdelibs-4.4.1/kdeui/kernel/kapplication.cpp:302 #52 0x00007fdcf90b2dab in QCoreApplication::notifyInternal (this=0x7fff373bcd60, receiver=0x8238a0, event=0x7fff373bbec0) at kernel/qcoreapplication.cpp:704 #53 0x00007fdcf82c1772 in QCoreApplication::sendSpontaneousEvent (this=<value optimized out>, global_x=<value optimized out>, global_y=<value optimized out>, delta=120, buttons=..., modifiers=..., orient=Qt::Vertical) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218 #54 QETWidget::translateWheelEvent (this=<value optimized out>, global_x=<value optimized out>, global_y=<value optimized out>, delta=120, buttons=..., modifiers=..., orient=Qt::Vertical) at kernel/qapplication_x11.cpp:4405 #55 0x00007fdcf82d200c in QETWidget::translateMouseEvent (this=0x771ec0, event=0x7fff373bc9b0) at kernel/qapplication_x11.cpp:4183 #56 0x00007fdcf82d0e9c in QApplication::x11ProcessEvent (this=0x7fff373bcd60, event=0x7fff373bc9b0) at kernel/qapplication_x11.cpp:3501 #57 0x00007fdcf82f9a1a in x11EventSourceDispatch (s=0x62eab0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146 #58 0x00007fdcf4dc0d59 in g_main_dispatch (context=0x62d920) at gmain.c:1960 #59 IA__g_main_context_dispatch (context=0x62d920) at gmain.c:2513 #60 0x00007fdcf4dc45a8 in g_main_context_iterate (context=0x62d920, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591 #61 0x00007fdcf4dc475c in IA__g_main_context_iteration (context=0x62d920, may_block=1) at gmain.c:2654 #62 0x00007fdcf90dc54c in QEventDispatcherGlib::processEvents (this=0x62ac70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412 #63 0x00007fdcf82f95bf in QGuiEventDispatcherGlib::processEvents (this=0xa0000000640065, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204 #64 0x00007fdcf90b16d2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149 #65 0x00007fdcf90b1aa4 in QEventLoop::exec (this=0x7fff373bcce0, flags=...) at kernel/qeventloop.cpp:201 #66 0x00007fdcf90b3ef6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981 #67 0x0000000000408973 in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/kde-base/okular-4.4.1/work/okular-4.4.1/okular/shell/main.cpp:82 The current source language is "auto; currently asm". The current source language is "auto; currently c". Possible duplicates by query: bug 230282, bug 195667. Reported using DrKonqi
Can you reproduce the crash if do the same again or only happened once?
I am sorry. Its not reproducable.
Michael, it seems to have crashed in KIconCache, might this be related to the cache bugs you've been working on or is it totally unrelated?
KIconCache is a direct subclass of KPixmapCache so it could certainly be another threading bug in KPC, but it's not related to the one I recently fixed.
(I quickly reviewed the backtrace of this crash, and it appears to be caused by KIconCache memory corruption. If this is not the case, please reopen.) Closing all KIconCache crashes as fixed, because the KIconLoader in KDE SC 4.5 now uses KSharedDataCache to cache icons, and it is believed that the new class is less prone to random crashes or memory corruption. If you still can reproduce a crash with version 4.5, please report it separately. If you cannot upgrade to 4.5 yet, you should be able to work around this crash by deleting the icon cache files in /var/tmp/kdecache-<user>/kpc