Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 2, 2021

Conversation

benmwebb
Copy link
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
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.

None yet

2 participants