RE: [mp2] mod_perl 2.0.7 Segmentation fault in OutputFilter(?)

Petra Zier <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>

> I'm not a modperl expert, but I do know that modperl does some unusual
> things with threads and memory, to try to make separate threads act more
> like separate processes, i.e., to treat separate threads as though they
> had separate memory spaces.  However, I think it may depend on which
> [...]

Hi,
after my error.log also has shown other errors (see below) I switched from apaches worker MPM to prefork and now all errors and Segmentation faults are gone (at least for the last 10 hours)!
Does it mean that mod_perls PerlOutputFilterHandler isn't working under worker MPM? (At least in conjunction with mod_proxy?)

Best regards,
Petra

Attempt to free unreferenced scalar: SV 0x591a5e8, Perl interpreter: 0x577b5b0.
[Wed Jan 09 15:09:31 2013] [error] [client 1.2.3.4] Can't locate object method "ctx" via package "140558643449304" (perhaps you forgot to load "140558643449304"?) at /prb/local-perllib/Prb/OutputFilter.pm line 52.\n, referer: http://www.xxx.de/en.html
Attempt to free unreferenced scalar: SV 0x586dff0, Perl interpreter: 0x577b5b0.
*** glibc detected *** /prb/opt64/apache-2.2.23-20120913/bin/httpd: realloc(): invalid pointer: 0x000000000591a5e8 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x75916)[0x7fd6bbfec916]
/lib64/libc.so.6(realloc+0x2e2)[0x7fd6bbff26d2]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_safesysrealloc+0x10)[0x7fd6b5c922b0]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_hv_name_set+0xf2)[0x7fd6b5caa6e2]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_gv_fetchpvn_flags+0x760)[0x7fd6b5c4c380]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_gv_stashpvn+0x93)[0x7fd6b5c4d7c3]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_newSVrv+0xcf)[0x7fd6b5cc2e0f]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_sv_setref_pv+0x26)[0x7fd6b5cd0596]
/prb/opt64/apache-2.2.23-20120913/modules/mod_perl.so(modperl_ptr2obj+0x3c)[0x7fd6b5fa3e0c]
/prb/opt64/apache-2.2.23-20120913/modules/mod_perl.so(modperl_handler_make_args+0xba)[0x7fd6b5fa1cea]
/prb/opt64/apache-2.2.23-20120913/modules/mod_perl.so(modperl_run_filter+0x145)[0x7fd6b5fa7aa5]
/prb/opt64/apache-2.2.23-20120913/modules/mod_perl.so(modperl_output_filter_handler+0x45)[0x7fd6b5fa83a5]
/prb/opt64/apache-2.2.23-20120913/modules/mod_proxy_http.so(+0x383f)[0x7fd6b828a83f]
/prb/opt64/apache-2.2.23-20120913/modules/mod_proxy_http.so(+0x4c89)[0x7fd6b828bc89]
/prb/opt64/apache-2.2.23-20120913/modules/mod_proxy.so(proxy_run_scheme_handler+0x72)[0x7fd6b8493e82]
/prb/opt64/apache-2.2.23-20120913/modules/mod_proxy.so(+0x9587)[0x7fd6b8498587]
/prb/opt64/apache-2.2.23-20120913/bin/httpd(ap_invoke_handler+0x110)[0x43ca20]
/prb/opt64/apache-2.2.23-20120913/bin/httpd(ap_process_request+0x190)[0x449770]
/prb/opt64/apache-2.2.23-20120913/bin/httpd[0x446240]
/prb/opt64/apache-2.2.23-20120913/bin/httpd(ap_process_connection+0xb8)[0x442348]
/prb/opt64/apache-2.2.23-20120913/bin/httpd[0x451f84]
/lib64/libpthread.so.0(+0x7851)[0x7fd6bc311851]
/lib64/libc.so.6(clone+0x6d)[0x7fd6bc05f11d]




Attempt to free unreferenced scalar: SV 0x7fd6916ba468, Perl interpreter: 0x577b5b0.
[Wed Jan 09 11:11:33 2013] [error] [client 153.96.64.24] Can't call method "server" on unblessed reference at /prb/local-perllib/Prb/myHandler.pm line 423.\n
Attempt to free unreferenced scalar: SV 0x7fd6916ba468, Perl interpreter: 0x577b5b0.
*** glibc detected *** /prb/opt64/apache-2.2.23-20120913/bin/httpd: double free or corruption (!prev): 0x00007fd654000970 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x75916)[0x7fd6bbfec916]
/lib64/libc.so.6(+0x78443)[0x7fd6bbfef443]
/lib64/libc.so.6(+0x7b260)[0x7fd6bbff2260]
/lib64/libc.so.6(realloc+0xe5)[0x7fd6bbff24d5]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_safesysrealloc+0x10)[0x7fd6b5c922b0]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_hv_name_set+0xf2)[0x7fd6b5caa6e2]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_gv_fetchpvn_flags+0x760)[0x7fd6b5c4c380]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_gv_stashpvn+0x93)[0x7fd6b5c4d7c3]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_newSVrv+0xcf)[0x7fd6b5cc2e0f]
/prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi/CORE/libperl.so(Perl_sv_setref_pv+0x26)[0x7fd6b5cd0596]
/prb/opt64/apache-2.2.23-20120913/modules/mod_perl.so(modperl_ptr2obj+0x3c)[0x7fd6b5fa3e0c]
/prb/opt64/apache-2.2.23-20120913/modules/mod_perl.so(modperl_handler_make_args+0xba)[0x7fd6b5fa1cea]
/prb/opt64/apache-2.2.23-20120913/modules/mod_perl.so(modperl_callback_run_handlers+0x202)[0x7fd6b5fa0ac2]
/prb/opt64/apache-2.2.23-20120913/modules/mod_perl.so(modperl_callback_per_dir+0x2f)[0x7fd6b5fa14af]
/prb/opt64/apache-2.2.23-20120913/modules/mod_perl.so(modperl_response_handler+0xd3)[0x7fd6b5f9b4c3]
/prb/opt64/apache-2.2.23-20120913/bin/httpd(ap_invoke_handler+0x110)[0x43ca20]
/prb/opt64/apache-2.2.23-20120913/bin/httpd(ap_process_request+0x190)[0x449770]
/prb/opt64/apache-2.2.23-20120913/bin/httpd[0x446240]
/prb/opt64/apache-2.2.23-20120913/bin/httpd(ap_process_connection+0xb8)[0x442348]
/prb/opt64/apache-2.2.23-20120913/bin/httpd[0x451f84]
/lib64/libpthread.so.0(+0x7851)[0x7fd6bc311851]
/lib64/libc.so.6(clone+0x6d)[0x7fd6bc05f11d]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.