[PHP-DEV] free() errors in PHP-4.0.5RC1

2001-03-21 Thread Anil Madhavapeddy

One of my OpenBSD servers hosed itself overnight, after the upgrade
to PHP-4.0.5RC1.  The problem was that the webserver suddenly
segfaulted all of its children (saw this in the error log), and then dumped
around 900MB worth of errors into the error log.  This hurt my /var
partition :-)

The errors are:

httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: page is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
 ... until /var fills up ...

Now, this is a BSD warning, and I can turn it off by fiddling with
/etc/malloc.conf, but the fact that it's showing up is a bit iffy.
Anyone got any insight?  Nothing like this happened using
PHP-4.0.4pl1 or previous.

More details will be forthcoming if I can reproduce the problem
(it doesn't help that the Apache error logs seem to lack a timestamp).
This is the server that runs demo.horde.org, so it primarily
uses the IMAP module for remote, unstable connections.

Anil



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] free() errors in PHP-4.0.5RC1

2001-03-21 Thread Dan Kalowsky

You'll find the same lines inside of the email I sent earlier entitled
"PHP4.0.5RC1 crash..." plus a GDB backtrace I was able to grab at the
moment of occurance (and one from a core file).

I localized it down a bit more to a single script causing it, after
having been under a heavy load for a few days.  You can check the
http://www.deadmime.org/~dank/sitics-error.log (large file) file for the
series of memory leaks that seemed to have caused this.

But if your system hasn't had any of these extra memory leak lines, I
might have to return to my theory of whats causing it... :\  It also
didn't fill up my /var with the free lines...

-- 
Dan Kalowsky  "Tonight I think I'll walk alone, 
Worldgate Communications   I'll find my soul as I go home."
Software Engineer - TICS Group  - Temptation

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]