nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

Sub::Name segfaults with -O3 #355

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$>perlcc -O3 -e 'use Sub::Name; package Bar; package main; my $m = sub { "foo" 
}; Sub::Name::subname("Bar::bar", $m);'; ./a.out       
zsh: segmentation fault  ./a.out

$>perlcc -e 'use Sub::Name; package Bar; package main; my $m = sub { "foo" }; 
Sub::Name::subname("Bar::bar", $m);'; ./a.out 

Original issue reported on code.google.com by todd.e.rinaldo on 7 Jul 2014 at 9:04

GoogleCodeExporter commented 9 years ago
invalid. see #345 for the already fixed issue.

update your Sub::Name or use a workaround as in t/CORE/mro/next_edgecases.t

Original comment by reini.urban on 7 Jul 2014 at 10:38