From owner-freebsd-current@FreeBSD.ORG Tue May 20 02:30:16 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B749106567C for ; Tue, 20 May 2008 02:30:16 +0000 (UTC) (envelope-from bp@eden.barryp.org) Received: from itasca.hexavalent.net (itasca.hexavalent.net [67.207.138.180]) by mx1.freebsd.org (Postfix) with ESMTP id 45C928FC14 for ; Tue, 20 May 2008 02:30:16 +0000 (UTC) (envelope-from bp@eden.barryp.org) Received: from host-42-60-230-24.midco.net ([24.230.60.42] helo=eden.barryp.org) by itasca.hexavalent.net with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.67) (envelope-from ) id 1JyHcF-00020m-Hb; Mon, 19 May 2008 21:30:15 -0500 Received: from macbook.home ([10.66.1.10]) by eden.barryp.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67 (FreeBSD)) (envelope-from ) id 1JyHc2-0008DA-Fa; Mon, 19 May 2008 21:30:02 -0500 Message-ID: <483237A9.6030108@barryp.org> Date: Mon, 19 May 2008 21:30:01 -0500 From: Barry Pederson User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Kevin Downey References: <1d3ed48c0805191759mc54c4f2r7f00b533efeac73d@mail.gmail.com> In-Reply-To: <1d3ed48c0805191759mc54c4f2r7f00b533efeac73d@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Andrew Moran , freebsd-questions@freebsd.org Subject: Re: Updated php, and apache segfaults on SIGHUP X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2008 02:30:16 -0000 Kevin Downey wrote: > On Mon, May 19, 2008 at 4:18 PM, Andrew Moran wrote: >> Hey guys, >> >> I recently upgraded my php5 ports to latest ports tree versions (5.2.6), and >> now I'm in a situation where any HUP signal sent to apache is causing the >> entire process to dump core. I get this in the apache error log: >> >> [Mon May 19 16:08:48 2008] [notice] SIGHUP received. Attempting to restart >> [Mon May 19 16:08:48 2008] [notice] seg fault or similar nasty error >> detected in the parent process >> >> and this in the messages log: >> >> May 19 16:14:45 celebrian kernel: pid 36900 (httpd), uid 0: exited on signal >> 11 (core dumped) >> >> >> I narrowed it down to php - when I disable the php5 module, it doesn't >> behave like this. >> > > there was a thread on a while back on one of the other lists, maybe -questions. > the offending extension is one of these three: > #extension=mcrypt.so > #extension=mbstring.so > #extension=mhash.so > I have the three of them commented out, so I am not sure which one was > the poblem. Andy: It seems the order of the extensions in /usr/local/etc/php/extensions.ini matters. For example, in the php5 ports Makefile.ext, there's an "Ugly hack to load session before pspell to avoid crashes" It could be there are other ordering dependencies. If you have a backup of php/extensions.ini from before you did your updates, it would be worth trying reverting to that, to get the order you had before that seemed OK. Barry