-
Notifications
You must be signed in to change notification settings - Fork 339
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
Cannot import pkgs.glibc
in flake with devenv
#486
Comments
@aaronmondal what happens if you try adding |
@thenonameguy Same issue. I'm not entirely sure why, but several hours after experimenting a bit with Maybe that was just a coincidence though. Is there a chance this is leaking memory somehow in a way that triggers the kernel to force a shut down? |
The only overnight running process (that can leak memory continuously) is the nix-daemon process running as root. |
Yes. Via the |
@thenonameguy Random guess: Could it be that devenv uses |
Interesting idea! Can you try setting this as your inputs:
nixpkgs:
url: github:NixOS/nixpkgs/nixpkgs-unstable
devenv:
url: github:thenonameguy/devenv/feat/stripped-shell And seeing if the problem persists? @aaronmondal |
Ahh yes this seems to work! Using your fork appears to make things work. So I think #507 will fix this issue. |
The issue here is that the naked shell is setting This affects all binaries with runtime dependencies built with nix. The solution is to,
, which is what #507 does by using Fun fact, Domen and I have somehow run into the library path issue three times in the last week, all in entirely different contexts 😂 cc @domenkozar |
Can you try #745 |
Just tried to import
I am happy to privde more info on this issue if needed and thanks for the amazing work! |
@Nick1296 could you provide more information on what OS/platform are you? And the exact |
I tried importing glibc with devenv 0.6.3 on NixOs 23.11 (where I get a segfault). I am happy to do more tests if you need me to. |
Describe the bug
While porting the Nix flake in rules_ll to devenv, I found that
pkgs.glibc
in thepackages
section will lead tonix develop
hanging indefinitely on startup.Seems depending on glibc somehow causes binaries to use an incompatible version. In my case I think this can be worked around by adding paths to glibc headers and library in scripts manually and passing that as environment variables, but the current behavior doesn't seem like it's WAI.
To Reproduce
flake.lock
Version
nix version 2.13.3
In case it matters: my host glibc is 2.36-r7 p9 from Gentoo which is incompatible with glibc-2.35-224 from nix.
The text was updated successfully, but these errors were encountered: