From owner-freebsd-current@FreeBSD.ORG Wed Mar 31 07:47:09 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC9EC16A4CE for ; Wed, 31 Mar 2004 07:47:09 -0800 (PST) Received: from cmsrelay02.mx.net (cmsrelay02.mx.net [165.212.11.111]) by mx1.FreeBSD.org (Postfix) with SMTP id 4C45C43D48 for ; Wed, 31 Mar 2004 07:47:09 -0800 (PST) (envelope-from noackjr@alumni.rice.edu) Received: from cmsapps02.cms.usa.net (165.212.11.138) by cmsoutbound.mx.net with SMTP; 31 Mar 2004 15:47:08 -0000 Received: from optimator.noacks.org [66.136.21.178] by cmsapps02.cms.usa.net (ASMTP/noackjr@usa.net) via mtad (C8.MAIN.3.13N) with ESMTP id 345icEPvg0171M38; Wed, 31 Mar 2004 15:47:06 GMT X-USANET-Auth: 66.136.21.178 AUTH noackjr@usa.net optimator.noacks.org Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 5E31A610C; Wed, 31 Mar 2004 09:47:05 -0600 (CST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 44759-06; Wed, 31 Mar 2004 09:47:04 -0600 (CST) Received: from alumni.rice.edu (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id E47596103; Wed, 31 Mar 2004 09:47:03 -0600 (CST) Message-ID: <406AE86F.1090002@alumni.rice.edu> Date: Wed, 31 Mar 2004 09:49:03 -0600 From: Jon Noack User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040312) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sean McNeil References: <1080738617.97451.3.camel@server.mcneil.com> In-Reply-To: <1080738617.97451.3.camel@server.mcneil.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at noacks.org cc: freebsd-current@freebsd.org Subject: Re: httpd core dumps in regfree on shutdown X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2004 15:47:09 -0000 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