httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Ford <david+c...@blue-labs.org>
Subject Re: Segfaults restarting on Linux with worker MPM
Date Mon, 15 Apr 2002 18:34:18 GMT
Just a side note, I use a wrapper for free() in my code, it checks to 
ensure the input isn't 0x0, frees the passed pointer, then sets the 
pointer to 0x0.  If the passed pointer is already 0x0, I log where it 
was called from so my logs show I'm doing a double free.  The added 
benefit of free(0x0) in itself on most platforms, it simply returns.

-d

Justin Erenkrantz wrote:

>On Mon, Apr 15, 2002 at 07:17:39AM -0400, Jeff Trawick wrote:
>  
>
>>backtrace in that post.  A rarer backtrace is where an internal free()
>>routine segfaults (perhaps similar to your backtrace, where some heap
>>structures are bogus, probably due to a bad free()?).
>>    
>>
>
>I bet it could be related to a double-free condition.  That would
>make the most sense (to me).
>
>I'm not sure which commit Cliff is talking about to OS/2.
>
>Cliff?  -- justin
>  
>



Mime
View raw message