* On Wed, Jul 11, 2001 at 08:09:20AM -0700, Doug MacEachern wrote:
> 
> libperld would help, all i can tell is that something in %SIG is being
> caught, which normally shouldn't happen at startup.  are you assigning
> anything to %SIG ?
> 
> you could also try this to get the perl filename:line where the segv
> happens:
> (gdb) source mod_perl-x.xx/.gdbinit
> (gdb) curinfo

OK, I rebuilt a debugging libperl and here is the gdb output:

styx:~# gdb apache
(no debugging symbols found)...(gdb) run -X
Starting program: /usr/sbin/apache -X
(no debugging symbols found)...(no debugging symbols found)...
[repeated many times]
Subroutine div redefined at /usr/share/perl/5.6.1/Exporter.pm line 57.
 at /usr/lib/perl/5.6.1/POSIX.pm line 18
Subroutine status_mason redefined at /usr/lib/perl5/Apache/Status.pm line 50.
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x402d1287 in S_new_he () at hv.c:26
26          PL_he_root = HeNEXT(he);
(gdb) bt
#0  0x402d1287 in S_new_he () at hv.c:26
#1  0x402d1bf9 in Perl_hv_store (hv=0x8ab7adc, key=0x4034e8e1 "$", klen=1, 
    val=0x87f069c, hash=37) at hv.c:411
#2  0x402d1644 in Perl_hv_fetch (hv=0x8ab7adc, key=0x4034e8e1 "$", klen=1, 
    lval=1) at hv.c:210
#3  0x40276e45 in Perl_gv_fetchpv (nambeg=0x4034e8e1 "$", add=1, sv_type=4)
    at gv.c:669
#4  0x40273c1e in S_init_postdump_symbols (argc=0, argv=0xbfffd63c, 
    env=0xbffff9c0) at perl.c:3381
#5  0x4026e9b4 in S_parse_body (env=0x0, xsinit=0x40223dc0 <xs_init>)
    at perl.c:1299
#6  0x4026da60 in perl_parse (my_perl=0x8ab7a48, xsinit=0x40223dc0 <xs_init>, 
    argc=3, argv=0xbfffd630, env=0x0) at perl.c:895
#7  0x402213f4 in perl_startup () from /usr/lib/apache/1.3/mod_perl.so
#8  0x402252a9 in perl_cmd_require () from /usr/lib/apache/1.3/mod_perl.so
#9  0x08054bd9 in ap_clear_module_list ()
#10 0x08054f5a in ap_handle_command ()
#11 0x08054fa1 in ap_srm_command_loop ()
#12 0x080554d2 in ap_process_resource_config ()
#13 0x08055bcc in ap_read_config ()
#14 0x0805d2b4 in ap_child_terminate ()
#15 0x0805da5d in main ()
#16 0x400e038b in __libc_start_main () from /lib/libc.so.6
(gdb) source /root/libapache-mod-perl-1.25/.gdbinit 
(gdb) curinfo
0:/dev/null
(gdb) 


-- 
    PHEDRE: Quand sous un joug honteux à peine je respire !
            Quand je me meurs !
                                          (Phèdre, J-B Racine, acte 3, scène 1)

Reply via email to