Bug 255233

Summary: kraash
Product: [Frameworks and Libraries] kdelibs Reporter: blaze <blazevanderpool>
Component: kshareddatacacheAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: ale.spitfire, ali, jamest, mpyne
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description blaze 2010-10-25 17:18:53 UTC
Application: ksmserver (0.4)
KDE Platform Version: 4.5.2 (KDE 4.5.2)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-22-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
was using transmission and downloading ,and all of a sudden krash and happened 8 times before stable enough to send this

-- Backtrace:
Application: The KDE Session Manager (ksmserver), signal: Bus error
[KCrash Handler]
#6  memcpy () at ../sysdeps/x86_64/memcpy.S:196
#7  0x00007f4fdfb24b6c in KSharedDataCache::insert (this=0x10acc30, key=<value optimized out>, data=<value optimized out>) at /usr/include/bits/string3.h:52
#8  0x00007f4fe1325f4d in KImageCache::insertImage (this=0x10acc30, key=..., image=...) at ../../kdeui/util/kimagecache.cpp:86
#9  0x00007f4fe1326336 in KImageCache::insertPixmap (this=0x10acc30, key=..., pixmap=...) at ../../kdeui/util/kimagecache.cpp:105
#10 0x00007f4fe1ce5292 in Plasma::ThemePrivate::scheduledCacheUpdate (this=0x7f4fc001ee50) at ../../plasma/theme.cpp:272
#11 0x00007f4fe1ce8e5c in Plasma::Theme::qt_metacall (this=0x7f4fc001c950, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff74d2fe20) at ./theme.moc:119
#12 0x00007f4fdf34bb27 in QMetaObject::activate (sender=0x10cacd0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3280
#13 0x00007f4fdf3458f9 in QObject::event (this=0x10cacd0, e=0x7f4fc0079a38) at kernel/qobject.cpp:1183
#14 0x00007f4fde47dfdc in QApplicationPrivate::notify_helper (this=0xfcd760, receiver=0x10cacd0, e=0x7fff74d30570) at kernel/qapplication.cpp:4396
#15 0x00007f4fde483aed in QApplication::notify (this=0xfcd600, receiver=0x10cacd0, e=0x7fff74d30570) at kernel/qapplication.cpp:4277
#16 0x00007f4fe12ac4d6 in KApplication::notify (this=0xfcd600, receiver=0x10cacd0, event=0x7fff74d30570) at ../../kdeui/kernel/kapplication.cpp:310
#17 0x00007f4fdf333cdc in QCoreApplication::notifyInternal (this=0xfcd600, receiver=0x10cacd0, event=0x7fff74d30570) at kernel/qcoreapplication.cpp:732
#18 0x00007f4fdf3636f2 in sendEvent (this=0xfd1ce0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#19 QTimerInfoList::activateTimers (this=0xfd1ce0) at kernel/qeventdispatcher_unix.cpp:602
#20 0x00007f4fdf3604c8 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#21 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#22 0x00007f4fd6ecd342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#23 0x00007f4fd6ed12a8 in ?? () from /lib/libglib-2.0.so.0
#24 0x00007f4fd6ed145c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#25 0x00007f4fdf360193 in QEventDispatcherGlib::processEvents (this=0xfa8070, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#26 0x00007f4fde530a4e in QGuiEventDispatcherGlib::processEvents (this=0x7f4fbb4f4000, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#27 0x00007f4fdf332a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#28 0x00007f4fdf332dec in QEventLoop::exec (this=0x7fff74d30810, flags=) at kernel/qeventloop.cpp:201
#29 0x00007f4fdf336ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#30 0x00007f4fe23bd6d7 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../ksmserver/main.cpp:311
#31 0x00007f4fe2046d8e in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff74d30dd8) at libc-start.c:226
#32 0x0000000000400669 in _start ()

Possible duplicates by query: bug 249362.

Reported using DrKonqi
Comment 1 Michael Pyne 2010-11-05 00:00:29 UTC
Hmm, seems you have a corrupt cache somehow. I'd recommend you remove the *.kcache files that should be under /var/tmp/kdecache-$USER on most systems, especially plasma_theme_*.kcache (since Plasma seems to be where the crash occurred from).
Comment 2 Michael Pyne 2012-05-19 23:50:16 UTC
*** Bug 256421 has been marked as a duplicate of this bug. ***
Comment 3 Michael Pyne 2012-05-21 03:22:30 UTC
Git commit 561e6494bdd9a02cc8feef649f7dbbd40a1456c3 by Michael Pyne.
Committed on 20/05/2012 at 00:13.
Pushed by mpyne into branch 'KDE/4.8'.

kshareddatacache: Validate cache page size.

This commit ensures that the cache page size is actually a power-of-2
and within the band of possible sizes that could possibly have been set.

If this is not the case the cache is assumed corrupted and reset.

This should help with any cache-corruption bugs caused by a wrong cache
page size (although these don't exactly make themselves obvious). More
fixes to follow...

This one /should/ fix 274252 outright and may be of interest to several
others.
Related: bug 274252, bug 249362, bug 253665, bug 243573, bug 281217, bug 297815, bug 293954, bug 293447, bug 270915
FIXED-IN:4.8.4

M  +26   -1    kdecore/util/kshareddatacache.cpp

http://commits.kde.org/kdelibs/561e6494bdd9a02cc8feef649f7dbbd40a1456c3
Comment 4 Michael Pyne 2012-05-21 03:22:31 UTC
Git commit ca2a6a59784232857a35b313adc9599efb87bd5e by Michael Pyne.
Committed on 21/05/2012 at 01:19.
Pushed by mpyne into branch 'KDE/4.8'.

kshareddatacache: Adopt KSDCCorrupted for exceptional errors.

This involves converting many present assertions (which crash no matter
what) and error-code return values (which have to be checked everywhere
the return value is used at) into using the KSDCCorrupted exception.

The nice thing about using the exception is that it can be trapped and
handled so that it does not cause an application crash.

There's still a bit more to do -- the end goal is that all accesses to
shm, no matter how minor, are vetted beforehand to ensure it won't cause
a page fault or bus violation.
Related: bug 249362, bug 253665, bug 243573, bug 281217, bug 297815, bug 293954, bug 293447, bug 270915

M  +49   -34   kdecore/util/kshareddatacache.cpp

http://commits.kde.org/kdelibs/ca2a6a59784232857a35b313adc9599efb87bd5e
Comment 5 Jekyll Wu 2012-05-30 09:26:43 UTC
*** Bug 300857 has been marked as a duplicate of this bug. ***
Comment 6 Jekyll Wu 2012-05-31 22:21:18 UTC
*** Bug 297009 has been marked as a duplicate of this bug. ***
Comment 7 Andrew Crouthamel 2018-10-29 22:38:32 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2018-11-13 14:28:30 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
mark the bug 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 9 Bug Janitor Service 2018-11-28 04:57:11 UTC
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!