Skip to content

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

Merged
natefoo merged 1 commit intonatefoo:masterfrom
benmwebb:master
Sep 2, 2021
Merged

Don't segfault if parent job doesn't exist#51
natefoo merged 1 commit intonatefoo:masterfrom
benmwebb:master

Conversation

@benmwebb
Copy link
Copy Markdown
Contributor

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.

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.
Copy link
Copy Markdown
Owner

@natefoo natefoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't use array jobs so I can't really point out whether there's anything subtly wrong here, but I don't see anything obvious, so I'll go ahead and merge. Thanks!

@natefoo natefoo merged commit 9a5f59e into natefoo:master Sep 2, 2021
natefoo added a commit that referenced this pull request Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants