httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <b...@wstoddard.com>
Subject Re: debugging heap corruption on FreeBSD
Date Thu, 01 Feb 2001 21:49:03 GMT

> "Bill Stoddard" <bill@wstoddard.com> writes:
>
> > FWIW...
> > Playing with HiProf on Windows and I am seeing 17 calls to malloc() and 21
> > calls to free() per request. This seems to be playing havoc with all the
> > filters as the 'self time' spent in byterange, contentlength and header
> > filters are way higher than reasonable. Just got hiprof working but I have
> > only maybe 30 min to look at the results today.
>
> Heck, if it is that blatant then I shouldn't worry about trying to
> reproduce on apache.org :)
>

Here is the break out.

malloc() - Total 17 per req (using ab w/o keep alive to test with)
    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

free() - Total 21 per requst
    pool_destroy() - 1
    ap_getline - 5
    apr_brigade_cleanup - 6
    apr_bucket_destroy_shared - 7
    heap_destroy - 2

I suspect there is a cleanup not being deregistered. Haven't been able to pin
point ityet.

Bill


Mime
View raw message