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 build for first-time home-manager build fails with address boundary error #173650

Closed
muni-corn opened this issue May 19, 2022 · 2 comments
Closed
Labels
0.kind: bug Something is broken

Comments

@muni-corn
Copy link
Contributor

muni-corn commented May 19, 2022

Describe the bug

Original Reddit post

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:

  1. You may need a fresh install NixOS with my system config (linked above). Also, enable nix-command and flakes experimental features.
  2. Clone home-manager config (also linked above) to ~/.config/nixpkgs
  3. cd ~/.config/nixpkgs
  4. 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 an strace that might help.

Thank you in advance for any help, workarounds, or suggestions :)

Notify maintainers

@rycee maybe

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.39, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.9.0pre20220512_d354fc3`
 - channels(harrison): `"home-manager, nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@muni-corn muni-corn added the 0.kind: bug Something is broken label May 19, 2022
@muni-corn
Copy link
Contributor Author

Update: Here's gdb output of running the command.

@muni-corn
Copy link
Contributor Author

Sorry all, this issue belongs in the nix repository, not nixpkgs. Please visit the issue linked above, nix#6554, instead.

@muni-corn muni-corn closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant