From owner-freebsd-questions@FreeBSD.ORG Tue Nov 16 07:12:55 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D244716A4CE for ; Tue, 16 Nov 2004 07:12:55 +0000 (GMT) Received: from av9-2-sn4.m-sp.skanova.net (av9-2-sn4.m-sp.skanova.net [81.228.10.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id F286E43D46 for ; Tue, 16 Nov 2004 07:12:54 +0000 (GMT) (envelope-from hasse@swedehost.com) Received: by av9-2-sn4.m-sp.skanova.net (Postfix, from userid 502) id 32C2237E8D; Tue, 16 Nov 2004 08:12:54 +0100 (CET) Received: from smtp2-1-sn4.m-sp.skanova.net (smtp2-1-sn4.m-sp.skanova.net [81.228.10.183]) by av9-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id 1E25F37E54 for ; Tue, 16 Nov 2004 08:12:54 +0100 (CET) Received: from odin.swedehost.com (h171n2fls33o804.telia.com [217.209.211.171]) by smtp2-1-sn4.m-sp.skanova.net (Postfix) with ESMTP id 0565137E4D for ; Tue, 16 Nov 2004 08:12:53 +0100 (CET) Received: from [192.168.0.10] (thor.swedehost.com [192.168.0.10]) (authenticated bits=0) by odin.swedehost.com (8.12.11/8.12.11) with ESMTP id iAG7CrSE015554 for ; Tue, 16 Nov 2004 08:12:53 +0100 (CET) (envelope-from hasse@swedehost.com) Message-ID: <4199A845.8080703@swedehost.com> Date: Tue, 16 Nov 2004 08:12:05 +0100 From: Hasse User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.48 on 192.168.0.1 Subject: Apache2 seg faults ,uid 0: exited on signal 11 (core dumped) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2004 07:12:55 -0000 Hi. Exuses for reposting, but I'm kind of desperate by now :-) What's happened since my last post, is pratically nothing, but a couple of cvsups. The last one last night, hoping for an upgrade of the php4-pcre-4.3.9 extension, wich I belive is causing the problem, but please do correct me if I'm wrong. <>odin.swedehost.com kernel log messages: pid 40809 (httpd), uid 0: exited on signal 11 (core dumped) $ uname -a FreeBSD odin.swedehost.com 4.10-RELEASE-p3 FreeBSD 4.10-RELEASE-p3 #0: Mon Nov 15 21:00:56 CET 2004 hasse@odin.swedehost.com:/usr/obj/usr/src/sys/ODIN i386 / Hasse. ------------------------------------------------- Hi everybody. >>> Need help with Apache2 seg fault. >>> I'm totally in my blinds on this one. It seems like the problem >>> occurs when Apache is trying to >>> do a graceful restart. >>> Tried to do some "googling" and searching the mail archives, but >>> found nothing useful. >>> Found an answer from Matthew Seaman to a similar problem, but didn't >>> understand much about it. >>> http://lists.freebsd.org/mailman/htdig/freebsd-questions/2004-September/057901.html >>> >>> >> >> >> >> Fame at last! >> >> >> >>> odin# uname -a >>> FreeBSD odin.swedehost.com 4.10-RELEASE-p3 FreeBSD 4.10-RELEASE-p3 >>> #0: Fri Nov 5 16:04:49 CET 2004 >>> root@odin.swedehost.com:/usr/obj/usr/src/sys/ODIN i386 >>> >>> This is what the httpd-error.log has to say about it : >>> [Mon Nov 08 19:00:00 2004] [notice] Graceful restart requested, >>> doing restart >>> [Mon Nov 08 19:00:02 2004] [notice] seg fault or similar nasty error >>> detected in the parent process >>> [Mon Nov 08 19:01:52 2004] [warn] pid file /var/run/httpd.pid >>> overwritten -- Unclean shutdown of previous Apache run? >>> [Mon Nov 08 19:01:52 2004] [notice] Apache/2.0.52 (FreeBSD) >>> PHP/4.3.9 mod_ssl/2.0.52 OpenSSL/0.9.7d configured -- resuming >>> normal operations >>> >>> And then nothing happening. I have to manually restart the server by >>> issuing the following : >>> /usr/local/sbin/apachectl startssl >>> >>> Any and all help preciated. >>> >> >> >> >> It is probably not a problem with the base Apache itself which is >> leading to the segfaults. Rather I'd suspect that some module you're >> loading into apache is causing the problem -- I mean a 3rd party >> module like mod_php{4,5}, mod_jk or mod_perl. >> >> The first step is to narrow down what the cause of the problem is. >> Try commenting out the LoadModule directives in httpd.conf until you >> can isolate which one is the cause of the problem. >> >> Note: I'm assuming that you're using the standard prefork MPM -- >> that's definitely the preferred (in fact the only working) method >> under 4.10. I think it's still preferred in 5.x, but in that OS >> version you might be able to succeed at using one of the threaded >> MPMs. >> >> Cheers, >> >> Matthew >> >> >> > Thx for your answer. > Will follow your advice and try to pinpoint which module causing the > problem. > I do suspect php according to another mail I found searching the > archives. > http://lists.freebsd.org/mailman/htdig/freebsd-questions/2004-April/042300.html > > leading to this link : /http://bugs.php.net/bug.php?id=27810 > /which didn't enlight me very much, but might help other people to > understand the problem :-) > > Another issue I do remember from last time I cvsupe'd and port > upgraded, was two ports > that wasn't upgraded. > php4-mcve ( marked ignore ) and squirrelmail. > Don't know if this is relevant, but just thought I would add it. > > / Hasse. > Hi. After some more " googling " and some experimenting with commenting out LoadModules in Apache httpd.conf, I'm positive the problem is a bug in PHP and related to the php4-pcre-4.3.9 extension. Unfortunately, I can't do without it. I'm running Squirrelmail. One solution I 've found would be to install the php4-pcre-4.3.4 version that is said to be working, but how do I do that ? Don't know how to find and install old ports :-) The solution to bugs and problems used to be to uppgrade, not downgrade your ports. For others interested, here are some of the useful URL's I found regarding this issue : http://bugs.php.net/bug.php?id=27735 http://www.csie.nctu.edu.tw/news/article/freebsd.csie.nctu.edu.tw/mailing.freebsd.ports/122053h http://www.freebsd.org/cgi/query-pr.cgi?pr=64904 / Regards Hasse. ----------------------------------