malloc deadlocks

Malte Starostik malte at kde.org
Mon Feb 10 19:17:11 GMT 2003


Has anyone else seen KDE's malloc deadlock (w/ high CPU usage) insie this 
loop:?

0x4073e594 in malloc_consolidate (av=0x40777020)
    at /home/malte/src/kde/kdelibs/kdecore/malloc/malloc.c:2936
2936              if (!prev_inuse(p)) {
(gdb) bt
#0  0x4073e594 in malloc_consolidate (av=0x40777020)
    at /home/malte/src/kde/kdelibs/kdecore/malloc/malloc.c:2936
#1  0x4073ca89 in mALLOc (bytes=16384)
    at /home/malte/src/kde/kdelibs/kdecore/malloc/malloc.c:3615
#2  0x4073c160 in malloc (bytes=16384)
    at /home/malte/src/kde/kdelibs/kdecore/malloc/malloc.c:5504
#3  0x40f4b2e2 in XGetImage () from /usr/X11R6/lib/libX11.so.6
#4  0x409cd057 in QPixmap::convertToImage() const ()
   from /usr/local/qt/lib/libqt-mt.so.3
[snip]

Everytime I've seen this some QPixmap or QImage{,IO} calls did the malloc(), 
maybe just accidental.
I've seen it happen when switching between tabs in Konqueror (locks konq), 
switching from a different desktop to one where a tabbed konq window is open 
(locks konq) and 100% reproducable for me: eject a CD, mounted or not from 
kdesktop's RMB menu. Upon handling the dcop call to refresh the icons, 
kdesktop locks busy with above bt.
Linux 2.4.19 on an Athlon XP 1800+, Qt compiled with -march=athlon-xp -O3, 
kde{libs,base} with --enable-debug=full, gcc 3.2, XFree 4.2.99.3
Any ideas?

-Malte





More information about the kde-core-devel mailing list