develooper Front page | perl.perl5.porters | Postings from May 2002

Re: [ID 20020513.015] Seg-fault running t/io/fs.t under Devel::DProf

Thread Previous | Thread Next
From:
Sam Tregar
Date:
May 13, 2002 17:25
Subject:
Re: [ID 20020513.015] Seg-fault running t/io/fs.t under Devel::DProf
Message ID:
Pine.LNX.4.44.0205132013320.4356-100000@localhost.localdomain
On 13 May 2002 sam@airtrout.tregar.com wrote:

> Looking at it under gdb, it's faulting at DProf.xs at line 319:
>
>   GV *gv = CvGV(cv);

I've done some further investigation.  The segfault occurs just before the
end of the file.  It comes between the final statement and the execution
of END block in t/io/fs.t.  However, removing the END block doesn't cure
the problem.  If I start removing tests, any tests seemingly, then the
problem does go away.

In case it helps, here's the backtrace I forgot to include in the original
report:

Program received signal SIGSEGV, Segmentation fault.
0x401e7901 in prof_mark (ptype=OP_LEAVESUB) at DProf.xs:333
333		    GV *gv = CvGV(cv);
(gdb) bt
#0  0x401e7901 in prof_mark (ptype=OP_LEAVESUB) at DProf.xs:333
#1  0x401e831d in XS_DB_sub (cv=0x8183b4c) at DProf.xs:554
#2  0x080cae7e in Perl_pp_entersub () at pp_hot.c:2758
#3  0x080addcd in Perl_runops_debug () at dump.c:1394
#4  0x080608c4 in S_run_body (oldscope=1) at perl.c:1673
#5  0x08060468 in perl_run (my_perl=0x8166408) at perl.c:1594
#6  0x0805cd79 in main (argc=4, argv=0xbffff7a4, env=0xbffff7b8)
    at perlmain.c:85
#7  0x4007f177 in __libc_start_main (main=0x805cce0 <main>, argc=4,
    ubp_av=0xbffff7a4, init=0x805bdb4 <_init>, fini=0x8141880 <_fini>,
    rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffff79c)
    at ../sysdeps/generic/libc-start.c:129



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About