From owner-freebsd-apache@FreeBSD.ORG Mon Jun 9 11:06:16 2008 Return-Path: Delivered-To: apache@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B8231065676 for ; Mon, 9 Jun 2008 11:06:16 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3A1008FC24 for ; Mon, 9 Jun 2008 11:06:16 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m59B6GQt070035 for ; Mon, 9 Jun 2008 11:06:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m59B6F5c070031 for apache@FreeBSD.org; Mon, 9 Jun 2008 11:06:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Jun 2008 11:06:15 GMT Message-Id: <200806091106.m59B6F5c070031@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: apache@FreeBSD.org Cc: Subject: Current problem reports assigned to apache@FreeBSD.org X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2008 11:06:16 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/124375 apache www/mod_auth_kerb doesn't compile against heimdal 1 problem total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/124208 apache Minor changes in www/mod_macro2 1 problem total. From owner-freebsd-apache@FreeBSD.ORG Tue Jun 10 14:35:01 2008 Return-Path: Delivered-To: apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3049B106566C for ; Tue, 10 Jun 2008 14:35:01 +0000 (UTC) (envelope-from romain@blogreen.org) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id EC5158FC22 for ; Tue, 10 Jun 2008 14:35:00 +0000 (UTC) (envelope-from romain@blogreen.org) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by postfix1-g20.free.fr (Postfix) with ESMTP id 47AB62724CC7 for ; Tue, 10 Jun 2008 16:12:10 +0200 (CEST) Received: from smtp3-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp3-g19.free.fr (Postfix) with ESMTP id 85FBE17B59A for ; Tue, 10 Jun 2008 16:12:08 +0200 (CEST) Received: from marvin.blogreen.org (marvin.blogreen.org [82.247.213.140]) by smtp3-g19.free.fr (Postfix) with ESMTP id C249B17B5C3 for ; Tue, 10 Jun 2008 16:12:07 +0200 (CEST) Received: by marvin.blogreen.org (Postfix, from userid 1001) id 67A1F5C052; Tue, 10 Jun 2008 16:12:07 +0200 (CEST) Date: Tue, 10 Jun 2008 16:12:07 +0200 From: Romain =?iso-8859-1?Q?Tarti=E8re?= To: apache@freebsd.org Message-ID: <20080610141207.GA38613@marvin.blogreen.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-PGP-Key: http://romain.blogreen.org/pubkey.asc Cc: Subject: Porting modules depending on a patched apache install X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2008 14:35:01 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello I would like to give a try to mod_caldav [1], which depends on mod_dav_acl [2], which require a patched version of Apache to build and run. In other word, the mod_dav_acl tarball contains a patch that you have to apply to Apache source before you can build the module. I would like to know how to handle this situation if I want to create FreeBSD ports for these modules. Kind regards, Romain References: 1. http://sourceforge.net/projects/modcaldav 2. http://sourceforge.net/projects/moddavacl --=20 Romain Tarti=E8re http://romain.blogreen.org/ pgp: 8DAB A124 0DA4 7024 F82A E748 D8E9 A33F FF56 FF43 (ID: 0xFF56FF43) (plain text =3Dnon-HTML=3D PGP/GPG encrypted/signed e-mail much appreciated) --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhOi7cACgkQ2OmjP/9W/0MhgwCdH8a2hF1207umAcqvWUbtfNhU jY8AnjfSZHSQfXarr7BGfDX1DTZaGdIk =EKmr -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm-- From owner-freebsd-apache@FreeBSD.ORG Tue Jun 10 22:09:25 2008 Return-Path: Delivered-To: apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5798B1065687 for ; Tue, 10 Jun 2008 22:09:25 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from EXHUB015-3.exch015.msoutlookonline.net (exhub015-3.exch015.msoutlookonline.net [207.5.72.95]) by mx1.freebsd.org (Postfix) with ESMTP id 45EC18FC0C for ; Tue, 10 Jun 2008 22:09:25 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from philip.hq.rws (74.93.213.161) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.1.278.0; Tue, 10 Jun 2008 15:09:24 -0700 Message-ID: <484EFB93.9010304@p6m7g8.com> Date: Tue, 10 Jun 2008 18:09:23 -0400 From: "Philip M. Gollucci" Organization: P6M7G8 Consulting User-Agent: Thunderbird 2.0.0.12 (X11/20080414) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Romain_Tarti=E8re?= References: <20080610141207.GA38613@marvin.blogreen.org> In-Reply-To: <20080610141207.GA38613@marvin.blogreen.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 8bit Cc: apache@freebsd.org Subject: Re: Porting modules depending on a patched apache install X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2008 22:09:25 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Romain Tartière wrote: | Hello | | I would like to give a try to mod_caldav [1], which depends on | mod_dav_acl [2], which require a patched version of Apache to build and | run. | | In other word, the mod_dav_acl tarball contains a patch that you have to | apply to Apache source before you can build the module. | | | I would like to know how to handle this situation if I want to create | FreeBSD ports for these modules. | | Kind regards, | Romain | | References: | 1. http://sourceforge.net/projects/modcaldav | 2. http://sourceforge.net/projects/moddavacl 1) Realistically, you'd need to roll your own www/apacheXX+mod_dav_acl port and it would not be a SLAVE port of anyother www/apacheXX port. Then mod_caldav would BUILD/RUN_DEPENDS on that port. 2) You could try submitting a patch that does WITH_FOO_BAR=yes conditional to one the www/apacheXX ports. IF set, it applies your patch. Later, your mod_dav_acl would need to check somehow if that patch had been applied. If not, set IGNORE="Need www/apacheXX WITH_FOO_BAR support enabled" to stop the build. the mod_dav_acl port should always set the WITH_FOO_BAR=yes flag so that all of the following sequences would work: a) $ cd www/mod_cal_dav ; make b) $ cd www/mod_dav_acl ; make $ cd www/mod_cal_dav ; make c) $ cd /www/apacheXX ; make WITH_FOO_BAR=yes $ cd www/mod_dav_acl ; make $ cd www/mod_cal_dav ; make - -- - ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQFITvuTdbiP+9ubjBwRAtopAJ9ihkZlat2/a7hL17seqStRDU9NkgCgkCQr Lb8Lpk6YFcmxqAP6uFtvm4U= =dCo+ -----END PGP SIGNATURE----- From owner-freebsd-apache@FreeBSD.ORG Wed Jun 11 15:51:23 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D30810656E8 for ; Wed, 11 Jun 2008 15:51:23 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from smtp01.cdmon.com (smtp01.cdmon.com [212.36.75.232]) by mx1.freebsd.org (Postfix) with ESMTP id AADC48FC17 for ; Wed, 11 Jun 2008 15:51:22 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from [192.168.0.29] (62.Red-217-126-43.staticIP.rima-tde.net [217.126.43.62]) by smtp01.cdmon.com (Postfix) with ESMTP id E6310F7458; Wed, 11 Jun 2008 17:51:20 +0200 (CEST) Message-ID: <484FF478.8010405@minibofh.org> Date: Wed, 11 Jun 2008 17:51:20 +0200 From: Jordi Espasa Clofent User-Agent: Thunderbird 1.5.0.12 (X11/20080430) MIME-Version: 1.0 To: freebsd-apache@freebsd.org References: <4846B64F.4090700@minibofh.org> <484775D4.4090509@p6m7g8.com> <48481A02.2050502@minibofh.org> In-Reply-To: <48481A02.2050502@minibofh.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2008 15:51:23 -0000 It seems a php-extensions bug. If you comment the mhash.so in /usr/local/etc/php/extensions.ini as: ;entension=mhash.so all works fine and you don't get anymore httpd crash (signal 11) if you use 'apachectl graceful'. Maybe will be a good idea to open PR for this? I hope it helps someone.... (I'm very surprised that this isn't a documented bug in 7.0 yet) -- Thanks, Jordi Espasa Clofent From owner-freebsd-apache@FreeBSD.ORG Wed Jun 11 16:28:07 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0A73106566B for ; Wed, 11 Jun 2008 16:28:07 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 96B958FC13 for ; Wed, 11 Jun 2008 16:28:07 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 617561CC060; Wed, 11 Jun 2008 09:10:48 -0700 (PDT) Date: Wed, 11 Jun 2008 09:10:48 -0700 From: Jeremy Chadwick To: Jordi Espasa Clofent Message-ID: <20080611161048.GA66773@eos.sc1.parodius.com> References: <4846B64F.4090700@minibofh.org> <484775D4.4090509@p6m7g8.com> <48481A02.2050502@minibofh.org> <484FF478.8010405@minibofh.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <484FF478.8010405@minibofh.org> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2008 16:28:07 -0000 On Wed, Jun 11, 2008 at 05:51:20PM +0200, Jordi Espasa Clofent wrote: > It seems a php-extensions bug. > If you comment the mhash.so in /usr/local/etc/php/extensions.ini as: > > ;entension=mhash.so > > all works fine and you don't get anymore httpd crash (signal 11) if you > use 'apachectl graceful'. > > Maybe will be a good idea to open PR for this? > > I hope it helps someone.... (I'm very surprised that this isn't a > documented bug in 7.0 yet) Many people have reported that the *order* of the extensions in extensions.ini has adverse (positive) effects on PHP segfaults on FreeBSD. I myself haven't ever run into extension ordering issues like those described (and we've done hosting for years), but I don't doubt those who have experienced such. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-apache@FreeBSD.ORG Wed Jun 11 20:05:54 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D75D810656A8 for ; Wed, 11 Jun 2008 20:05:54 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from EXHUB015-4.exch015.msoutlookonline.net (exhub015-4.exch015.msoutlookonline.net [207.5.72.96]) by mx1.freebsd.org (Postfix) with ESMTP id BBF588FC32 for ; Wed, 11 Jun 2008 20:05:54 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from philip.hq.rws (74.93.213.161) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.1.278.0; Wed, 11 Jun 2008 13:05:54 -0700 Message-ID: <48503020.7010600@p6m7g8.com> Date: Wed, 11 Jun 2008 16:05:52 -0400 From: "Philip M. Gollucci" Organization: P6M7G8 Consulting User-Agent: Thunderbird 2.0.0.12 (X11/20080414) MIME-Version: 1.0 To: Jordi Espasa Clofent References: <4846B64F.4090700@minibofh.org> <484775D4.4090509@p6m7g8.com> <48481A02.2050502@minibofh.org> <484FF478.8010405@minibofh.org> In-Reply-To: <484FF478.8010405@minibofh.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2008 20:05:54 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jordi Espasa Clofent wrote: | It seems a php-extensions bug. | If you comment the mhash.so in /usr/local/etc/php/extensions.ini as: | | ;entension=mhash.so | | all works fine and you don't get anymore httpd crash (signal 11) if you | use 'apachectl graceful'. | | Maybe will be a good idea to open PR for this? | | I hope it helps someone.... (I'm very surprised that this isn't a | documented bug in 7.0 yet) It might make more sense to follow up with php..... Just b/c it happens in 7.x and not 6.x doesn't mean its a FreeBSD issue. - -- - ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQFIUDAgdbiP+9ubjBwRAskiAJ993ELYL3AP5HkVtDSk2JQx9OuJzACfdORO rnTL1Ecdd4MNwlcrNKhwLYM= =lX0o -----END PGP SIGNATURE----- From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 02:19:54 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3220106564A for ; Thu, 12 Jun 2008 02:19:54 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 1C24D8FC16 for ; Thu, 12 Jun 2008 02:19:53 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m5C1mjLv083249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 12 Jun 2008 11:18:46 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Thu, 12 Jun 2008 11:18:43 +0930 User-Agent: KMail/1.9.7 References: <4846B64F.4090700@minibofh.org> <484FF478.8010405@minibofh.org> <20080611161048.GA66773@eos.sc1.parodius.com> In-Reply-To: <20080611161048.GA66773@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1291148.QBSeYktV6V"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200806121118.45137.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Jeremy Chadwick , freebsd-apache@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 02:19:54 -0000 --nextPart1291148.QBSeYktV6V Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thu, 12 Jun 2008, Jeremy Chadwick wrote: > I myself haven't ever run into extension ordering issues like those > described (and we've done hosting for years), but I don't doubt those > who have experienced such. I am currently experiencing this :( In the past I shuffled the order until it worked but that's not a real=20 solution. Also if you have gone from 6.x to 7.x make sure that you don't have any=20 old stuff linked against libc.so.6 loaded into a binary using=20 libc.so.7. It mostly works except with threaded programs and then *kaboom* =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1291148.QBSeYktV6V Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIUIB95ZPcIHs/zowRAvA7AJ0V0DCyB1YPyZ97wM+KBtCxwYSA8ACfQoiM 123kv9/sYA38RlXO36/jEc8= =KYue -----END PGP SIGNATURE----- --nextPart1291148.QBSeYktV6V-- From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 03:30:55 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9EAF1065686; Thu, 12 Jun 2008 03:30:55 +0000 (UTC) (envelope-from lists@pingle.org) Received: from willow.pingle.org (willow.pingle.org [208.149.144.13]) by mx1.freebsd.org (Postfix) with ESMTP id 755038FC20; Thu, 12 Jun 2008 03:30:55 +0000 (UTC) (envelope-from lists@pingle.org) Received: from localhost (unknown [127.0.0.1]) by willow.pingle.org (Postfix) with ESMTP id 90EB01145B; Wed, 11 Jun 2008 23:12:29 -0400 (EDT) X-Virus-Scanned: amavisd-new at pingle.org Received: from willow.pingle.org ([127.0.0.1]) by localhost (willow.pingle.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SCs4aEmbxz+e; Wed, 11 Jun 2008 23:12:27 -0400 (EDT) Received: from [127.0.0.1] (josie.pingle.org [209.125.59.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jim) by willow.pingle.org (Postfix) with ESMTPSA id 3A81B1145A; Wed, 11 Jun 2008 23:12:26 -0400 (EDT) Message-ID: <48509419.6060206@pingle.org> Date: Wed, 11 Jun 2008 23:12:25 -0400 From: Jim Pingle User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Daniel O'Connor References: <4846B64F.4090700@minibofh.org> <484FF478.8010405@minibofh.org> <20080611161048.GA66773@eos.sc1.parodius.com> <200806121118.45137.doconnor@gsoft.com.au> In-Reply-To: <200806121118.45137.doconnor@gsoft.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 03:30:55 -0000 Daniel O'Connor wrote: > On Thu, 12 Jun 2008, Jeremy Chadwick wrote: >> I myself haven't ever run into extension ordering issues like those >> described (and we've done hosting for years), but I don't doubt those >> who have experienced such. > > I am currently experiencing this :( > In the past I shuffled the order until it worked but that's not a real > solution. > [snip] I've mentioned this on the lists a couple times, but I have a shell script I worked out that puts the extensions into a known-working order. http://www.pingle.org/2007/09/22/php-crashes-extensions-workaround It's based on things I've come across with respect to this issue over the last couple years. It's not a new problem by a long shot. It's been happening to me for years with PHP4 and PHP5, Apache 1.3.x and 2.x. See also my previous posts on my site: http://www.pingle.org/2006/10/18/php-crashes-extensions http://www.pingle.org/2007/05/13/php-crashes-extensions-2 And some previous threads on the topic: http://lists.freebsd.org/pipermail/freebsd-stable/2006-November/030951.html http://lists.freebsd.org/mailman/htdig/freebsd-ports/2006-November/036849.html (I thought there were more but I can't find them at the moment...) I need to see if I can improve the script any (suggestions are most welcome) then open a PR to see if it -- or logic like it -- can be included in the php-extensions meta port. Jim From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 04:18:23 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 206DB106566C for ; Thu, 12 Jun 2008 04:18:23 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 802158FC20 for ; Thu, 12 Jun 2008 04:18:22 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m5C4IKLZ087143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 12 Jun 2008 13:48:20 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-apache@freebsd.org Date: Thu, 12 Jun 2008 13:48:08 +0930 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart10644337.5PtC61T4zf"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200806121348.18205.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Subject: Apache w/ PHP crashes after upgrading to 7.0 X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 04:18:23 -0000 --nextPart10644337.5PtC61T4zf Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I recently upgraded from FreeBSD 6.3 to 7.0 and now I am finding that it=20 crashes on start unless I disable both pgsql.so and mhash.so. The stack trace is.. #0 0x28f04d40 in ?? () #1 0x281c6f2e in _pthread_main_np () from /lib/libc.so.7 #2 0x2819fa0c in puts () from /lib/libc.so.7 #3 0x281a0177 in gethostbyname () from /lib/libc.so.7 #4 0x08069a12 in ap_get_local_host () #5 0x08068b9c in ap_fini_vhost_config () #6 0x0805639c in ap_read_config () #7 0x0805f133 in standalone_main () #8 0x08060c1f in main () I am not sure why gethostbyname() would call puts() and why that would=20 then crash though.. I am using apache+mod_ssl-1.3.41+2.8.31 php5-5.2.6 php5-gd-5.2.6=20 php5-gettext-5.2.6_1 php5-mbstring-5.2.6 php5-mhash-5.2.6=20 php5-openssl-5.2.6 php5-pcre-5.2.6 php5-pgsql-5.2.6_1=20 php5-session-5.2.6 php5-xml-5.2.6 php5-zlib-5.2.6 I have rebuilt them all and their dependents.. Please CC me as I am not subscribed to the list. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart10644337.5PtC61T4zf Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIUKOK5ZPcIHs/zowRAnVBAJ0Q9rxBQmZ7oedLqMkMrcQkzn5NyACfY74C a+zuMCpCioo0DZt0SwLD0mg= =Dilq -----END PGP SIGNATURE----- --nextPart10644337.5PtC61T4zf-- From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 05:15:38 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53AA61065673; Thu, 12 Jun 2008 05:15:38 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 9395B8FC2A; Thu, 12 Jun 2008 05:15:36 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m5C5FYtY088574 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 12 Jun 2008 14:45:35 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Jim Pingle Date: Thu, 12 Jun 2008 14:45:21 +0930 User-Agent: KMail/1.9.7 References: <4846B64F.4090700@minibofh.org> <200806121118.45137.doconnor@gsoft.com.au> <48509419.6060206@pingle.org> In-Reply-To: <48509419.6060206@pingle.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2883667.1orHJxJZAt"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200806121445.30864.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 05:15:38 -0000 --nextPart2883667.1orHJxJZAt Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thu, 12 Jun 2008, Jim Pingle wrote: > I need to see if I can improve the script any (suggestions are most > welcome) then open a PR to see if it -- or logic like it -- can be > included in the php-extensions meta port. Adding the script to the port seems like the way to go (baring an=20 upstream fix but it seems like a difficult problem to solve). Unfortunately it doesn't help me :( If I disable everything except either pgsql or mhash (either separately=20 or together) Apache crashes with.. #0 0x28ad6d40 in ?? () #1 0x281c6f2e in _pthread_main_np () from /lib/libc.so.7 #2 0x2819fa0c in puts () from /lib/libc.so.7 #3 0x281a0177 in gethostbyname () from /lib/libc.so.7 #4 0x08069a12 in ap_get_local_host () #5 0x08068b9c in ap_fini_vhost_config () #6 0x0805639c in ap_read_config () #7 0x0805f133 in standalone_main () #8 0x08060c1f in main () I don't understand why gethostbyname() would call puts() - and why that=20 would then crash! Seems like some threading related wrinkle though as pgsql & mhash are=20 the only extensions I have that are linked to libthr.so =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2883667.1orHJxJZAt Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIULDy5ZPcIHs/zowRAviZAJ0a7JoL4wqn8MwwZ2JBR8laEXJukACfSJFh KOQch/Yk+NEEzRJkNBjVPms= =giON -----END PGP SIGNATURE----- --nextPart2883667.1orHJxJZAt-- From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 05:59:19 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FDB11065671; Thu, 12 Jun 2008 05:59:19 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 750198FC16; Thu, 12 Jun 2008 05:59:19 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 0BE3F1CC068; Wed, 11 Jun 2008 22:59:19 -0700 (PDT) Date: Wed, 11 Jun 2008 22:59:19 -0700 From: Jeremy Chadwick To: Daniel O'Connor Message-ID: <20080612055919.GA27267@eos.sc1.parodius.com> References: <4846B64F.4090700@minibofh.org> <200806121118.45137.doconnor@gsoft.com.au> <48509419.6060206@pingle.org> <200806121445.30864.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200806121445.30864.doconnor@gsoft.com.au> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-stable@freebsd.org, freebsd-apache@freebsd.org, Jim Pingle Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 05:59:19 -0000 On Thu, Jun 12, 2008 at 02:45:21PM +0930, Daniel O'Connor wrote: > On Thu, 12 Jun 2008, Jim Pingle wrote: > > I need to see if I can improve the script any (suggestions are most > > welcome) then open a PR to see if it -- or logic like it -- can be > > included in the php-extensions meta port. > > Adding the script to the port seems like the way to go (baring an > upstream fix but it seems like a difficult problem to solve). > > Unfortunately it doesn't help me :( > If I disable everything except either pgsql or mhash (either separately > or together) Apache crashes with.. > > #0 0x28ad6d40 in ?? () > #1 0x281c6f2e in _pthread_main_np () from /lib/libc.so.7 > #2 0x2819fa0c in puts () from /lib/libc.so.7 > #3 0x281a0177 in gethostbyname () from /lib/libc.so.7 > #4 0x08069a12 in ap_get_local_host () > #5 0x08068b9c in ap_fini_vhost_config () > #6 0x0805639c in ap_read_config () > #7 0x0805f133 in standalone_main () > #8 0x08060c1f in main () > > I don't understand why gethostbyname() would call puts() - and why that > would then crash! I can't explain why it's calling puts() directly either. Bad RAM could cause something bizarre like this, or a corrupt/broken binary. The libc code I'm looking at (src/lib/libc/net/gethostnameadr.c and gethostbydns.c) don't call puts) don't appear to call puts() directly. Of course, there may be macros used which do this. There are some places in the resolver code where printing to stdout or stderr can occur. I'd expect to see a longer stack trace (meaning more functions between gethostbyname() and puts()) if that were the case, though. There's a decent document on how to debug httpd below. You'll need to start httpd with -X or with "MaxClients 1", to keep it from forking. You can do that through gdb if you want, or (what I prefer, since I'm not very good with gdb) use truss. http://httpd.apache.org/dev/debugging.html If you go the truss route, be sure to use -a -s 4096. You'd be able to see what actual string is being output via puts(), assuming it gets as far as to start writing data to the fd. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 07:05:50 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98BEE106566C; Thu, 12 Jun 2008 07:05:50 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id D55368FC19; Thu, 12 Jun 2008 07:05:44 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m5C75dCN092815 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 12 Jun 2008 16:35:40 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Jeremy Chadwick Date: Thu, 12 Jun 2008 16:35:26 +0930 User-Agent: KMail/1.9.7 References: <4846B64F.4090700@minibofh.org> <200806121445.30864.doconnor@gsoft.com.au> <20080612055919.GA27267@eos.sc1.parodius.com> In-Reply-To: <20080612055919.GA27267@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1909476.ZFXFlsEv8K"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200806121635.36998.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: freebsd-stable@freebsd.org, freebsd-apache@freebsd.org, Jim Pingle Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 07:05:50 -0000 --nextPart1909476.ZFXFlsEv8K Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thu, 12 Jun 2008, Jeremy Chadwick wrote: > > I don't understand why gethostbyname() would call puts() - and why > > that would then crash! > > I can't explain why it's calling puts() directly either. Bad RAM > could cause something bizarre like this, or a corrupt/broken binary. Yeah.. I have rebuilt lots of stuff, although not libc. This machine has build world, kernel, KDE, etc.. I am pretty sure the hardw= are is OK as none of the builds had an issue. > The libc code I'm looking at (src/lib/libc/net/gethostnameadr.c and > gethostbydns.c) don't call puts) don't appear to call puts() > directly. Of course, there may be macros used which do this. I had a look - there certainly isn't anywhere obvious it's hapening. I gues= s the only thing now is to rebuild with debugging. > There are some places in the resolver code where printing to stdout > or stderr can occur. I'd expect to see a longer stack trace (meaning > more functions between gethostbyname() and puts()) if that were the > case, though. > > There's a decent document on how to debug httpd below. You'll need > to start httpd with -X or with "MaxClients 1", to keep it from > forking. You can do that through gdb if you want, or (what I prefer, > since I'm not very good with gdb) use truss. OK thanks. > http://httpd.apache.org/dev/debugging.html > > If you go the truss route, be sure to use -a -s 4096. You'd be able > to see what actual string is being output via puts(), assuming it > gets as far as to start writing data to the fd. Hmm I had a go with gdb but it doesn't work properly.. I got this.. [midget 16:33] /tmp/work/usr/ports/www/apache13-modssl/work/apache_1.3.41 >= sudo gdb src/httpd Password: GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... (gdb) run -X Starting program: /data/tmp/work/usr/ports/www/apache13-modssl/work/apache_= 1.3.41/src/httpd -X [New LWP 100212] [New Thread 0x819d300 (LWP 100212)] [New LWP 100212] suspend error: generic error [Switching to LWP 100212] Stopped due to shared library event (gdb) info thread Cannot find new threads: generic error (gdb) bt #0 0x2807fda0 in r_debug_state () from /libexec/ld-elf.so.1 #1 0x2808367d in dlclose () from /libexec/ld-elf.so.1 #2 0x28706164 in zend_hash_apply_deleter () from /usr/local/libexec/apache/libphp5.so #3 0x287063a8 in zend_hash_graceful_reverse_destroy () from /usr/local/libexec/apache/libphp5.so #4 0x286fc89e in zend_shutdown () from /usr/local/libexec/apache/libphp5.so #5 0x286bb5bf in php_module_shutdown () from /usr/local/libexec/apache/lib= php5.so #6 0x286bb66b in php_module_shutdown_wrapper () from /usr/local/libexec/apache/libphp5.so #7 0x28776aaa in apache_php_module_shutdown_wrapper () from /usr/local/libexec/apache/libphp5.so #8 0x080524d9 in ap_clear_pool (a=3D0x8106010) at alloc.c:1937 #9 0x0805f0f6 in standalone_main (argc=3DVariable "argc" is not available. ) at http_main.c:5480 #10 0x08060c1f in main (argc=3D-716130182, argv=3D0x1) at http_main.c:5883 I tried truss and it seemed to be taking a long time (5-10 minutes) and generating a lot of seemingly identical logging :( =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1909476.ZFXFlsEv8K Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIUMrA5ZPcIHs/zowRAu78AJ0YmAppa7JFaxyQ06SPy7gFgAO8PwCgqfRB oZX+QiZ8daKQrmhahdTVfx8= =tLwM -----END PGP SIGNATURE----- --nextPart1909476.ZFXFlsEv8K-- From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 07:28:12 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB3D81065678; Thu, 12 Jun 2008 07:28:12 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 92C158FC0A; Thu, 12 Jun 2008 07:28:12 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 7EAA11CC060; Thu, 12 Jun 2008 00:28:12 -0700 (PDT) Date: Thu, 12 Jun 2008 00:28:12 -0700 From: Jeremy Chadwick To: Daniel O'Connor Message-ID: <20080612072812.GA35851@eos.sc1.parodius.com> References: <4846B64F.4090700@minibofh.org> <200806121445.30864.doconnor@gsoft.com.au> <20080612055919.GA27267@eos.sc1.parodius.com> <200806121635.36998.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200806121635.36998.doconnor@gsoft.com.au> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 07:28:12 -0000 On Thu, Jun 12, 2008 at 04:35:26PM +0930, Daniel O'Connor wrote: > On Thu, 12 Jun 2008, Jeremy Chadwick wrote: > > > I don't understand why gethostbyname() would call puts() - and why > > > that would then crash! > > > > I can't explain why it's calling puts() directly either. Bad RAM > > could cause something bizarre like this, or a corrupt/broken binary. > > Yeah.. I have rebuilt lots of stuff, although not libc. Huh? > This machine has build world, kernel, KDE, etc.. I am pretty sure the hardware is OK as none of the builds had an issue. libc is part of world. *Every* program relies (is linked with) on libc. > > If you go the truss route, be sure to use -a -s 4096. You'd be able > > to see what actual string is being output via puts(), assuming it > > gets as far as to start writing data to the fd. > > Hmm I had a go with gdb but it doesn't work properly.. I got this.. > [midget 16:33] /tmp/work/usr/ports/www/apache13-modssl/work/apache_1.3.41 >sudo gdb src/httpd > Password: > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-marcel-freebsd"... > (gdb) run -X > Starting program: /data/tmp/work/usr/ports/www/apache13-modssl/work/apache_1.3.41/src/httpd -X > [New LWP 100212] > [New Thread 0x819d300 (LWP 100212)] > [New LWP 100212] > suspend error: generic error > [Switching to LWP 100212] > Stopped due to shared library event > (gdb) info thread > Cannot find new threads: generic error > (gdb) bt > #0 0x2807fda0 in r_debug_state () from /libexec/ld-elf.so.1 > #1 0x2808367d in dlclose () from /libexec/ld-elf.so.1 > #2 0x28706164 in zend_hash_apply_deleter () > from /usr/local/libexec/apache/libphp5.so > #3 0x287063a8 in zend_hash_graceful_reverse_destroy () > from /usr/local/libexec/apache/libphp5.so > #4 0x286fc89e in zend_shutdown () from /usr/local/libexec/apache/libphp5.so > #5 0x286bb5bf in php_module_shutdown () from /usr/local/libexec/apache/libphp5.so > #6 0x286bb66b in php_module_shutdown_wrapper () > from /usr/local/libexec/apache/libphp5.so > #7 0x28776aaa in apache_php_module_shutdown_wrapper () > from /usr/local/libexec/apache/libphp5.so > #8 0x080524d9 in ap_clear_pool (a=0x8106010) at alloc.c:1937 > #9 0x0805f0f6 in standalone_main (argc=Variable "argc" is not available. > ) at http_main.c:5480 > #10 0x08060c1f in main (argc=-716130182, argv=0x1) at http_main.c:5883 I can't say much about this, but I'm willing to bet it's the result of some Apache + PHP weirdness. I've never known gdb on FreeBSD to be as reliable/useful as, say, on Linux or Solaris. Always odd/strange things happening with gdb on FreeBSD. > I tried truss and it seemed to be taking a long time (5-10 minutes) and > generating a lot of seemingly identical logging :( Okay, let's backtrack here. The OP states that he can induce a segfault of httpd when doing "apachectl graceful". Is that the exact problem you're seeing, or are you seeing problems where PHP/Apache segfaults during operation? I just want to be clear. If the latter, then truss "generating lots of seemingly identical logging" is probably expected. I'm guessing it's select() or poll() or something related to kqueue/kevent, as it'd be waiting for I/O on the HTTP socket. You'd have to submit the HTTP request to the PHP script to get it to crash. In either case, you may have to resort to using ktrace + kdump, which may or may not help narrow this down. Use "ktrace -i -t+ httpd -X" (I hope that'll work; I'm not sure if ktrace allows you to pass arguments to a command), which will start populating a file called ktrace.out. You should then do the "apachectl graceful" in another window (or if the latter, submit the HTTP request), and ktrace may exit when the segfault happens (I'm not sure about this; it may sit there indefinitely). In the case it doesn't exit, and you've confirmed the core happened (check "dmesg"), you should ^C the ktrace and then do "ktrace -C" just to be sure nothing got wedged. You'll then have to use kdump to decode the contents of ktrace.out. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 08:18:34 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E5D7106567E; Thu, 12 Jun 2008 08:18:34 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id A28F98FC22; Thu, 12 Jun 2008 08:18:33 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m5C8IUiR096022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 12 Jun 2008 17:48:31 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Jeremy Chadwick Date: Thu, 12 Jun 2008 17:48:26 +0930 User-Agent: KMail/1.9.7 References: <4846B64F.4090700@minibofh.org> <200806121635.36998.doconnor@gsoft.com.au> <20080612072812.GA35851@eos.sc1.parodius.com> In-Reply-To: <20080612072812.GA35851@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2561461.soqbAt2eX5"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200806121748.28133.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 08:18:34 -0000 --nextPart2561461.soqbAt2eX5 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thu, 12 Jun 2008, Jeremy Chadwick wrote: > > Yeah.. I have rebuilt lots of stuff, although not libc. > > Huh? Sorry, I meant that I have to explicitly rebuilt it since I did a=20 buildworld to make sure it wasn't fubar'd somehow. I haven't done that mainly because I find it extremely unlikely it would=20 only break Apache in this manner but nothing else. I might rebuild it to get debug symbols though.. > > This machine has build world, kernel, KDE, etc.. I am pretty sure > > the hardware is OK as none of the builds had an issue. > > libc is part of world. *Every* program relies (is linked with) on > libc. Yes, sorry for my confusing turn of phrase! :) > > #10 0x08060c1f in main (argc=3D-716130182, argv=3D0x1) at > > http_main.c:5883 > > I can't say much about this, but I'm willing to bet it's the result > of some Apache + PHP weirdness. I've never known gdb on FreeBSD to > be as reliable/useful as, say, on Linux or Solaris. Always > odd/strange things happening with gdb on FreeBSD. Yeah :( > > I tried truss and it seemed to be taking a long time (5-10 minutes) > > and generating a lot of seemingly identical logging :( > > Okay, let's backtrack here. > > The OP states that he can induce a segfault of httpd when doing > "apachectl graceful". Is that the exact problem you're seeing, or > are you seeing problems where PHP/Apache segfaults during operation?=20 > I just want to be clear. > > If the latter, then truss "generating lots of seemingly identical > logging" is probably expected. I'm guessing it's select() or poll() > or something related to kqueue/kevent, as it'd be waiting for I/O on > the HTTP socket. You'd have to submit the HTTP request to the PHP > script to get it to crash. > > In either case, you may have to resort to using ktrace + kdump, which > may or may not help narrow this down. > > Use "ktrace -i -t+ httpd -X" (I hope that'll work; I'm not sure if > ktrace allows you to pass arguments to a command), which will start > populating a file called ktrace.out. You should then do the > "apachectl graceful" in another window (or if the latter, submit the > HTTP request), and ktrace may exit when the segfault happens (I'm not > sure about this; it may sit there indefinitely). > > In the case it doesn't exit, and you've confirmed the core happened > (check "dmesg"), you should ^C the ktrace and then do "ktrace -C" > just to be sure nothing got wedged. > > You'll then have to use kdump to decode the contents of ktrace.out. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2561461.soqbAt2eX5 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIUNvU5ZPcIHs/zowRAnXaAKCTsHVjsPNFNTxTVR1R/nQ+CU2eUQCeIfzn kNajhS04+47Gqfl3OK80WkU= =hN6U -----END PGP SIGNATURE----- --nextPart2561461.soqbAt2eX5-- From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 08:20:54 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 665061065678; Thu, 12 Jun 2008 08:20:54 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 991488FC14; Thu, 12 Jun 2008 08:20:53 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m5C8KpVc096072 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 12 Jun 2008 17:50:52 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Jeremy Chadwick Date: Thu, 12 Jun 2008 17:50:49 +0930 User-Agent: KMail/1.9.7 References: <4846B64F.4090700@minibofh.org> <200806121635.36998.doconnor@gsoft.com.au> <20080612072812.GA35851@eos.sc1.parodius.com> In-Reply-To: <20080612072812.GA35851@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2691996.7NjXRzuLca"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200806121750.50756.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 08:20:54 -0000 --nextPart2691996.7NjXRzuLca Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline [This is a continuation of my last message, I accidentally mashed the=20 send key] On Thu, 12 Jun 2008, Jeremy Chadwick wrote: > > I tried truss and it seemed to be taking a long time (5-10 minutes) > > and generating a lot of seemingly identical logging :( > > Okay, let's backtrack here. > > The OP states that he can induce a segfault of httpd when doing > "apachectl graceful". Is that the exact problem you're seeing, or > are you seeing problems where PHP/Apache segfaults during operation?=20 > I just want to be clear. No, I don't see a problem with 'apachectl graceful' - it doesn't get=20 that far. > If the latter, then truss "generating lots of seemingly identical > logging" is probably expected. I'm guessing it's select() or poll() > or something related to kqueue/kevent, as it'd be waiting for I/O on > the HTTP socket. You'd have to submit the HTTP request to the PHP > script to get it to crash. I get a crash when Apache starts up. I wasn't sure if it was related to OPs problem or not, I should have=20 been clearer though. > In either case, you may have to resort to using ktrace + kdump, which > may or may not help narrow this down. > > Use "ktrace -i -t+ httpd -X" (I hope that'll work; I'm not sure if > ktrace allows you to pass arguments to a command), which will start Yes ktrace does allow that. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2691996.7NjXRzuLca Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIUNxi5ZPcIHs/zowRAtlSAJ4nHwYI6ZYWzl3NXF4rL0X1llk4GACaA+64 Box3PMfBf3W/AzeEtpH4SrE= =s07G -----END PGP SIGNATURE----- --nextPart2691996.7NjXRzuLca-- From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 08:27:04 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C98F3106567F for ; Thu, 12 Jun 2008 08:27:04 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from EXHUB015-3.exch015.msoutlookonline.net (exhub015-3.exch015.msoutlookonline.net [207.5.72.95]) by mx1.freebsd.org (Postfix) with ESMTP id B2E9F8FC1D for ; Thu, 12 Jun 2008 08:27:04 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from smgellar.p6m7g8.net (70.88.236.22) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.1.278.0; Thu, 12 Jun 2008 01:27:03 -0700 Message-ID: <4850DDD5.7090209@p6m7g8.com> Date: Thu, 12 Jun 2008 04:27:01 -0400 From: "Philip M. Gollucci" Organization: RideCharge Inc User-Agent: Thunderbird 2.0.0.14 (X11/20080610) MIME-Version: 1.0 To: Daniel O'Connor References: <200806121348.18205.doconnor@gsoft.com.au> In-Reply-To: <200806121348.18205.doconnor@gsoft.com.au> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-apache@freebsd.org Subject: Re: Apache w/ PHP crashes after upgrading to 7.0 X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 08:27:04 -0000 Daniel O'Connor wrote: > Hi, > I recently upgraded from FreeBSD 6.3 to 7.0 and now I am finding that it > crashes on start unless I disable both pgsql.so and mhash.so. > > The stack trace is.. > #0 0x28f04d40 in ?? () > #1 0x281c6f2e in _pthread_main_np () from /lib/libc.so.7 > #2 0x2819fa0c in puts () from /lib/libc.so.7 > #3 0x281a0177 in gethostbyname () from /lib/libc.so.7 > #4 0x08069a12 in ap_get_local_host () > #5 0x08068b9c in ap_fini_vhost_config () > #6 0x0805639c in ap_read_config () > #7 0x0805f133 in standalone_main () > #8 0x08060c1f in main () That stack trace is bogus looks like memory/stack got corrupted.... gethostbyname does not call puts() 8-current code: src/lib/libc/net/gethostnameadr.c: struct hostent * gethostbyname(const char *name) { struct hostdata *hd; struct hostent *rval; int ret_h_errno; if ((hd = __hostdata_init()) == NULL) return (NULL); if (gethostbyname_r(name, &hd->host, hd->data, sizeof(hd->data), &rval, &ret_h_errno) != 0) return (NULL); return (rval); } Rather than gdb binary binary.core trying doing $ gdb /usr/local/sbin/httpd http://httpd.apache.org/dev/debugging.html#gdb see the url for the rest.... -- ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 11:21:31 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A687A1065676; Thu, 12 Jun 2008 11:21:31 +0000 (UTC) (envelope-from lists@pingle.org) Received: from willow.pingle.org (willow.pingle.org [208.149.144.13]) by mx1.freebsd.org (Postfix) with ESMTP id 7AB7B8FC12; Thu, 12 Jun 2008 11:21:31 +0000 (UTC) (envelope-from lists@pingle.org) Received: from localhost (unknown [127.0.0.1]) by willow.pingle.org (Postfix) with ESMTP id 0F7B21145B; Thu, 12 Jun 2008 07:21:31 -0400 (EDT) X-Virus-Scanned: amavisd-new at pingle.org Received: from willow.pingle.org ([127.0.0.1]) by localhost (willow.pingle.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OPlkSdO2A3lY; Thu, 12 Jun 2008 07:21:29 -0400 (EDT) Received: from [127.0.0.1] (josie.pingle.org [209.125.59.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jim) by willow.pingle.org (Postfix) with ESMTPSA id 952331145A; Thu, 12 Jun 2008 07:21:27 -0400 (EDT) Message-ID: <485106B6.7050805@pingle.org> Date: Thu, 12 Jun 2008 07:21:26 -0400 From: Jim Pingle User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Daniel O'Connor References: <4846B64F.4090700@minibofh.org> <200806121118.45137.doconnor@gsoft.com.au> <48509419.6060206@pingle.org> <200806121445.30864.doconnor@gsoft.com.au> In-Reply-To: <200806121445.30864.doconnor@gsoft.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 11:21:31 -0000 Daniel O'Connor wrote: > On Thu, 12 Jun 2008, Jim Pingle wrote: >> I need to see if I can improve the script any (suggestions are most >> welcome) then open a PR to see if it -- or logic like it -- can be >> included in the php-extensions meta port. > > Adding the script to the port seems like the way to go (baring an > upstream fix but it seems like a difficult problem to solve). > > Unfortunately it doesn't help me :( > If I disable everything except either pgsql or mhash (either separately > or together) Apache crashes with.. > > #0 0x28ad6d40 in ?? () > #1 0x281c6f2e in _pthread_main_np () from /lib/libc.so.7 > #2 0x2819fa0c in puts () from /lib/libc.so.7 > #3 0x281a0177 in gethostbyname () from /lib/libc.so.7 > #4 0x08069a12 in ap_get_local_host () > #5 0x08068b9c in ap_fini_vhost_config () > #6 0x0805639c in ap_read_config () > #7 0x0805f133 in standalone_main () > #8 0x08060c1f in main () > > I don't understand why gethostbyname() would call puts() - and why that > would then crash! > > Seems like some threading related wrinkle though as pgsql & mhash are > the only extensions I have that are linked to libthr.so > I'm afraid I wouldn't be much help with this one in that case. I have a vague recollection of gethostbyname() crashing for someone else, though. I thought it had something to do with the ServerName directive and/or an entry in /etc/hosts -- but unfortunately I don't recall the specifics and my Google-fu seems to be failing me this morning. Jim From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 13:16:16 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DEC8D1065671; Thu, 12 Jun 2008 13:16:16 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 4113F8FC1B; Thu, 12 Jun 2008 13:16:15 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-123-76.lns11.adl6.internode.on.net [121.45.123.76]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m5CDGDRu009612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 12 Jun 2008 22:46:13 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Jim Pingle Date: Thu, 12 Jun 2008 22:46:08 +0930 User-Agent: KMail/1.9.7 References: <4846B64F.4090700@minibofh.org> <200806121445.30864.doconnor@gsoft.com.au> <485106B6.7050805@pingle.org> In-Reply-To: <485106B6.7050805@pingle.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3580763.SdHeTJl9Qx"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200806122246.09852.doconnor@gsoft.com.au> X-Spam-Score: -2.212 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 13:16:17 -0000 --nextPart3580763.SdHeTJl9Qx Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thu, 12 Jun 2008, Jim Pingle wrote: > > Seems like some threading related wrinkle though as pgsql & mhash > > are the only extensions I have that are linked to libthr.so > > I'm afraid I wouldn't be much help with this one in that case. I have > a vague recollection of gethostbyname() crashing for someone else, > though. I thought it had something to do with the ServerName > directive and/or an entry in /etc/hosts -- but unfortunately I don't > recall the specifics and my Google-fu seems to be failing me this > morning. I did some googling on the stack trace and found.. http://www.nabble.com/php5-and-postgresql-8.2-8.3-td16744979.html I think I'll try switching to Apache 2.. (Right after I upgrade my mail system so I can ditch any 6.x cruft=20 ) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart3580763.SdHeTJl9Qx Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIUSGZ5ZPcIHs/zowRAkuhAJ4usqhG0dtZsF/wk8B9p4fkRCvfOACghsEt 8tkrXJylZjvVKEssEI4iQx4= =yMdy -----END PGP SIGNATURE----- --nextPart3580763.SdHeTJl9Qx-- From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 15:17:36 2008 Return-Path: Delivered-To: freebsd-apache@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5B521065674; Thu, 12 Jun 2008 15:17:36 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id 6C7A78FC21; Thu, 12 Jun 2008 15:17:36 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (HPooka@thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id m5CF5AaD085433; Thu, 12 Jun 2008 10:05:11 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Thu, 12 Jun 2008 10:05:10 -0500 (CDT) From: "Sean C. Farley" To: "Daniel O'Connor" In-Reply-To: <200806121118.45137.doconnor@gsoft.com.au> Message-ID: References: <4846B64F.4090700@minibofh.org> <484FF478.8010405@minibofh.org> <20080611161048.GA66773@eos.sc1.parodius.com> <200806121118.45137.doconnor@gsoft.com.au> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mail.farley.org Cc: Jeremy Chadwick , freebsd-apache@FreeBSD.org, freebsd-stable@FreeBSD.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 15:17:36 -0000 On Thu, 12 Jun 2008, Daniel O'Connor wrote: > On Thu, 12 Jun 2008, Jeremy Chadwick wrote: >> I myself haven't ever run into extension ordering issues like those >> described (and we've done hosting for years), but I don't doubt those >> who have experienced such. > > I am currently experiencing this :( In the past I shuffled the order > until it worked but that's not a real solution. > > Also if you have gone from 6.x to 7.x make sure that you don't have > any old stuff linked against libc.so.6 loaded into a binary using > libc.so.7. > > It mostly works except with threaded programs and then *kaboom* Also, please try rebuilding PHP5 that has this fix[1] (in ports tree after June 9th). It may or may not help your issue. Sean 1. http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/123911 -- scf@FreeBSD.org From owner-freebsd-apache@FreeBSD.ORG Sat Jun 14 14:54:21 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40FE71065676; Sat, 14 Jun 2008 14:54:21 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 7423F8FC0C; Sat, 14 Jun 2008 14:54:20 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-20-55.lns10.adl2.internode.on.net [121.45.20.55]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m5EEsFG5031754 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 15 Jun 2008 00:24:16 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: "Sean C. Farley" Date: Sun, 15 Jun 2008 00:24:03 +0930 User-Agent: KMail/1.9.7 References: <4846B64F.4090700@minibofh.org> <200806121118.45137.doconnor@gsoft.com.au> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart21670620.Q4mYicbNYT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200806150024.13198.doconnor@gsoft.com.au> X-Spam-Score: -2.212 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Jeremy Chadwick , freebsd-apache@freebsd.org, freebsd-stable@freebsd.org Subject: Re: apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade [SOLVED] X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2008 14:54:21 -0000 --nextPart21670620.Q4mYicbNYT Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 13 Jun 2008, Sean C. Farley wrote: > On Thu, 12 Jun 2008, Daniel O'Connor wrote: > > On Thu, 12 Jun 2008, Jeremy Chadwick wrote: > >> I myself haven't ever run into extension ordering issues like > >> those described (and we've done hosting for years), but I don't > >> doubt those who have experienced such. > > > > I am currently experiencing this :( In the past I shuffled the > > order until it worked but that's not a real solution. > > > > Also if you have gone from 6.x to 7.x make sure that you don't have > > any old stuff linked against libc.so.6 loaded into a binary using > > libc.so.7. > > > > It mostly works except with threaded programs and then *kaboom* > > Also, please try rebuilding PHP5 that has this fix[1] (in ports tree > after June 9th). It may or may not help your issue. > > Sean > 1. http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/123911 I tried that but no luck :( I can build php5 with pgsql (ie modify the port Makefile) and then it=20 works and so does mhash(?!) - I am using that as a work around ATM. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart21670620.Q4mYicbNYT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIU9uV5ZPcIHs/zowRAiPHAKCUEm7OwvO/xms/GtD9H8NIZzyUUQCfRtTg BRwhcxC5km15RxX7ctbGN2Q= =2gIy -----END PGP SIGNATURE----- --nextPart21670620.Q4mYicbNYT--