in reply to Re^7: Pelr packer pp with -C fails else ok
in thread Pelr packer pp with -C fails else ok
Builds:use strict; use warnings; use File::Temp qw(tempfile); use File::Basename; print join q{ }, @INC; print "\n";
Output (output filename is listed in ** xxx ** below:pp -C -o ichk-C ichk.pl and pp -o ichk-noC ichk.pl
** ichk-C ** Invalid argument at -e line 119. Can't locate File/Temp.pm in @INC (@INC contains: /home/shared/perl5/R +EL5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/x86_64-linux /hom +e/shared/perl5/REL5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3 / +home/shared/perl5/REL5/perlbrew/perls/perl-5.16.3/lib/5.16.3/x86_64-l +inux /home/shared/perl5/REL5/perlbrew/perls/perl-5.16.3/lib/5.16.3 .) + at -e line 6. END failed--call queue aborted at -e line 616. ** ichk-noC ** par-646563687063/cache-e9945fbc61b7cb093917c5ca027e5bb0198d1d0d/inc/li +b par-646563687063/cache-e9945fbc61b7cb093917c5ca027e5bb0198d1d0d/inc + CODE(0x11d5950) CODE(0x11d5a58)
I had just thrown in the "File::Temp" even though not used. Tomorrow I'll try without it in the code just in case something unique about this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Pelr packer pp with -C fails else ok
by swl (Prior) on Oct 09, 2018 at 00:06 UTC | |
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. | [reply] [d/l] [select] |
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] |