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

nix-env -e dumps core #715

Open
gleber opened this issue Nov 22, 2015 · 4 comments
Open

nix-env -e dumps core #715

gleber opened this issue Nov 22, 2015 · 4 comments
Assignees
Labels

Comments

@gleber
Copy link
Contributor

gleber commented Nov 22, 2015

When nix-env -e is used in a script it will crash dump:

$ file core
core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from '/home/gleber/.nix-profile/bin/nix-env -f -e nodejs-keybase

If I run it manually it works without issues. I have core at hand, but it seems that nix-env is stripped and gdb doesn't really show much.

@gleber
Copy link
Contributor Author

gleber commented Nov 22, 2015

I've just found that it does not abort if replace:

 nix-env -f '\<nixpkgs\>' -e "$pkg" # 2>&1 | grep -q "uninstalling"

with just

nix-env -f '\<nixpkgs\>' -e "$pkg"

@gleber
Copy link
Contributor Author

gleber commented Nov 22, 2015

It looks like nix-env does not handle well when it's stderr/stdout is abruptly closed (what's what grep -q does if it finds a match)

@stale
Copy link

stale bot commented Feb 15, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 15, 2021
@stale
Copy link

stale bot commented May 1, 2022

I closed this issue due to inactivity. → More info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants