Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2002 16:29:57 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        Jeff Roberson <jroberson@chesapeake.net>
Cc:        jeff@freebsd.org, hackers@freebsd.org
Subject:   Re: uma and double free detection?
Message-ID:  <20020328002957.GQ93885@elvis.mu.org>
In-Reply-To: <20020327171432.U16840-100000@mail.chesapeake.net>
References:  <20020327203236.GN93885@elvis.mu.org> <20020327171432.U16840-100000@mail.chesapeake.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Jeff Roberson <jroberson@chesapeake.net> [020327 14:16] wrote:
> On Wed, 27 Mar 2002, Alfred Perlstein wrote:
> 
> > Can uma diagnose double free's?  It doesn't seem to be able to
> > under a GENERIC config. :(
> >
> 
> Oh! Thanks for pointing this out. Originally it could, but with the per
> cpu buckets it lost the ability to until the data was really freed.  What
> I will do is disable per cpu buckets if INVARIANTS is on.  The reason for
> this is that you have to lock the zone and look at the slabs to do double
> free detection.

That's really not a good idea, how is one supposed to debug problems
with the per-cpu stuff if INVARIANTS disables them?

Why don't you look at how the old malloc(9) did it, it will show you
how to do it with minimum performance impact (i think).

-Alfred

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020328002957.GQ93885>