While trying to generate a stand-alone executable of some code using MooX::Options I got Segmentation faults.
Checked some of the dependencies of MooX::Options and so far found that either of the following scripts have the same issue:
use Class::MOP;
print "hello\n";
use B::Hooks::EndOfScope;
print "hello\n";
I can generate executable using pp, but when I try to run the executable I get Segmentation faults. Reported as
RT 90870, but if I could get some help either solving the actual issue, or just further narrowing down the cases....
Update
Further research shows that even the next script will bring out the Segmentation Fault.
use Pod::Usage qw(pod2usage);
I am starting to suspect that this problem might be related to my environment.
Now I'd be happy if you could just try this and let me know the results.
Save the above code in a file called example.pl install PAR::Packer and:
pp example.pl
./a.out