-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 build
for first-time home-manager build fails with address boundary error (SIGSEGV)
#6554
Comments
I discovered I can use Keeping this issue up since it affects unstable. |
Thanks for the report. Looks like something fishy's going in the git fetcher (though I've no idea what). I can't reproduce though because the repo is using git-crypt for some files so I can't evaluate it. Do you think you could add a branch with all the encrypted files replaced by a (dummy) clear version to see whether it can be reproduced? |
I wonder whether this is the same issue as #6554 (which is also about a sigsev related to the git fetcher) |
The git fetcher code used to dereference the (potentially empty) `ref` input attribute. This was magically working, probably because the compiler somehow outsmarted us, but is now blowing up with newer nixpkgs versions. Fix that by not trying to access this field while we don't know for sure that it has been defined. Fix #6554
The git fetcher code used to dereference the (potentially empty) `ref` input attribute. This was magically working, probably because the compiler somehow outsmarted us, but is now blowing up with newer nixpkgs versions. Fix that by not trying to access this field while we don't know for sure that it has been defined. Fix #6554 (cherry picked from commit 027fd45)
Original posts here and here (very sorry about the spam)
Describe the bug
So I recently wiped my laptop to change its filesystem from btrfs to ext4, hoping for a little performance improvement (every bit counts at its age). I was able to re-partition my disk and re-install NixOS smoothly on my laptop. (Here's my NixOS config.)
But I cannot build my home-manager configuration.
I manage my home-manager config with flakes. To build it for the first time on a fresh system, I'm trying to use
nix build --no-link ~/.config/nixpkgs/#homeConfigurations.<machine_name>.activationPackage
. However, this fails with an address boundary error (SIGSEGV).Steps To Reproduce
Steps to reproduce the behavior:
nixUnstable
. My system config above now usesnixFlakes
, which is not affected by this bug.~/.config/nixpkgs
cd ~/.config/nixpkgs
nix build --no-link ~/.config/nixpkgs#homeConfigurations.littlepony.activationPackage
You should get something like
nix build ... terminated by SIGSEGV (Address boundary error)
Expected behavior
I should be able to build my home-manager configuration successfully
Additional context
I haven't found anything online about this. I've tried running it with
env GC_DONT_GC=1
, but that didn't fix the issue.Here's gdb output and an strace that might help.
Thank you in advance for any help, workarounds, or suggestions :)
The text was updated successfully, but these errors were encountered: