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