httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <grega...@raleigh.ibm.com>
Subject Re: debugging heap corruption on FreeBSD
Date Mon, 05 Feb 2001 17:35:20 GMT
Bill Stoddard wrote:
> 
> I neglected to account for calls to calloc() in my last analysis. Here is the
> analysis of HEAD (this AM):
> Requesting 500 byte file, not cached. AP_MIN_SENDFILE_BYTES set to 250.
> 
> malloc() - Total of 17 per request
>     apr_bucket_make_pool() - 1
>     apr_bucket_make_file()  - 1
>     apr_bucket_make_heap() - 1
>     apr_bucket_make_shared() - 3
>     socket_read() - 1
>     apr_bucket_copy_shared() - 10
> 
> calloc() - Total of 6 per request
>     apr_bucket_create_eos() - 1
>     apr_bucket_create_flush() - 1
>     apr_bucket_create_file() - 1
>     apr_bucket_create_pool() - 1
>     apr_bucket_create_socket() - 2
> 
> free() - Total 23 per requst
>     file_destroy() - 1
>     pool_destroy() - 1
>     ap_getline() - 5
>     apr_brigade_cleanup() - 6
>     heap_destroy() - 2
>     apr_bucket_destroy_shared() -  8
> 
> Bill

hmmmm...so we don't have a straightforward "double free()" bug hanging
out there, at least not when serving this file.

In light of that, I will rebuild on apache.org, bring it up on port
8092, beat it up some, and turn it over to Brian if it looks good. 
Hopefully, one of the patches committed late last week has taken care of
the heap corruption problems.  If not, we'll know soon.

Greg

Mime
View raw message