perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Williamson" <m...@sanasecurity.com>
Subject RE: seg faults when running modperl and GD::Graph
Date Wed, 05 Sep 2007 20:58:37 GMT
So I got apache to run under gdb, but I still am somewhat non-the-wiser.
It appears to happen the second time that the handler is used to process
the request, so I guess one workaround would be to call my script as a
plain cgi. 

I'm not really how to interpret the gdb backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1214974272 (LWP 20348)]
0xb76a9628 in XS_Apache2__RequestRec_send_cgi_header () from
/usr/lib/perl5/auto/Apache2/Response/Response.so
(gdb) bt
#0  0xb76a9628 in XS_Apache2__RequestRec_send_cgi_header () from
/usr/lib/perl5/auto/Apache2/Response/Response.so
#1  0xb787a3b9 in Perl_pp_entersub () from /usr/lib/libperl.so.5.8
#2  0xb7872917 in Perl_runops_standard () from /usr/lib/libperl.so.5.8
#3  0xb7811ef0 in Perl_get_cv () from /usr/lib/libperl.so.5.8
#4  0xb7815cf1 in Perl_call_sv () from /usr/lib/libperl.so.5.8
#5  0xb7931b7f in modperl_callback () from
/usr/lib/apache2/modules/mod_perl.so
#6  0xb7932451 in modperl_callback_run_handlers () from
/usr/lib/apache2/modules/mod_perl.so
#7  0xb79326ff in modperl_callback_per_dir () from
/usr/lib/apache2/modules/mod_perl.so
#8  0xb792cf61 in modperl_response_finish () from
/usr/lib/apache2/modules/mod_perl.so
#9  0xb792d1e2 in modperl_response_handler_cgi () from
/usr/lib/apache2/modules/mod_perl.so
#10 0x08077e38 in ap_run_handler ()
#11 0x080781bc in ap_invoke_handler ()
#12 0x08069c7f in ap_process_request ()
#13 0x08064c52 in _start ()


> -----Original Message-----
> From: William A. Rowe, Jr. [mailto:wrowe@rowe-clan.net]
> Sent: Wednesday, September 05, 2007 12:00 AM
> To: Manoj Bist
> Cc: Matt Williamson; rcaceres@aasa.com.pe; modperl@perl.apache.org
> Subject: Re: seg faults when running modperl and GD::Graph
> 
> Manoj Bist wrote:
> > One option would to be run apache under single threaded mode(option
> > -X) under gdb  and see where it is crashing.  Once you identify the
> > .so where it is crashing, you can try reproducing the crash outside
> > apache context.
> 
> See also http://httpd.apache.org/dev/debugging.html

Mime
View raw message