[Bug 384926] Re: slurm-llnl cannot execve scripts

moe jette jette1 at llnl.gov
Tue Aug 18 15:40:53 UTC 2009


This problem is fixed in Slurm version 2.0.4 or you can apply the patch below.
The problem is caused by the sbatch command reading input from stdin and 
failing to NULL terminate the argv argument to the execve() function. As a 
work-around you can supply a batch script file as an argument to sbatch 
rather than as stdin (e.g. "sbatch my.script"). Here's the patch:

Index: src/slurmd/slurmstepd/slurmstepd_job.c
===================================================================
--- src/slurmd/slurmstepd/slurmstepd_job.c      (revision 18091)
+++ src/slurmd/slurmstepd/slurmstepd_job.c      (revision 18092)
@@ -382,7 +382,7 @@
                /* job script has not yet been written out to disk --
                 * argv will be filled in later by _make_batch_script()
                 */
-               job->argv    = (char **) xmalloc(sizeof(char *));
+               job->argv    = (char **) xmalloc(2 * sizeof(char *));
        }

        job->task = (slurmd_task_info_t **)


** Attachment added: "execve.patch"
   http://launchpadlibrarian.net/30474535/execve.patch

-- 
slurm-llnl cannot execve scripts
https://bugs.launchpad.net/bugs/384926
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list