Re: String corruption problem?
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.
> Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:10 2006
This is an archived mail posted to the Subversion Dev