Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the devel-nytprof CPAN distribution.

Report information
The Basics
Id: 49835
Status: resolved
Priority: 0/
Queue: devel-nytprof

People
Owner: Nobody in particular
Requestors: tokuhirom [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: segmentation fault in 'do'
Date: Sat, 19 Sep 2009 22:32:29 +0900
To: bug-Devel-NYTProf [...] rt.cpan.org
From: Tokuhiro Matsuno <tokuhirom [...] gmail.com>
following one liner cause segv. echo 'sub{exit}' > foo.pl; perl -d:NYTProf -e 'my $h = do "./foo.pl"; $h->()' ------------------------------------------------------ tokuhirom@skinny% gdb perl [~/dev/Plack] 土 19 22:29 GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul 3 01:19:56 UTC 2009) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done (gdb) run -d:NYTProf -e 'my $h = do "./foo.pl"; $h->()' Starting program: /opt/local/bin/perl -d:NYTProf -e 'my $h = do "./foo.pl"; $h->()' Reading symbols for shared libraries ++.. done Reading symbols for shared libraries .. done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x00007fff844d3c00 in strlen () (gdb) bt #0 0x00007fff844d3c00 in strlen () #1 0x0000000100190029 in pp_entersub_profiler () #2 0x000000010001a34f in Perl_call_sv () #3 0x000000010001a65f in Perl_call_list () #4 0x000000010001b8da in perl_destruct () #5 0x00000001000010f8 in main ()
I can't reproduce in my current version. I'll close the ticket as it's likely fixed by other changes. ** Please retry with Devel-NYTProf-2.10_93.tar.gz (or later) as soon as possible ** If you can reproduce it then reply to this and include your perl -V output. Thanks.
Subject: Re: [rt.cpan.org #49835] segmentation fault in 'do'
Date: Sun, 25 Oct 2009 14:32:54 +0900
To: bug-devel-nytprof [...] rt.cpan.org
From: Tokuhiro Matsuno <tokuhirom [...] gmail.com>
hmm... I got EXC_BAD_ACCESS with 2.10_93 too. (gdb) run -Mblib -d:NYTProf -e 'my $h = do "./foo.pl"; $h->()' Starting program: /opt/local/bin/perl -Mblib -d:NYTProf -e 'my $h = do "./foo.pl"; $h->()' Reading symbols for shared libraries ++.. done Reading symbols for shared libraries .. done Reading symbols for shared libraries . done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x0000000000000000 0x0000000100021a16 in Perl_gv_init () (gdb) bt #0 0x0000000100021a16 in Perl_gv_init () #1 0x0000000100021e8c in Perl_gv_fetchfile_flags () #2 0x00000001001912df in close_output_file () #3 0x00000001001921ca in finish_profile () #4 0x0000000100192271 in XS_DB_finish_profile () #5 0x000000010008683e in Perl_pp_entersub () #6 0x000000010018fecc in pp_entersub_profiler () #7 0x000000010001a34f in Perl_call_sv () #8 0x000000010001a65f in Perl_call_list () #9 0x000000010001b8da in perl_destruct () #10 0x00000001000010f8 in main () (gdb) On Sat, Oct 24, 2009 at 11:38 PM, Tim_Bunce via RT <bug-devel-nytprof@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=49835 > > > I can't reproduce in my current version. > I'll close the ticket as it's likely fixed by other changes. > > ** Please retry with Devel-NYTProf-2.10_93.tar.gz (or later) as soon as possible ** > If you can reproduce it then reply to this and include your perl -V output. > Thanks. >
I'm guessing your perl version is <5.009005 Please include your "perl -V" output. I've taken a guess about the likely cause and included a fix in Devel-NYTProf-2.10_95.tar.gz - which I've just uploaded to CPAN. Please try it out.
Please retry with r905 (or Devel-NYTProf-2.10_99.tar.gz which I've just uploaded to CPAN)
Subject: Re: [rt.cpan.org #49835] segmentation fault in 'do'
Date: Sun, 15 Nov 2009 11:02:37 +0900
To: bug-devel-nytprof [...] rt.cpan.org
From: Tokuhiro Matsuno <tokuhirom [...] gmail.com>
oh, works well with Devel-NYTProf-2.10_99.tar.gz! thanks! On Sun, Nov 15, 2009 at 9:08 AM, Tim_Bunce via RT <bug-devel-nytprof@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=49835 > > > Please retry with r905 (or Devel-NYTProf-2.10_99.tar.gz which I've just uploaded to CPAN) >
Closing. (Please don't reply, unless there's a problem, as that reopens the ticket :)