Subject: | Race condition exists when building cache for pp built executables |
Perl version: 5.16.3
OS: RHEL 7.2
I receive errors similar to the following when running pp built executables.
Data/Dumper.pm did not return a true value at /usr/share/perl5/site_perl/CUSTOMMODULEA.pm line 23.
IO/Socket.pm did not return a true value at /usr/share/perl5/site_perl/CUSTOMMODULEB.pm line 63.
These errors only seem to occur when:
1. multiple instances of the executable is started simultaneously; the more instances started the more likely the problem is to occur.
2. The par cache for the executable has not been built yet (e.g. the executable has never been run or rm -rf /tmp/par-UNIQUEID)
PP Version: PAR Packager, version 1.017 (PAR version 1.010) [also tried PAR Packager, version 1.032-2]
PP Command: pp -c -f Bleach -F Bleach -o target src.pl
Note: I think the same problem would occur even if the script and modules weren't being "bleached".