[Bug 160284] bad mmap causes cores in KPCMemoryDevice

Sebastian Sauer mail at dipe.org
Fri May 30 01:04:47 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=160284         




------- Additional Comments From mail dipe org  2008-05-30 01:04 -------
ok, backtrace catched but this time it took quit a very long time till it was crashing.

Changes I did;
* changed sizeof(void*) to 16 at the 3 places
* undef the "#define NO_LAZYLOAD_ICONTHEME" in kiconloader.cpp
* added info->size=0; at the delete info->file's (happens also without this change)
* and for sure the usual kill session && restart dbus && find . -name "*icon*cache*" -exec rm {} \; && recompile && start session && attach gdb's

#0  0x00002afe6a9d2d25 in memcpy () from /lib64/libc.so.6
#1  0x00002afe65247f71 in KPCMemoryDevice (this=0x7fff4802acb0, start=0x2aaaadcb6000 "KDE PIXMAP CACHE ",
    size=0x87cf70, available=16240640) at /home/kde4/svn/_src/KDE/kdelibs/kdeui/icons/kpixmapcache.cpp:153
#2  0x00002afe65248362 in KPixmapCache::Private::mmapFile (this=0x87cf00, filename= 0x87cf20,
    info=0x87cf60, newsize=16240640) at /home/kde4/svn/_src/KDE/kdelibs/kdeui/icons/kpixmapcache.cpp:483
#3  0x00002afe652499f2 in KPixmapCache::Private::mmapFiles (this=0x87cf00)
    at /home/kde4/svn/_src/KDE/kdelibs/kdeui/icons/kpixmapcache.cpp:410
#4  0x00002afe65248941 in KPixmapCache::recreateCacheFiles (this=0x66f880)
    at /home/kde4/svn/_src/KDE/kdelibs/kdeui/icons/kpixmapcache.cpp:1182
#5  0x00002afe652457e1 in KIconCache::setThemeInfo (this=0x66f880, themes= 0x7fff4802afc0)
    at /home/kde4/svn/_src/KDE/kdelibs/kdeui/icons/kiconcache.cpp:262
#6  0x00002afe6523c0d8 in KIconLoaderPrivate::init (this=0x71bae0, _appname= 0x7fff4802b0b0, _dirs=0x66ba20)
    at /home/kde4/svn/_src/KDE/kdelibs/kdeui/icons/kiconloader.cpp:405
#7  0x00002afe6523c36c in KIconLoader::reconfigure (this=0x670c30, _appname= 0x7fff4802b0b0, _dirs=0x66ba20)
    at /home/kde4/svn/_src/KDE/kdelibs/kdeui/icons/kiconloader.cpp:379
#8  0x00002afe6523c62f in KIconLoader::newIconLoader (this=0x670c30)
    at /home/kde4/svn/_src/KDE/kdelibs/kdeui/icons/kiconloader.cpp:1610
#9  0x00002afe6523c692 in KIconLoader::qt_metacall (this=0x670c30, _c=QMetaObject::InvokeMetaMethod, _id=0,
    _a=0x7fff4802b250) at /home/kde4/svn/_build/kdelibs/kdeui/kiconloader.moc:65
#10 0x00002afe6858f4a7 in QMetaObject::activate (sender=0x6a0080, from_signal_index=10, to_signal_index=10,
    argv=0x7fff4802b250) at kernel/qobject.cpp:2998
#11 0x00002afe6858f90b in QMetaObject::activate (sender=0x6a0080, m=0x2afe6566c5a0, local_signal_index=6,
    argv=0x7fff4802b250) at kernel/qobject.cpp:3071
#12 0x00002afe6529b918 in KGlobalSettings::iconChanged (this=0x6a0080, _t1=0)
    at /home/kde4/svn/_build/kdelibs/kdeui/kglobalsettings.moc:140


More information about the Kdelibs-bugs mailing list