nix build does not respond to ctrl-c or ctrl-z				#393
		
		
	
	
		Labels
		
	
	
	
	No labels
	
		
			
	
	Affects/CppNix
		
			Affects/Nightly
		
			Affects/Only nightly
		
			Affects/Stable
		
			Area/build-packaging
		
			Area/cli
		
			Area/evaluator
		
			Area/fetching
		
			Area/flakes
		
			Area/language
		
			Area/lix ci
		
			Area/nix-eval-jobs
		
			Area/profiles
		
			Area/protocol
		
			Area/releng
		
			Area/remote-builds
		
			Area/repl
		
			Area/repl/debugger
		
			Area/store
		
			bug
		
			Context
contributors
		
			Context
drive-by
		
			Context
maintainers
		
			Context
RFD
		
			crash 💥
		
			Cross Compilation
		
			devx
		
			docs
		
			Downstream Dependents
		
			E/easy
		
			E/hard
		
			E/help wanted
		
			E/reproducible
		
			E/requires rearchitecture
		
			Feature/S3
		
			imported
		
			Language/Bash
		
			Language/C++
		
			Language/NixLang
		
			Language/Python
		
			Language/Rust
		
			Needs Langver
		
			OS/Linux
		
			OS/macOS
		
			performance
		
			regression
		
			release-blocker
		
			stability
		
			Status
blocked
		
			Status
invalid
		
			Status
postponed
		
			Status
wontfix
		
			testing
		
			testing/flakey
		
			Topic/Large Scale Installations
		
			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…
	
	Add table
		Add a link
		
	
		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 buildignores ctrl-c and ctrl-zSteps To Reproduce
I have to kill it with
killto make iterror: interrupted by the userExpected behavior
The build exits.
nix --versionoutputnix (Lix, like Nix) 2.90.0pre20240613_1d6fd94hmmm 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
cding 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 nixon 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):
pkgserror: 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.Probably fixed; if you find more of these feel free to ctrl z them, attach a debugger and file new bugs for the stack traces where that happens.