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

libuv fails to build on certain systems #107657

Closed
flokli opened this issue Dec 26, 2020 · 4 comments
Closed

libuv fails to build on certain systems #107657

flokli opened this issue Dec 26, 2020 · 4 comments
Labels
0.kind: bug Something is broken

Comments

@flokli
Copy link
Contributor

flokli commented Dec 26, 2020

Describe the bug
I happened to have rebuilt libuv on my machine while testing a PR (#98915 (comment)), and it failed. I thought it was due to that PR (cause on nixpkgs master it wasfetched it from the binary cache). I built master again with nix-build --check libuv, and was able to also get the build to fail there.

I suspected this to be somewhat CPU related. My workstation has a AMD Ryzen 9 3900X. On another machine (Intel Xeon CPUs) I seem to be able to build it.

To Reproduce
Steps to reproduce the behavior:

  1. nix-build --check libuv on current master
not ok 72 - fs_fstat
# exit code 134
# Output from process `fs_fstat`:
# Assertion failed in test/test-fs.c on line 1389: s->st_dev == (uint64_t) t.st_dev

Expected behavior
I'd expect it to build.

@flokli flokli added the 0.kind: bug Something is broken label Dec 26, 2020
@yorickvP
Copy link
Contributor

No reason to think this is cpu related. https://github.com/libuv/libuv/blob/v1.x/test/test-fs.c#L1439 , might be FS, kernel or env related. Works 4/4 times on my 3950x

@flokli flokli changed the title libuv fails to build on certain CPUs libuv fails to build on certain systems Dec 26, 2020
@flokli
Copy link
Contributor Author

flokli commented Dec 26, 2020

/run/booted-system -> /nix/store/kznh8cfblpm573w2v8q7xnx7rq86l6sv-nixos-system-ws-21.03.git.3aac2c14a8dM
/run/booted-system/kernel -> /nix/store/j0rl7znhy3azfmgf7yj9xv9ihqp30sbm-linux-5.10.2/bzImage
system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.10, channels(root): "nixos-20.09pre230335.9480bae3370", channels(flokli): "nixpkgs-21.03pre255600.24eb3f87fc6", nixpkgs: /home/flokli/.nix-defexpr/channels/nixpkgs

@flokli
Copy link
Contributor Author

flokli commented Dec 26, 2020

Okay, after a reboot (same kernel), this doesn't happen anymore. This is super scary. Next system will probably be one with ECC RAM 🤦

@flokli flokli closed this as completed Dec 26, 2020
@vcunat
Copy link
Member

vcunat commented Mar 25, 2022

I found another assertion in the test repeatedly failing on Hydra, so I disabled it in 173de4e

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

3 participants