[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: String corruption problem?

From: Thomas Alan Wood <thom_at_collab.net>
Date: 2000-10-10 20:59:55 CEST

if the one switches the pool to use malloc then ElectricFence would
be very usefull. i use something similar in an apache module which also
uses a pool allocator.
 

On Mon Oct-09 05:01PM Greg Stein wrote:
> On Mon, Oct 09, 2000 at 04:40:01PM -0700, Thomas Alan Wood wrote:
> > if you are having getting corrupted memory
> > try using ElectricFence i have found it very usefull for finding memory
> > errors.
> >
> > ftp://ftp.perens.com/pub/ElectricFence/ElectricFence-2.1.tar.gz
>
> Actually, I'm rather doubtful that this will work very easily. With the use
> of pools, it is rare than free() is ever called. More likely, what happens
> is that we see errors within previously allocated sections.
>
> I believe there is a compilation switch in apr_pools.h which can tell the
> pool mechanism to always use malloc(). Not sure whether that will help in
> using ElectricFence, tho.
>
> Cheers,
> -g
>
> --
> Greg Stein, http://www.lyra.org/

--
--thom wood
--415-908-4874
Received on Sat Oct 21 14:36:10 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.