Re: segmentation fault when running a script generated with pp on another unix server

[email protected] (Roderich Schupp)
Newsgroups perl.par
Message-ID <CAC9r9zbgBWbtLrPPiNZfNDEj8wTxWx4E8jJySGcv1ciS5k0tAA@mail.gmail.com>
On Sat, Jun 18, 2016 at 8:37 PM, kadimir kasprzak <[email protected]>
wrote:

> i got a segmentation fault (core dump).
>
> Do you have an idea on what could be the reason of this issue ?
>

Not enough information for even an idea.
Does this also happen for a packed "hello world" script, e.g.

$ pp -o hello -e 'print "hello, world\n";'
$ ./hello

In any case, try to get a backtrace from the core dump, eg

$ gdb /path/to/packed/executable core-file

It may also be helpful to run the packed executable under truss and look at
its output.
Note that the packed executable does execve() early on; if the segfault
occurs *after* that, then the core dump will be for the exec'ed executable
(typically named /tmp/par-HEXNUMBER/SHA1DIGEST/foo, if your packed
executable was named "foo", but it's a different executable).

Cheers, Roderich
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.