Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2004 09:49:03 -0600
From:      Jon Noack <noackjr@alumni.rice.edu>
To:        Sean McNeil <sean@mcneil.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: httpd core dumps in regfree on shutdown
Message-ID:  <406AE86F.1090002@alumni.rice.edu>
In-Reply-To: <1080738617.97451.3.camel@server.mcneil.com>
References:  <1080738617.97451.3.camel@server.mcneil.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/31/2004 7:10 AM, Sean McNeil wrote:
> I have been getting core dumps on shutdown for quite some time now.  I
> finally took a look at it and this is what I see:
> 
> #0  0x285dab30 in ?? ()
> #1  0x0806deff in regex_cleanup ()
> #2  0x2834192d in run_cleanups () from
> /usr/local/lib/apache2/libapr-0.so.9
> #3  0x2834119c in apr_pool_destroy () from
> /usr/local/lib/apache2/libapr-0.so.9
> #4  0x2834118b in apr_pool_destroy () from
> /usr/local/lib/apache2/libapr-0.so.9
> #5  0x0806b561 in destroy_and_exit_process ()
> #6  0x0806c4de in main ()
> #7  0x0805d0b9 in _start ()
> 
> It looks like somehow one of my processes is, perhaps, trying to free
> something twice.  I think this might be my SSL process but I am not
> certain of it.

Apache Bug #28086 (vote for this!):
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=28086

PR #64904:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/64904

See also "Bogus" PHP Bug #27735:
http://bugs.php.net/bug.php?id=27735

With PHP 4.3.5, the issue was traced to using the bundled version of 
PCRE (version 4.5). Reverting to the version bundled with PHP 4.3.4 
(PCRE 4.3) seems to resolve the problem.  To do this, simply replace the 
ext/pcre directory in PHP 4.3.5 with the one from 4.3.4 and recompile. 
Alternatively, deselect PCRE from the options menu.

Either the bundled version of PCRE 4.5 is buggy or (most likely) it 
unmasks a bug in Apache.

Jon



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