http://www.perlmonks.org?node_id=996513


in reply to Debugging child pid 4577 exit signal Segmentation fault (11)

The problem seem to be the persistent CGI object used in different requests, as described here http://osdir.com/ml/modperl.perl.apache.org/2009-02/msg00023.html
However, I have use the "our $cgi = CGI->new;" , that should get initialized again in every request right ?

(gdb) bt #0 0x00007f58e6621631 in XS_Apache2__RequestRec_send_cgi_header () from /usr/lib/perl5/vendor_perl/5.14.2/x86_64-linux-thread-multi/au +to/Apache2/Response/Response.so #1 0x00007f58e7d23c8f in Perl_pp_entersub () from /usr/lib/perl5/5.14 +.2/x86_64-linux-thread-multi/CORE/libperl.so #2 0x00007f58e7d1b126 in Perl_runops_standard () from /usr/lib/perl5/ +5.14.2/x86_64-linux-thread-multi/CORE/libperl.so #3 0x00007f58e7cb6ede in Perl_call_sv () from /usr/lib/perl5/5.14.2/x +86_64-linux-thread-multi/CORE/libperl.so #4 0x00007f58e8001725 in modperl_callback () from /usr/lib64/apache2/ +mod_perl.so #5 0x00007f58e8001f5c in modperl_callback_run_handlers () from /usr/l +ib64/apache2/mod_perl.so #6 0x00007f58e800249f in modperl_callback_per_dir () from /usr/lib64/ +apache2/mod_perl.so #7 0x00007f58e7ffc90b in ?? () from /usr/lib64/apache2/mod_perl.so #8 0x00007f58e7ffca82 in modperl_response_handler_cgi () from /usr/li +b64/apache2/mod_perl.so #9 0x00007f58ed9f9a88 in ap_run_handler () #10 0x00007f58ed9f9f0e in ap_invoke_handler () #11 0x00007f58eda077a0 in ap_process_request () #12 0x00007f58eda045d8 in ?? () #13 0x00007f58eda00518 in ap_run_process_connection () #14 0x00007f58eda0c340 in ?? () #15 0x00007f58eda0caaa in ?? () #16 0x00007f58eda0cb67 in ?? () #17 0x00007f58eda0d4e4 in ap_mpm_run () #18 0x00007f58ed9e49aa in main ()

Replies are listed 'Best First'.
Re^2: Debugging child pid 4577 exit signal Segmentation fault (11)
by Anonymous Monk on Sep 30, 2012 at 16:45 UTC

    However, I have use the "our $cgi = CGI->new;" , that should get initialized again in every request right ?

    Um, maybe, if that line gets executed every time ...