Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Mar 2001 12:31:23 -0800 (PST)
From:      Mikko Tyolajarvi <mikko@dynas.se>
To:        jon@rupture.net
Cc:        stable@freebsd.org
Subject:   Re: httpsd in free(): warning: chunk is already free.
Message-ID:  <200103282031.f2SKVMV75614@explorer.rsa.com>
References:  <DUPID.20590.985803646@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
In local.freebsd.stable you write:

>i'm running apache 1.3.19 on freebsd 4.3-RC cvsupped 03/23/01.  apache
>was built by hand with php4.0.4pl1 and apache_1.3.19+ssl_1.42.  in the
>parent server error log, i am getting thousands of the following
>message:

>httpsd in free(): warning: chunk is already free.
>httpsd in free(): warning: chunk is already free.

>occasionally it will say "page is already free." instead of chunk.

>am i correct in assuming that this means httpsd uses freebsd's libc
>and that the free() function from libc is reporting this warning
>message?

Yes.

>how should i go about trying to fix it?  it fills up my logfile
>partition - yesterday i had a 730MB error_log.

Your apache is buggy.

Compile apache with debugging (-g), Run it with MALLOC_OPTIONS set to
"A" (other combinations will likely catch even more bugs -- see
malloc(3)).  Apache should abort at the first occurence of an
erroneous free().  Fire up a debugger and read the core file, figure
out what the problem is, fix it.  Iterate until there are no more errors.

If you just percieve the problem as "getting lots of warnings in the
log file," wish to ignore it and pretend that everything is peachy,
you could probably wrap the apache startup with a script that
redirects stderr to /dev/null before exec:ing apache, and pray that
nothing bad will happen.

    $.02,
    /Mikko
-- 
 Mikko Työläjärvi_______________________________________mikko@rsasecurity.com
 RSA Security

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103282031.f2SKVMV75614>