From owner-freebsd-ports@FreeBSD.ORG Fri Apr 2 07:06:45 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9FE716A500 for ; Fri, 2 Apr 2004 07:06:45 -0800 (PST) Received: from srv1.galle.com.br (srv1.galle.com.br [200.246.25.2]) by mx1.FreeBSD.org (Postfix) with SMTP id A125C43D3F for ; Fri, 2 Apr 2004 07:06:44 -0800 (PST) (envelope-from renato@galle.com.br) Received: (qmail 87484 invoked by uid 99); 2 Apr 2004 12:06:38 -0300 Received: from renato@galle.com.br by srv1.galle.com.br by uid 82 with qmail-scanner-1.21 Clear:RC:1(192.168.50.4):. Processed in 0.442397 secs); 02 Apr 2004 15:06:38 -0000 Received: from unknown (HELO galle.com.br) (externo@192.168.50.4) by 0 with SMTP; 2 Apr 2004 12:06:38 -0300 Message-ID: <406D8146.6000204@galle.com.br> Date: Fri, 02 Apr 2004 12:05:42 -0300 From: Renato Botelho Organization: Galle Folheados User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: pt-br, en-us, en MIME-Version: 1.0 To: Paul Reece References: <000001c4185d$bd91ca50$0402a8c0@penfold> In-Reply-To: <000001c4185d$bd91ca50$0402a8c0@penfold> X-Enigmail-Version: 0.83.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-ports@freebsd.org Subject: Re: apache2 and php4.3.5 - segfault X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 15:06:46 -0000 Paul Reece wrote: > Hi, > > I'm having a few problems with Apache2.0.49 and PHP 4.3.5 - I've done a > fresh install of both under FreeBSD 4.9-STABLE, but whenever I have PHP > loaded, any signal sent to Apache2 (eg for a restart) results in the main > Apache2 process segfaulting.. eg: > > [Fri Apr 02 10:33:27 2004] [notice] suEXEC mechanism enabled (wrapper: > /usr/local/sbin/suexec) > [Fri Apr 02 10:33:29 2004] [notice] Apache/2.0.49 (Unix) PHP/4.3.5 > mod_jk/1.2.5 mod_ssl/2.0.49 OpenSSL/0.9.7c configured -- resuming normal > operations > [Fri Apr 02 10:33:44 2004] [notice] SIGUSR1 received. Doing graceful > restart > [Fri Apr 02 10:33:44 2004] [notice] seg fault or similar nasty error > detected in the parent process > > If I simply remove PHP from the Apache configuration (ie, dont load the > module), the above no longer occurs. > > I've tried with both the prefork and worker MPM's without any change in > behavior - I've also reproduced this on a second machine, also running > FreeBSD 4.9-STABLE (no mod_jk on that machine). > > Anyone else seeing the above or know a solution? You can use php-4.3.4, or use apache 2.0.48 or copy ext/pcre directory from php-4.3.4 overwritin ext/pcre directory of php-4.3.5 until this bug was fixed. Could you see references of this bug here: http://bugs.php.net/bug.php?id=27810 http://www.freebsd.org/cgi/query-pr.cgi?pr=64904 http://issues.apache.org/bugzilla/show_bug.cgi?id=28086 Best regards -- Renato Botelho