perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject [mp2] segfault during configuration via push_handlers PerlInputFilterHandler
Date Sun, 13 Nov 2005 22:30:10 GMT
In case someone is interested in solving this config time segfault, I've 
attached an A-T tarball that reproduces it. I've tried to merge it into 
the mp2 test suite, but I can't reproduce it there, since filterhandlers 
are already configured via httpd.conf and the stack is initialized, so 
mpxs_Apache2__ServerRec_push_handlers on PerlInputFilterHandler works. I 
suppose we should start that t_extra directory and drop there all the odd 
test suites which can't be fit into the main test suite.

439             else if (!*avp) {

Thread 1 (process 31205):
#0  0xb7aaf894 in modperl_handler_lookup_handlers (dcfg=0x0, 
scfg=0x8217f98, rcfg=0x0, p=0x8141758, type=4, idx=9, 
action=MP_HANDLER_ACTION_PUSH, desc=0x0) at modperl_handler.c:439
#1  0xb7aafa35 in modperl_handler_get_handlers (r=0x0, c=0x0, s=0x819ee28, 
p=0x8141758, name=0x82153b8 "PerlInputFilterHandler", 
action=MP_HANDLER_ACTION_PUSH) at modperl_handler.c:488
#2  0xb7aafe3a in modperl_handler_perl_add_handlers (my_perl=0x817d890, 
r=0x0, c=0x0, s=0x819ee28, p=0x8141758, name=0x82153b8 
"PerlInputFilterHandler", sv=0x820e794,
     action=MP_HANDLER_ACTION_PUSH) at modperl_handler.c:608
#3  0xb782300b in mpxs_Apache2__ServerRec_push_handlers 
(my_perl=0x817d890, s=0x819ee28, name=0x82153b8 "PerlInputFilterHandler", 
#4  0xb782462a in XS_Apache2__ServerRec_push_handlers (my_perl=0x817d890, 
cv=0x820ec14) at ServerUtil.xs:106
#5  0xb79daaf1 in Perl_pp_entersub (my_perl=0x817d890) at pp_hot.c:2888
#6  0xb79b730e in Perl_runops_debug (my_perl=0x817d890) at dump.c:1452
#7  0xb795aee4 in S_call_body (my_perl=0x817d890, myop=0xbfa47a70, 
is_eval=0) at perl.c:2364
#8  0xb795aa21 in Perl_call_sv (my_perl=0x817d890, sv=0x817f040, flags=68) 
at perl.c:2282
#9  0xb795a2e5 in Perl_call_method (my_perl=0x817d890, methname=0x81a82c0 
"FooBar", flags=4) at perl.c:2176
#10 0xb7abe682 in modperl_module_cmd_take123 (parms=0xbfa47da0, 
mconfig=0x81a1be8, one=0xbfa47b62 "1", two=0x0, three=0x0) at 
#11 0xb7abe9ea in modperl_module_cmd_flag (parms=0xbfa47da0, 
mconfig=0x81a1be8, flag=1) at modperl_module.c:511
#12 0x080e82be in invoke_cmd (cmd=0x821a310, parms=0xbfa47da0, 
mconfig=0x81a1be8, args=0x817735a "") at config.c:797
---Type <return> to continue, or q <return> to quit---
#13 0x080e89c1 in ap_walk_config_sub (current=0x8177330, parms=0xbfa47da0, 
section_vector=0x8218a08) at config.c:1060
#14 0x080e8a52 in ap_walk_config (current=0x8177330, parms=0xbfa47da0, 
section_vector=0x8218a08) at config.c:1099
#15 0x080fe8e9 in virtualhost_section (cmd=0xbfa47da0, dummy=0x81545e8, 
arg=0x819b3d8 "_default_:8530") at core.c:2011
#16 0x080e7a58 in invoke_cmd (cmd=0x8134cb0, parms=0xbfa47da0, 
mconfig=0x81545e8, args=0x81772b8 "_default_:8530>") at config.c:676
#17 0x080e89c1 in ap_walk_config_sub (current=0x8177290, parms=0xbfa47da0, 
section_vector=0x8152ef8) at config.c:1060
#18 0x080e8a52 in ap_walk_config (current=0x8177290, parms=0xbfa47da0, 
section_vector=0x8152ef8) at config.c:1099
#19 0x080e984f in ap_process_config_tree (s=0x8150968, conftree=0x8160bb0, 
p=0x8141758, ptemp=0x8150918) at config.c:1643
#20 0x080ec5a3 in main (argc=9, argv=0xbfa47ee4) at main.c:539

Stas Bekman
MailChannels: Assured Messaging(TM)
The "Practical mod_perl" book

View raw message