malloc deadlocks

Thiago Macieira thiagom at wanadoo.fr
Mon Feb 10 19:27:42 GMT 2003


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]
>

Here's something interesting too: while Helio and I were trying to do an 
initial search on the ioslaves not exiting and consuming too much CPU, we 
ended up with this backtrace:

#0  0x40a81a57 in malloc_consolidate (av=0x40ab8640) at malloc.c:2934
#1  0x40a80754 in fREe (mem=0x82244f8) at malloc.c:3105
#2  0x40a7f9bc in free (m=0x82244f8) at malloc.c:5525
#3  0x41197b4a in _XFreeDisplayStructure () from /usr/X11R6/lib/libX11.so.6
[snip]

If I remember correctly from what he told me, it's BRANCH of Feb 4th, 
--enable-fast-malloc=full.

Perhaps the two problems are connected?

-- 
  Thiago Macieira - UFOT Registry number: 1001
 thiagom at mail.com
   ICQ UIN: 1967141  PGP/GPG: 0x6EF45358
     Registered Linux user #65028
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030210/72c190e3/attachment.sig>


More information about the kde-core-devel mailing list