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

Handle createdResourcs=nil #2257

Merged
merged 2 commits into from
Jan 31, 2017
Merged

Handle createdResourcs=nil #2257

merged 2 commits into from
Jan 31, 2017

Conversation

schmichael
Copy link
Member

Combined with b522c47 this fixes #2256

Without these two commits in place upgrades to 0.5.3 panic.

Combined with b522c47 this fixes #2256

Without these two commits in place upgrades to 0.5.3 panics.
@@ -1033,6 +1033,11 @@ func (r *TaskRunner) cleanup() {
res := r.createdResources.Copy()
r.createdResourcesLock.Unlock()

if res == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just put at the top of the function?

@schmichael schmichael merged commit 93e0377 into master Jan 31, 2017
@schmichael schmichael deleted the b-nil-resources-panic branch January 31, 2017 19:40
@github-actions
Copy link

github-actions bot commented Apr 6, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SIGSEGV on startup of nomad client since 0.5.3
2 participants