Open mf-takayuki opened 2 years ago
This issue seems to occur with perl v5.20 and up.
Confirmed crash with perl v5.20.3, v5.22.4, v5.24.4, v5.30.0 and v5.34.0. Not reproducible with v5.18.4.
How about 5.19.x? if we can detect the target commit, we can detect the cause(maybe...)
% ~/.cpanm/perl-5.19.6/bin/perl -I. main.pl ng_once
126
% ~/.cpanm/perl-5.19.7/bin/perl -I. main.pl ng_once
0
I suppose that the target commit is in from 5.19.6 and 5.19.7. I'll check it in detail later.
https://github.com/Perl/perl5/commit/ebdc88085efa6fca8a1b0afaa388f0491bdccd5a
I did git bisect
. It says the bug was introduced by this commit.
Similar to https://github.com/xslate/p5-Mouse/issues/64
Tested environments.
File:cpanfile
File: Bar.pm
File: main.pl
When main.pl is executed, it crashes with following error messages. However, when the method is called twice, it works just fine.