dluxhu / perl-parallel-forkmanager

Parallel::ForkManager
20 stars 11 forks source link

Return value error #18

Open maros opened 8 years ago

maros commented 8 years ago

When a parent process exits before a child process finishes I get this error because the temp dir was already cleaned up by the parent.

The storable module was unable to store the child's data structure to the temp file "/tmp/ParallelWorker/44013_117209400/Parallel-ForkManager-44013-39263.txt": can't create /tmp/ParallelWorker/44013_117209400/Parallel-ForkManager-44013-39263.txt: No such file or directory at /opt/gh/perl-current-live/local-default/lib/perl5/Parallel/ForkManager.pm line 84.

Child process should handle this gracefully.

jdaron commented 6 years ago

Hi,

I am getting a similar issue with a program I am writing. Any help will be appreciated :)

What I have hard time to understand is my program processed well the firs 90 "jobs" I launched on the different threads and then it output me this error.

Cannot fork: Cannot allocate memory at /usr/local/perl-5.24.0/lib/site_perl/5.24.0/Parallel/ForkManager.pm line 52, line 8260.

The storable module was unable to store the child's data structure to the temp file "/tmp/1341603.1.bioinfo.q/v8GdAyMVl7/Parallel-ForkManager-31846-1803.txt": can't create /tmp/1341603.1.bioinfo.q/v8GdAyMVl7/Parallel-ForkManager-31846-1803.txt: No such file or directory at /usr/local/perl-5.24.0/lib/site_perl/5.24.0/Parallel/ForkManager.pm line 84.