natefoo / slurm-drmaa

DRMAA for Slurm: Implementation of the DRMAA C bindings for Slurm
GNU General Public License v3.0
48 stars 22 forks source link

Don't segfault if parent job doesn't exist #51

Closed benmwebb closed 2 years ago

benmwebb commented 3 years ago

If slurm_load_job() reported that our parent job ID was invalid, return immediately rather than trying to use the (null) job_info struct later in the function. (In our testing we see segfaults about 40% of the time when trying to run bulk jobs via DRMAA otherwise.) This may also be the same issue discussed in #27.