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

derivation-goal: unlock output lock to avoid deadlock #12160

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Jan 8, 2025

guix discovered in their code base. Maybe we should do the same.

Motivation

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

guix discovered in their code base. Maybe we should do the same.
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2025-01-08-nix-team-meeting-minutes-207/58523/1

@edolstra
Copy link
Member

edolstra commented Jan 9, 2025

Generally we count on RAII to release the locks. Unfortunately for top-level goals (and maybe some other cases), the goal object may not be destroyed in a timely manner. Ideally we would split goals and goal results so we don't need to keep goals alive until their result is needed, but that would require some big changes.

@edolstra edolstra merged commit 9b9e416 into NixOS:master Jan 9, 2025
12 checks passed
@Mic92 Mic92 deleted the deadlock branch January 9, 2025 16:37
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.

3 participants