Bug 280606 - Closing all windows!
Summary: Closing all windows!
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kshareddatacache (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: triaged
: 280802 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-22 23:03 UTC by banatehrani
Modified: 2018-10-27 03:46 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description banatehrani 2011-08-22 23:03:22 UTC
Application: okular (0.12.2)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-11-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed: I was closing some windows of the opened pages of this software, suddenly all its open pages was closed!

The crash can be reproduced some of the time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fb7e8fdd780 (LWP 4371))]

Thread 2 (Thread 0x7fb7dd873700 (LWP 4372)):
#0  0x00007fb7e6277f03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fb7e3175104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb7e31759f2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb7de1d2c44 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fb7e319c3e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fb7e3640d8c in start_thread (arg=0x7fb7dd873700) at pthread_create.c:304
#6  0x00007fb7e628504d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fb7e8fdd780 (LWP 4371)):
[KCrash Handler]
#6  ref (cacheName=...) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121
#7  QString (cacheName=...) at /usr/include/qt4/QtCore/qstring.h:729
#8  operator+ (cacheName=...) at /usr/include/qt4/QtCore/qstring.h:1024
#9  KSharedDataCache::deleteCache (cacheName=...) at ../../kdecore/util/kshareddatacache.cpp:1515
#10 0x00007fb7e7177d02 in recoverCorruptedCache (this=0x7fff705742c0, _d=<value optimized out>) at ../../kdecore/util/kshareddatacache.cpp:1085
#11 cautiousLock (this=0x7fff705742c0, _d=<value optimized out>) at ../../kdecore/util/kshareddatacache.cpp:1122
#12 KSharedDataCache::Private::CacheLocker::CacheLocker (this=0x7fff705742c0, _d=<value optimized out>) at ../../kdecore/util/kshareddatacache.cpp:1146
#13 0x00007fb7e71746e0 in KSharedDataCache::find (this=0x24a8180, key=..., destination=0x7fff70574370) at ../../kdecore/util/kshareddatacache.cpp:1462
#14 0x00007fb7e829de43 in KIconLoaderPrivate::findCachedPixmapWithPath (this=0x24a7f30, key=..., data=..., path=...) at ../../kdeui/icons/kiconloader.cpp:868
#15 0x00007fb7e82a0d39 in KIconLoader::loadIcon (this=0x24a82d0, _name=<value optimized out>, group=KIconLoader::Desktop, size=32, state=0, overlays=..., path_store=0x0, canReturnNull=false) at ../../kdeui/icons/kiconloader.cpp:1231
#16 0x00007fb7e8298c99 in KIconEngine::pixmap (this=<value optimized out>, size=..., mode=<value optimized out>, state=<value optimized out>) at ../../kdeui/icons/kiconengine.cpp:93
#17 0x00007fb7e76764b5 in QIcon::pixmap (this=<value optimized out>, size=<value optimized out>, mode=<value optimized out>, state=<value optimized out>) at image/qicon.cpp:676
#18 0x00007fb7e78da7f0 in QCommonStyle::drawControl (this=0x209da80, element=<value optimized out>, opt=0x7fff70577bd0, p=0x7fff705786b0, widget=0x2963840) at styles/qcommonstyle.cpp:1599
#19 0x00007fb7e7973a2d in QWindowsStyle::drawControl (this=0x209da80, ce=QStyle::CE_ToolButtonLabel, opt=0x7fff70577bd0, p=0x7fff705786b0, widget=0x2963840) at styles/qwindowsstyle.cpp:2563
#20 0x00007fb7e795e4c4 in QCleanlooksStyle::drawControl (this=0x209da80, element=QStyle::CE_ToolButtonLabel, option=0x7fff70577bd0, painter=0x7fff705786b0, widget=0x2963840) at styles/qcleanlooksstyle.cpp:2367
#21 0x00007fb7e79460a4 in QGtkStyle::drawControl (this=0x209da80, element=QStyle::CE_ToolButtonLabel, option=0x7fff70577bd0, painter=0x7fff705786b0, widget=0x2963840) at styles/qgtkstyle.cpp:3032
#22 0x00007fb7e794162c in QGtkStyle::drawComplexControl (this=0x209da80, control=<value optimized out>, option=0x7fff70578630, painter=0x7fff705786b0, widget=0x2963840) at styles/qgtkstyle.cpp:1640
#23 0x00007fb7e7a4a6da in drawComplexControl (this=0x2963840) at ../../include/QtGui/../../src/gui/painting/qstylepainter.h:94
#24 QToolButton::paintEvent (this=0x2963840) at widgets/qtoolbutton.cpp:556
#25 0x00007fb7e761bc7a in QWidget::event (this=0x2963840, event=0x7fff70578eb0) at kernel/qwidget.cpp:8405
#26 0x00007fb7e75ca9f4 in QApplicationPrivate::notify_helper (this=0x200d2a0, receiver=0x2963840, e=0x7fff70578eb0) at kernel/qapplication.cpp:4462
#27 0x00007fb7e75cf3ba in QApplication::notify (this=<value optimized out>, receiver=0x2963840, e=0x7fff70578eb0) at kernel/qapplication.cpp:4341
#28 0x00007fb7e82ed866 in KApplication::notify (this=0x7fff7057cbc0, receiver=0x2963840, event=0x7fff70578eb0) at ../../kdeui/kernel/kapplication.cpp:311
#29 0x00007fb7e6c0b49c in QCoreApplication::notifyInternal (this=0x7fff7057cbc0, receiver=0x2963840, event=0x7fff70578eb0) at kernel/qcoreapplication.cpp:731
#30 0x00007fb7e7618acd in sendSpontaneousEvent (this=0x2971100, pdev=0x2458e68, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#31 QWidgetPrivate::drawWidget (this=0x2971100, pdev=0x2458e68, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5492
#32 0x00007fb7e76196e2 in QWidgetPrivate::paintSiblingsRecursive (this=0x29740f0, pdev=0x2458e68, siblings=..., index=<value optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5699
#33 0x00007fb7e761959a in QWidgetPrivate::paintSiblingsRecursive (this=0x29740f0, pdev=0x2458e68, siblings=..., index=1, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5686
#34 0x00007fb7e761959a in QWidgetPrivate::paintSiblingsRecursive (this=0x29740f0, pdev=0x2458e68, siblings=..., index=2, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5686
#35 0x00007fb7e761959a in QWidgetPrivate::paintSiblingsRecursive (this=0x29740f0, pdev=0x2458e68, siblings=..., index=3, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5686
#36 0x00007fb7e761959a in QWidgetPrivate::paintSiblingsRecursive (this=0x29740f0, pdev=0x2458e68, siblings=..., index=4, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5686
#37 0x00007fb7e761959a in QWidgetPrivate::paintSiblingsRecursive (this=0x29740f0, pdev=0x2458e68, siblings=..., index=5, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5686
#38 0x00007fb7e761959a in QWidgetPrivate::paintSiblingsRecursive (this=0x29740f0, pdev=0x2458e68, siblings=..., index=6, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5686
#39 0x00007fb7e761959a in QWidgetPrivate::paintSiblingsRecursive (this=0x29740f0, pdev=0x2458e68, siblings=..., index=7, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5686
#40 0x00007fb7e761959a in QWidgetPrivate::paintSiblingsRecursive (this=0x29740f0, pdev=0x2458e68, siblings=..., index=8, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5686
#41 0x00007fb7e761880c in QWidgetPrivate::drawWidget (this=0x29740f0, pdev=0x2458e68, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5545
#42 0x00007fb7e76196e2 in QWidgetPrivate::paintSiblingsRecursive (this=0x237c6e0, pdev=0x2458e68, siblings=..., index=<value optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5699
#43 0x00007fb7e761880c in QWidgetPrivate::drawWidget (this=0x237c6e0, pdev=0x2458e68, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5545
#44 0x00007fb7e76196e2 in QWidgetPrivate::paintSiblingsRecursive (this=0x234f1e0, pdev=0x2458e68, siblings=..., index=<value optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5699
#45 0x00007fb7e761959a in QWidgetPrivate::paintSiblingsRecursive (this=0x234f1e0, pdev=0x2458e68, siblings=..., index=4, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5686
#46 0x00007fb7e761880c in QWidgetPrivate::drawWidget (this=0x234f1e0, pdev=0x2458e68, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5545
#47 0x00007fb7e76196e2 in QWidgetPrivate::paintSiblingsRecursive (this=0x2276c60, pdev=0x2458e68, siblings=..., index=<value optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5699
#48 0x00007fb7e761880c in QWidgetPrivate::drawWidget (this=0x2276c60, pdev=0x2458e68, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5545
#49 0x00007fb7e76196e2 in QWidgetPrivate::paintSiblingsRecursive (this=0x2267c50, pdev=0x2458e68, siblings=..., index=<value optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5699
#50 0x00007fb7e761880c in QWidgetPrivate::drawWidget (this=0x2267c50, pdev=0x2458e68, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5545
#51 0x00007fb7e76196e2 in QWidgetPrivate::paintSiblingsRecursive (this=0x206d570, pdev=0x2458e68, siblings=..., index=<value optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5699
#52 0x00007fb7e761959a in QWidgetPrivate::paintSiblingsRecursive (this=0x206d570, pdev=0x2458e68, siblings=..., index=9, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5686
#53 0x00007fb7e761959a in QWidgetPrivate::paintSiblingsRecursive (this=0x206d570, pdev=0x2458e68, siblings=..., index=13, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5686
#54 0x00007fb7e761880c in QWidgetPrivate::drawWidget (this=0x206d570, pdev=0x2458e68, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x245c6e0) at kernel/qwidget.cpp:5545
#55 0x00007fb7e77df9eb in QWidgetBackingStore::sync (this=0x245c6e0) at painting/qbackingstore.cpp:1333
#56 0x00007fb7e760ef60 in QWidgetPrivate::syncBackingStore (this=0x206d570) at kernel/qwidget.cpp:1842
#57 0x00007fb7e761c194 in QWidget::event (this=0x206e970, event=0x2549fc0) at kernel/qwidget.cpp:8552
#58 0x00007fb7e79e7c0b in QMainWindow::event (this=0x206e970, event=0x2549fc0) at widgets/qmainwindow.cpp:1480
#59 0x00007fb7e83e8d8e in KXmlGuiWindow::event (this=0x206e970, ev=0x2549fc0) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#60 0x00007fb7e75ca9f4 in QApplicationPrivate::notify_helper (this=0x200d2a0, receiver=0x206e970, e=0x2549fc0) at kernel/qapplication.cpp:4462
#61 0x00007fb7e75cf3ba in QApplication::notify (this=<value optimized out>, receiver=0x206e970, e=0x2549fc0) at kernel/qapplication.cpp:4341
#62 0x00007fb7e82ed866 in KApplication::notify (this=0x7fff7057cbc0, receiver=0x206e970, event=0x2549fc0) at ../../kdeui/kernel/kapplication.cpp:311
#63 0x00007fb7e6c0b49c in QCoreApplication::notifyInternal (this=0x7fff7057cbc0, receiver=0x206e970, event=0x2549fc0) at kernel/qcoreapplication.cpp:731
#64 0x00007fb7e6c0ec25 in sendEvent (receiver=0x0, event_type=0, data=0x1fc2b60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#65 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1fc2b60) at kernel/qcoreapplication.cpp:1372
#66 0x00007fb7e6c36253 in sendPostedEvents (s=0x200fa30) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#67 postEventSourceDispatch (s=0x200fa30) at kernel/qeventdispatcher_glib.cpp:277
#68 0x00007fb7e3174bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#69 0x00007fb7e31753a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#70 0x00007fb7e3175639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#71 0x00007fb7e6c363ef in QEventDispatcherGlib::processEvents (this=0x1fc2340, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#72 0x00007fb7e76744de in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#73 0x00007fb7e6c0a882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#74 0x00007fb7e6c0aabc in QEventLoop::exec (this=0x7fff7057cb40, flags=...) at kernel/qeventloop.cpp:201
#75 0x00007fb7e6c0eecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#76 0x000000000040812e in main (argc=7, argv=<value optimized out>) at ../../../okular/shell/main.cpp:85

Possible duplicates by query: bug 277507, bug 277185, bug 275902, bug 274353, bug 268816.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2011-08-23 11:02:37 UTC
Michael, is this a crash on your side?
Comment 2 Albert Astals Cid 2011-08-25 21:16:22 UTC
*** Bug 280802 has been marked as a duplicate of this bug. ***
Comment 3 Michael Pyne 2011-08-28 23:16:37 UTC
Albert, it's possibly a KSharedDataCache crash, although crashing from ::deleteCache() is unusual as it's just a static method that finds a file based on the given cache name and unlinks it. No shared memory should be involved anywhere in that, which seems to indicate some kind of corruption of the d-ptr used by KSharedDataCache.
Comment 4 Albert Astals Cid 2011-08-29 08:43:27 UTC
From what i can see we do not do anything at all with KSharedDataCache, so maybe it is a problem in KIconEngine?
Comment 5 Aaron J. Seigo 2011-08-29 09:05:17 UTC
@Albert: does okular (or its plugins) ever create KIconLoaders of its own? we had a similar crash in a Plasma component due to this, and i fixed it in KIcon.
Comment 6 Albert Astals Cid 2011-08-29 09:32:21 UTC
We do not create our own iconloader but maybe KParts::Part::iconLoader does. Anyway i do not see why creating KIconLoaders on its own should crash.
Comment 7 Aaron J. Seigo 2011-08-29 09:45:00 UTC
KIcon assumed that the KIconLoader would always exist. if a KIconLoader is created, used by a KIcon (which hold on to a pointer to the loader) and then the loader is deleted (e.g. by the application) before the KIcon is no longer in use, then the KIcon would, on its next request for a pixmap, access the deleted pointer. instant crash.

this was fixed in 4.7 and may have been backported to later 4.6 releases....
Comment 8 Albert Astals Cid 2011-08-31 11:55:32 UTC
@banatehrani: You say you can reproduce this quite reliably, can you please describe the exact steps you do to reproduce it?
Comment 9 Michael Pyne 2012-05-19 23:48:45 UTC
Still waiting for info.
Comment 10 Andrew Crouthamel 2018-09-23 02:39:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Andrew Crouthamel 2018-10-27 03:46:23 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!