malloc deadlocks

Lubos Lunak l.lunak at suse.cz
Mon Feb 10 19:23:50 GMT 2003


On Monday 10 of February 2003 20:17, Malte Starostik wrote:
> 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?

 Most probably corrupted heap, valgrind should help.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/





More information about the kde-core-devel mailing list