From kde-core-devel Wed Nov 28 22:34:06 2001 From: Lubos Lunak Date: Wed, 28 Nov 2001 22:34:06 +0000 To: kde-core-devel Subject: Re: (fwd) kmtrace & SuSE 7.3 X-MARC-Message: https://marc.info/?l=kde-core-devel&m=100698680429705 On Wed 28. November 2001 17:45, Chris Schlaeger wrote: > On Tue, Nov 27, 2001 at 06:32:24PM +0100, Michael Matz wrote: > > Hi, > > > > On Tue, 27 Nov 2001, Dirk Mueller wrote: > > > these two do not work together. all apps lock up upon starting :-( > > > > When inspecting the backtrace below it seems ktrace calls free() in > > the malloc() hook (indirectly through addAllocationToTree). This is an > > exceptionally bad idea. A lockup would not be surprising to me (a > > semaphore for all malloc structures, taken in malloc() and free()). > > Why do you think so? It's the malloc hook, not malloc itself, so we > are not in the malloc code yet. I've already fixed the problem, second part of the diff : http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdesdk/kmtrace/ktrace.c.diff?r1=1.13 &r2=1.14 -- Lubos Lunak llunak@suse.cz ; l.lunak@kde.org http://dforce.sh.cvut.cz/~seli