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:41
Subject:
Re: [ID 20020513.015] Seg-fault running t/io/fs.t under Devel::DProf
Message ID:
Pine.LNX.4.44.0205132031321.4356-100000@localhost.localdomain
On Tue, 14 May 2002, Jarkko Hietaniemi wrote:

> p cv

(gdb) p cv
$1 = (CV *) 0x0


> p *cv

(gdb) p *cv
Cannot access memory at address 0x0


> call Perl_sv_dump(cv)

(gdb) call Perl_sv_dump(cv)
SV = 0


And, if you're wondering where cv, came from - it resulted from a
INT2PTR(CV*,SvIVX(Sub)).  Sub is:

(gdb) call Perl_sv_dump(Sub)
SV = PVIV(0x8166c90) at 0x81666b8
  REFCNT = 1
  FLAGS = (IOK,POK,pIOK,pPOK)
  IV = 0
  PV = 0x817a3c8 "135747636"\0
  CUR = 9
  LEN = 10

I think the PV value is an artifact of my having turned on DBG_SUB in
DProf.xs.  I think it's also 0 with DBG_SUB off.  I'd be happy to run the
test again with DBG_SUB off if that would help you.

-sam


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