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: 54600
Status: resolved
Priority: 0/
Queue: devel-nytprof

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

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



Subject: Devel::NYTProf segfaults in presence of version.pm
Hi. I've tried to profile script which uses version.pm with Devel::NYTProf 3.01 and got a segfault. Minimal example: ===== mmcleric@hardy64:~/example$ cat X.pm package X; use strict; use warnings; use version; our $VERSION = '0.5'; 1; mmcleric@hardy64:~/example$ perl -I. -d:NYTProf -e 'use X 0.4'; Segmentation fault ===== If I comment 'use version' line, or 'our $VERSION' line, or omit version specification in 'use X', everything works correctly. I packaged latest Devel::NYTProf myself using dh-make-perl before getting this error. All build tests were successful. Version 2.10 don't have this error. mmcleric@hardy64:~/example$ perl -v | grep built This is perl, v5.8.8 built for x86_64-linux-gnu-thread-multi mmcleric@hardy64:~/example$ uname -a Linux hardy64.feeds.yandex.net 2.6.24-23-openvzyandex #2 SMP Fri Apr 24 18:54:48 MSD 2009 x86_64 GNU/Linux mmcleric@hardy64:~/example$ pmvers Devel::NYTProf 3.01 mmcleric@hardy64:~/example$ pmvers version 0.74
Subject: Re: [rt.cpan.org #54600] Devel::NYTProf segfaults in presence of version.pm
Date: Sun, 14 Feb 2010 21:38:54 +0000
To: Vyacheslav Matjukhin via RT <bug-devel-nytprof [...] rt.cpan.org>
From: Tim Bunce <Tim.Bunce [...] pobox.com>
Thanks for the detailed report and the small test case. I've reproduced the problem and reduced the test case slightly. --- package X; require version; our $VERSION = '0.5'; 1; --- NYTPROF=stmts=0:slowops=0:leave=0 perl -I. -d:NYTProf -e 'use X 0.4'; I'll look into it further...
Fixed in r1064 with help from Nicholas Clark.