perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan McKay <alan.mc...@gmail.com>
Subject Re: first time debugging apache/mod_perl Seg fault
Date Tue, 14 Jul 2009 13:50:24 GMT
Here is what I am doing based on the mod-perl debugging page I
referred to in my first email.   I basically load the core dump in
gdb, and then alternately do "up" and "curinfo" on each line shown.
Sometimes I end up with what I got here where I get to a certain point
and it says "cannot access memory at ...", and sometimes I can get
through the whole back trace in the "up/curinfo" manner without that.
But never does it tell me it found a my_perl

Not sure why sometimes I get that error and sometimes not.  To the
best of my knowledge I'm doing the same thing every time.

>  end
(gdb) bt
#0  0x0044e172 in Perl_cv_const_sv () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#1  0x00442a7c in Perl_yylex () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#2  0x0044b295 in Perl_yyparse () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#3  0x004b8200 in Perl_pp_range () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#4  0x004ba0b2 in Perl_pp_require () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#5  0x004ba7ad in Perl_pp_dofile () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#6  0x0048488f in Perl_runops_standard () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#7  0x00424ffe in Perl_magicname () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#8  0x00429806 in Perl_call_sv () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#9  0x00140a7f in modperl_callback (my_perl=0x9476458,
handler=0xaccc268, p=0xaf2a840, r=0xaf2a880, s=0xad0bad0,
args=0xbd473e8) at modperl_callback.c:101
#10 0x0014117a in modperl_callback_run_handlers (idx=6, type=4,
r=0xaf2a880, c=0x0, s=0xad0bad0, pconf=0x0, plog=0x0, ptemp=0x0,
run_mode=MP_HOOK_RUN_FIRST)
    at modperl_callback.c:262
#11 0x0014180a in modperl_callback_per_dir (idx=6, r=0xaf2a880,
run_mode=MP_HOOK_RUN_FIRST) at modperl_callback.c:369
#12 0x0013a79f in modperl_response_handler_run (r=0xaf2a880, finish=0)
at mod_perl.c:1000
#13 0x0013a96b in modperl_response_handler_cgi (r=0xaf2a880) at mod_perl.c:1100
#14 0x08076a79 in ap_run_handler (r=0xaf2a880) at config.c:157
#15 0x08079be7 in ap_invoke_handler (r=0xaf2a880) at config.c:372
#16 0x08090798 in ap_process_request (r=0xaf2a880) at http_request.c:258
#17 0x0808da3b in ap_process_http_connection (c=0xaf1a9d8) at http_core.c:190
#18 0x0807dab9 in ap_run_process_connection (c=0xaf1a9d8) at connection.c:43
#19 0x080a3dc5 in child_main (child_num_arg=<value optimized out>) at
prefork.c:650
#20 0x080a4087 in make_child (s=0x8d2fd70, slot=28) at prefork.c:746
#21 0x080a49e0 in ap_mpm_run (_pconf=0x8d070a8, plog=0x8d451a0,
s=0x8d2fd70) at prefork.c:881
#22 0x08064645 in main (argc=147869856, argv=0xaf187f8) at main.c:740
(gdb) curinfo
No symbol "my_perl" in current context.
(gdb) up
#1  0x00442a7c in Perl_yylex () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
(gdb) curinfo
No symbol "my_perl" in current context.
(gdb) up
#2  0x0044b295 in Perl_yyparse () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
(gdb) curinfo
No symbol "my_perl" in current context.
(gdb) up
#3  0x004b8200 in Perl_pp_range () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
(gdb) curinfo
No symbol "my_perl" in current context.
(gdb) up
#4  0x004ba0b2 in Perl_pp_require () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
(gdb) curinfo
No symbol "my_perl" in current context.
(gdb) up
#5  0x004ba7ad in Perl_pp_dofile () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
(gdb) curinfo
No symbol "my_perl" in current context.
(gdb) up
#6  0x0048488f in Perl_runops_standard () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
(gdb) curinfo
No symbol "my_perl" in current context.
(gdb) up
#7  0x00424ffe in Perl_magicname () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
(gdb) curinfo
No symbol "my_perl" in current context.
(gdb) up
#8  0x00429806 in Perl_call_sv () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
(gdb) curinfo
No symbol "my_perl" in current context.
(gdb) up
#9  0x00140a7f in modperl_callback (my_perl=0x9476458,
handler=0xaccc268, p=0xaf2a840, r=0xaf2a880, s=0xad0bad0,
args=0xbd473e8) at modperl_callback.c:101
101     modperl_callback.c: No such file or directory.
        in modperl_callback.c
(gdb) curinfo
0Cannot access memory at address 0x600d
(gdb) up
#10 0x0014117a in modperl_callback_run_handlers (idx=6, type=4,
r=0xaf2a880, c=0x0, s=0xad0bad0, pconf=0x0, plog=0x0, ptemp=0x0,
run_mode=MP_HOOK_RUN_FIRST)
    at modperl_callback.c:262
262     in modperl_callback.c
(gdb) curinfo
0Cannot access memory at address 0x600d
(gdb)


On Tue, Jul 14, 2009 at 9:08 AM, Alan McKay<alan.mckay@gmail.com> wrote:
> Unfortunately it seems we are already up to the latest and greatest :
>
> Bundle          Bundle::DBI     (T/TI/TIMB/DBI-1.609.tar.gz)
> Module          DBI             (T/TI/TIMB/DBI-1.609.tar.gz)
>
> Any further help on slugging through this?
>
> On Mon, Jul 13, 2009 at 8:22 PM, Alan McKay<alan.mckay@gmail.com> wrote:
>> Oh, the symptoms sound very, very similar to mine!
>>
>> I'll try upgrading the module - thanks!
>>
>>
>> --
>> “Don't eat anything you've ever seen advertised on TV”
>>         - Michael Pollan, author of "In Defense of Food"
>>
>
>
>
> --
> “Don't eat anything you've ever seen advertised on TV”
>         - Michael Pollan, author of "In Defense of Food"
>



-- 
“Don't eat anything you've ever seen advertised on TV”
         - Michael Pollan, author of "In Defense of Food"

Mime
View raw message