Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev
Fwd: Apache::DBI 1.07+ causing segfaults
 

Index | Next | Previous | View Flat


pgollucci at p6m7g8

Mar 2, 2011, 7:41 AM


Views: 400
Permalink
Fwd: Apache::DBI 1.07+ causing segfaults

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 <richard [at] doubleprime>
To: pgollucci [at] p6m7g8

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 <Perl> (or
# equivalent such as startup.pl), in which case this would die.
eval { $r = 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
Attachments: signature.asc (0.18 KB)

Subject User Time
Fwd: Apache::DBI 1.07+ causing segfaults pgollucci at p6m7g8 Mar 2, 2011, 7:41 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.