Subject: | Class::Autouse segfaults Devel::DProf |
This works:
perl -d:DProf -e "use Encode qw(resolve_alias); print resolve_alias('UTF-8')"
This works too:
perl -e "use autouse Encode=> 'resolve_alias'; print resolve_alias('UTF-8')"
But this segfaults perl:
perl -d:DProf -e "use autouse Encode=> 'resolve_alias'; print resolve_alias('UTF-8')"
(gdb) bt
#0 0x282a1702 in prof_mark () from /usr/local/lib/perl5/5.8.5/mach/auto/Devel/DProf/DProf.so
#1 0x282a1ed0 in XS_DB_sub () from /usr/local/lib/perl5/5.8.5/mach/auto/Devel/DProf/DProf.so
#2 0x280fa570 in Perl_pp_entersub () from /usr/local/lib/perl5/5.8.5/mach/CORE/libperl.so
#3 0x280f311d in Perl_runops_standard () from /usr/local/lib/perl5/5.8.5/mach/CORE/libperl.so
#4 0x280a1a8a in S_run_body () from /usr/local/lib/perl5/5.8.5/mach/CORE/libperl.so
#5 0x280a1715 in perl_run () from /usr/local/lib/perl5/5.8.5/mach/CORE/libperl.so
#6 0x08049008 in main ()
This is perl 5.8.5 on freebsd53 without threads.