in reply to Re^8: Pelr packer pp with -C fails else ok
in thread Pelr packer pp with -C fails else ok
Trying without File::Temp is worthwhile.
Maybe also add a few extra print statements to see where the point of failure is:
UPDATE: And setting set PAR_GLOBAL_DEBUG=1 before calling the packed executable, as suggested in 1223698, will give plenty of additional feedback.use strict; use warnings; BEGIN { print "INC BEGIN: "; print join q{ }, @INC; print "\n"; } use File::Temp qw(tempfile); use File::Basename; print join q{ }, @INC; print "\n"; END { print "INC END: "; print join q{ }, @INC; print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Pelr packer pp with -C fails else ok
by dkhosla1 (Sexton) on Oct 10, 2018 at 02:30 UTC | |
| [reply] |
by dkhosla1 (Sexton) on Oct 10, 2018 at 16:54 UTC | |
One of the test I did was to run as 'root' vs. the user. Suddenly both versions worked as root! Tracing the issue, looks like the permissions in the /tmp directory were not standard. Once that was resolved, everything started working. Just for completeness sake, I am including the run both with and without -C below (while the failure was still occurring). This still does not explain why the one with '-C' worked while the other did not. It shows 'Unpacking' for both, so I am assuming that it was successfully able to write the directory but it never dumps 'PAR_TEMP' before it crashes so can't tell where it was unpacking. Am assuming it was in "." like the one without '-C' (-noC). ** ichk3-C ** ** ichk3-noC **
| [reply] [d/l] [select] |