[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: (fwd) kmtrace & SuSE 7.3
From:       Lubos Lunak <l.lunak () sh ! cvut ! cz>
Date:       2001-11-28 22:34:06
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic