Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

PAR::Packer Segmentation fault when using B::Hooks::EndOfScope or Class::MOP

by szabgab (Priest)
on Nov 28, 2013 at 11:59 UTC ( [id://1064812]=perlquestion: print w/replies, xml ) Need Help??

szabgab has asked for the wisdom of the Perl Monks concerning the following question:

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

Replies are listed 'Best First'.
Re: PAR::Packer Segmentation fault when using B::Hooks::EndOfScope or Class::MOP
by shmem (Chancellor) on Nov 28, 2013 at 13:02 UTC

    Your bug reports (both RT 90870 and RT 90869, as well as the OP) are meagre; I suppose you are using perl 5.18.0?

    No perl -V output, no arch, no OS given... I guess it is some UNIX like OS, Linux? BSD? MacOS X?

    Sorry for not being more helpful except with pedantry, but pp a.pl on my 64 bit debian wheezy gives me an a.out which, when run, complains about

    Can't locate loadable object for module Moose in @INC (@INC contains: +CODE(0x1117780) /tmp/par-shmem/cache-b6fba448d186ac68663c9acc286d926b +bd929469/inc/lib /tmp/par-shmem/cache-b6fba448d186ac68663c9acc286d926 +bbd929469/inc CODE(0x17ecb00) CODE(0x17ecf80)) at /usr/share/perl5/PA +R/Heavy.pm line 95
    so I guess my system (stock perl and modules) is even more b0rken than yours...

    --shmem

    <update>
    Running pp on

    #!/usr/bin/perl use Pod::Usage qw(pod2usage); print "hello\n";

    generates me an a.out which prints "hello world" and exits cleanly.
    I have perl v5.14.2, PAR Packager, version 1.012 (PAR version 1.005), Pod::Usage 1.36
    </update>

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
      90869 says
      $ mversion PAR::Packer 1.015 $ mversion Module::ScanDeps 1.11 perl 5.18.0 on Linux
      try pp -x ... so all the deps are packed
Re: PAR::Packer Segmentation fault when using B::Hooks::EndOfScope or Class::MOP
by marto (Cardinal) on Nov 28, 2013 at 14:23 UTC

    Some results:

    Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux PAR::Packer is up to date (1.015). Module::ScanDeps is up to date (1.11). 5.18.0 -> segmentation fault 5.16.0 -> ok just finished: 5.18.1 -> ok
      oh great, so if I brew 5.18.1 it might just start working. Great! I am going to try that. Thank you!
Re: PAR::Packer Segmentation fault when using B::Hooks::EndOfScope or Class::MOP
by Anonymous Monk on Nov 30, 2013 at 19:33 UTC
    The root cause for the segfaults has been fixed in PAR::Packer 1.016

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1064812]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found