nix build
does not respond to ctrl-c or ctrl-z #393
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#393
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
nix build
ignores ctrl-c and ctrl-zSteps To Reproduce
I have to kill it with
kill
to make iterror: interrupted by the user
Expected behavior
The build exits.
nix --version
outputnix (Lix, like Nix) 2.90.0pre20240613_1d6fd94
hmmm wonder if this is a regression because it did work for us at some point recently. will have to look into it
I can't reproduce this:
This happens to me a lot on Nix 2.18 (darwin) as well, so I don't think it's unique to Lix. More often than not it happens when interrupting nix-direnv right after
cd
ing into a project with a dev shell, so I wonder if it's timing related (interrupting nix at a specific phase).If you wind up hitting this problem again, can you please attach a gdb to it (
pgrep -af nix
on Linux, thensudo gdb -p PID
) and get a backtrace withbt
?I am assuming it is deadlocked somewhere, but I don't really have any way of diagnosing that without more information.
I can no longer reproduce it after rebooting :(.
I think what might have triggered it (though I can no longer reproduce this):
pkgs
error: interrupted by the user
, nix repl exitsUpstream issue: https://github.com/NixOS/nix/issues/7245
Mostly fixed by
86b213e632
, but we expect there to still be some cases where Lix is slow or unresponsive to quit following CTRL-C.