-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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-channel segfault: Fatal error: glibc detected an invalid stdio handle #2733
Comments
For me this looks to be like a curl issue. I have a coredump as well, and I can enable debug symbols if necessary. I'm hexa- on #nixos.
|
I can reproduce when running as root in a systemd service with nix 2.2.2 on NixOS 19.03.172866.4649b6ef4b5 (Koi). The command is: |
This happened to me when installing nix on CircleCI (doesn't happen deterministically, previous installs succeeded): https://circleci.com/gh/nh2/static-haskell-nix/4
Apparently the currently known workaround is to retry :( |
Encountered the same segfault and dump as @mweinelt posted, in my case while invoking a |
I was able to reproduce this multiple times at the same step in a CI (while having multiple substituters present btw), now trying to reproduce with a Nix version having debug symbols enabled to get a more detailled coredump. However, as CI is flaky due to other reasons too, and nix pretty slow due to |
It's notable that this occurs very frequently (like 50% of the time?) just by running the install script on an azure pipelines ubuntu machine if that helps with anyone trying to reproduce it. |
So, we managed to get somewhat better setup to reproduce, and were able to drill it down a bit:
|
TLDR: Setting Note that won't affect nix-channel calls during installation, so not sure yet how to fix that. |
I also see this in unattended startup scripts installing nix, here during a
I'm pretty convinced by now this might have something to do with how stdout and stderr are connected, and whether it's a terminal. |
I was not able to reproduce crash with OP instructions, but I found that removing ~/.cache/nix makes the problem occur more often:
I also confirm crash in |
This should be fixed in Nix 2.3.3 (which links against curl 7.68.0). |
This patch works around an old problem in libcurl, when using HTTP/2. The problem was fixed with nix version 2.3.3, see NixOS/nix#2733 (comment).
This patch works around an old problem in libcurl, when using HTTP/2. The problem was fixed with nix version 2.3.3, see NixOS/nix#2733 (comment). CHANGELOG_BEGIN CHANGELOG_END
This patch works around an old problem in libcurl, when using HTTP/2. The problem was fixed with nix version 2.3.3, see NixOS/nix#2733 (comment). CHANGELOG_BEGIN CHANGELOG_END
This patch works around an old problem in libcurl, when using HTTP/2. The problem was fixed with nix version 2.3.3, see NixOS/nix#2733 (comment). CHANGELOG_BEGIN CHANGELOG_END
I can provide more info, and a core dump if needed, just ask here or in #nixos.
The text was updated successfully, but these errors were encountered: