Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 10412 invoked from network); 2 Mar 2011 15:42:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 15:42:29 -0000 Received: (qmail 87966 invoked by uid 500); 2 Mar 2011 15:42:28 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 87857 invoked by uid 500); 2 Mar 2011 15:42:26 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 87850 invoked by uid 99); 2 Mar 2011 15:42:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 15:42:25 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [207.5.72.95] (HELO EXHUB015-3.exch015.msoutlookonline.net) (207.5.72.95) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 15:42:24 +0000 Received: from philip.hq.rws (174.79.184.239) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.2.254.0; Wed, 2 Mar 2011 07:42:03 -0800 Message-ID: <4D6E6544.7060504@p6m7g8.com> Date: Wed, 2 Mar 2011 15:41:56 +0000 From: "Philip M. Gollucci" Organization: P6M7G8 Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101213 Thunderbird/3.0.11 MIME-Version: 1.0 To: mod_perl Dev CC: Richard Chen Subject: Fwd: Apache::DBI 1.07+ causing segfaults X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigAAB3A499DC791308128D97C2" --------------enigAAB3A499DC791308128D97C2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The list manages this now. -------- Original Message -------- Subject: Apache::DBI 1.07+ causing segfaults Date: Tue, 1 Mar 2011 23:06:25 -0500 From: Richard Chen To: pgollucci@p6m7g8.com Hi Philip, In order to make use of the ChildExitHandler introduced in 1.09, we upgraded Apache::DBI from 1.06 to 1.10. But we immediately see seg faults for every request. The problem is traced back to the line 160 of Apache::DBI 1.10: # We may not actually be in a request, but in (or # equivalent such as startup.pl), in which case this would di= e. eval { $r =3D Apache2::RequestUtil->request }; In v. 1.06 $r is not used but $s is used. And no seg faults occur. What is the rational for this change? Also, there is no testing on $@ right after the above eval. As a good practice, Apache::DBI should have checked such issues. Once I introduce the test, I see error like Global $r object is not available. Set: PerlOptions +GlobalRequest in httpd.conf at /u01/perlgem_www/server/site_perl_debug/Apache/DBI.pm line 160. But adding PerlOptions +GlobalRequest does not have any effect. Please let me know if there is a work around for this or should I go back to using $s again? Thanks for any info. Regards Richard Chen --------------enigAAB3A499DC791308128D97C2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iD8DBQFNbmVKdbiP+9ubjBwRAjP3AJ0b4Klp22REesAQSFxujpf6TNCY+gCbBF0y uuEl7RNGmpeh3oaY3hgUgR0= =tQHm -----END PGP SIGNATURE----- --------------enigAAB3A499DC791308128D97C2--