From owner-freebsd-questions@FreeBSD.ORG Tue May 20 15:08:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 051011065677 for ; Tue, 20 May 2008 15:08:45 +0000 (UTC) (envelope-from fbsd-ml@scrapper.ca) Received: from pd4mo3so.prod.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id CC1B98FC1F for ; Tue, 20 May 2008 15:08:44 +0000 (UTC) (envelope-from fbsd-ml@scrapper.ca) Received: from pd2mr5so.prod.shaw.ca (pd2mr5so-qfe3.prod.shaw.ca [10.0.141.8]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0K1600E8AA2JLK70@l-daemon> for freebsd-questions@freebsd.org; Tue, 20 May 2008 09:08:43 -0600 (MDT) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd2mr5so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0K16007N7A2JJQ30@pd2mr5so.prod.shaw.ca> for freebsd-questions@freebsd.org; Tue, 20 May 2008 09:08:44 -0600 (MDT) Received: from proven.lan ([24.85.241.34]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0K1600LP3A2I5I20@l-daemon> for freebsd-questions@freebsd.org; Tue, 20 May 2008 09:08:43 -0600 (MDT) Received: from proven.lan (localhost [127.0.0.1]) by proven.lan (8.14.2/8.14.2) with ESMTP id m4KF8gh9047475 for ; Tue, 20 May 2008 08:08:42 -0700 (PDT envelope-from fbsd-ml@scrapper.ca) Received: from localhost (localhost [[UNIX: localhost]]) by proven.lan (8.14.2/8.14.2/Submit) id m4KF8gdk047474 for freebsd-questions@freebsd.org; Tue, 20 May 2008 08:08:42 -0700 (PDT envelope-from fbsd-ml@scrapper.ca) Date: Tue, 20 May 2008 08:08:42 -0700 From: Norbert Papke In-reply-to: To: freebsd-questions@freebsd.org Message-id: <200805200808.42187.fbsd-ml@scrapper.ca> Organization: Archaeological Filing MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: X-Authentication-warning: proven.lan: npapke set sender to fbsd-ml@scrapper.ca using -f User-Agent: KMail/1.9.7 Subject: Re: Updated php, and apache segfaults on SIGHUP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2008 15:08:45 -0000 On May 19, 2008, Andrew Moran wrote: > 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 ran into a similar problem. In my case, the problem was caused by PHP5 using the putenv(3) function incorrectly. Removing files/patch-ext_standard_basic_functions.c from the port and rebuilding fixed the issue for me. I have reported this to the maintainer but have not raised a PR. For more information, see http://docs.freebsd.org/cgi/getmsg.cgi?fetch=875448+0+archive/2008/freebsd-stable/20080518.freebsd-stable Cheers. -- Norbert.