Install Nix on Debian: stack smashing detected: terminated

An attempted single-user install failed with a stack smashing error. A multiuser install seemed to finish without errors, but trying to run this command, I get the stack smashing error. Is there a workaround?

Install command

curl -L | sh -s -- --daemon

Test command

❯ nix-shell -p nix-info --run "nix-info -m"                                                             
*** stack smashing detected ***: terminated                                                             
zsh: IOT instruction  nix-shell -p nix-info --run "nix-info -m" 

Another test:

** stack smashing detected ***: terminated
zsh: IOT instruction  nix-env --install --attr nixpkgs.hell


OS: Debian GNU/Linux 12 (bookworm) x86_64 
Kernel: 6.1.0-13-amd64 
Uptime: 10 days, 6 hours, 55 mins 
Packages: 4347 (dpkg), 11 (brew), 56 (flatpak) 
Shell: zsh 5.9 
Terminal: /dev/pts/10 
CPU: 13th Gen Intel i9-13900K (32) @ 5.500GHz 
Memory: 112994MiB / 128511MiB 

Related: "stack smashing detected" since recent 23.05 upstream change when entering nix-shell with buildFHSUserEnv · Issue #262080 · NixOS/nixpkgs · GitHub

Please open an installer issue on the Nix GitHub repo, so we can keep track of it.

1 Like