-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
nixFlakes's nix-build segfaults in boehm-gc #3931
Comments
I was able to reproduce this error on my machine with the given instruction. |
So the segfault address
|
Here is the output of gef, which also includes registers, assembly etc: https://dl.thalheim.io/d9A29KQJSmlMY6KF4tfPOg/2020-08-14_00-10.png |
Here is the line in Nix where it crashes: nix/src/libexpr/eval-inline.hh Line 92 in e11bbfb
|
From the assembly instruction it seems like it zero initialize the memory but goes beyond the heap. |
Right before it crash I see a lot of invocations of
|
I got the same segfault today on nix |
For others who land on this page. Until there's a proper fix, you may try adding
this seems to allow IFD to complete successfully for me |
I marked this as stale due to inactivity. → More info |
Stale yes, but still needs to be fixed. |
I marked this as stale due to inactivity. → More info |
I think this has been addressed but I cannot point to a specific commit. |
Yeah, this may have been fixed by 5740924 so I'll close this. |
Describe the bug
I'm using Nix version 2.4pre20200721_ff314f1, and I'm trying to build my host (does not use Flakes). It crashes randomly with over 90% reproducibility. I can only reproduce with nix-build running as root.
nix-env --version
outputSteps to reproduce
nix-build --no-out-link -A external.nixpkgs.release-20-03.path
and record its output.sudo --preserve-env=RELEASE gdb --args nix-build {path_from_above}/nixos -A system -k -I nixos-config={path_to_dotshabka}/hosts/achilles/configuration.nix --show-trace
Additional context
The following is only a part of the trace. The entire trace is available here.
gdb backtrace
Memory mapping with
info proc mappings
can be seen here.The text was updated successfully, but these errors were encountered: