nix shell
does not restore default SIGPIPE handler #912
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
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#912
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
Title authored by @dramforever:matrix.org.
Steps To Reproduce
tr -dc '[:alnum:]' < /dev/urandom | head -c 64 > /dev/null
nix shell nixpkgs#hello
Expected behavior
The behavior should be the same both inside and outside of a shell, so probably something about
nix shell
needs to be changed.nix --version
output(
487b37291f
)Tested on macOS on
378b360
, does not repro. Unsure if yours is newer, seems that we have had a Situation with the versions getting into the derivation meaningfully.doesn't repro under linux either. lix never installs a non-default sigpipe handler, it only masks sigpipe—and
nix shell
definitely restores the signal mask it was started with before it exec's the inner shell.I'm able to reproduce this on a couple linux systems with
ae00b12983
.Would you be able to bisect this? It's really weird this is happening at all and I feel like that might be the strategy.
Yeah, I should be able to try bisecting it at some point in the next few days.