NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.87k stars 13.94k forks source link

fd: error while loading shared libraries: /nix/store/8wmrcw0p70bv0ivi316bysjfan4caib9-jemalloc-5.3.0/lib/libjemalloc.so.2: cannot allocate memory in static TLS block #315628

Open dg-nvm opened 4 months ago

dg-nvm commented 4 months ago

Describe the bug

when running /nix/store/sqh4ip8s997vrlm2nbvnbp4k6sri2whs-fd-8.7.1/bin/fd

fd: error while loading shared libraries: /nix/store/8wmrcw0p70bv0ivi316bysjfan4caib9-jemalloc-5.3.0/lib/libjemalloc.so.2: cannot allocate memory in static TLS block

Seems the library is compiled without some flag that other distros incorporate. This is problem with other binaries too, I hit that with dig, reinstalling normal version from apt works fine.

Steps To Reproduce

Steps to reproduce the behavior:

  1. install fd
  2. run it fd test

Expected behavior

Program runs

Screenshots

Additional context

Add any other context about the problem here.

Notify maintainers

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.146.1-microsoft-standard-WSL2, Ubuntu, 23.10 (Mantic Minotaur), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.1`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

dg-nvm commented 4 months ago

also happening when force-upgrading:

nix-env -iA nixpkgs.fd
installing 'fd-10.1.0'
these 2 paths will be fetched (1.37 MiB download, 4.96 MiB unpacked):
  /nix/store/5gd7h1ghka73702j1vj4anckhayhnm3r-fd-10.1.0
  /nix/store/kli3hg1rll86madzxlj9prfy3j3vgqim-jemalloc-5.3.0
copying path '/nix/store/kli3hg1rll86madzxlj9prfy3j3vgqim-jemalloc-5.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/5gd7h1ghka73702j1vj4anckhayhnm3r-fd-10.1.0' from 'https://cache.nixos.org'...
building '/nix/store/fi4pwnrvrnvjhbifln5m0cinc937yxnw-user-environment.drv'...
# /nix/store/5gd7h1ghka73702j1vj4anckhayhnm3r-fd-10.1.0/bin/fd
/nix/store/5gd7h1ghka73702j1vj4anckhayhnm3r-fd-10.1.0/bin/fd: error while loading shared libraries: /nix/store/kli3hg1rll86madzxlj9prfy3j3vgqim-jemalloc-5.3.0/lib/libjemalloc.so.2: cannot allocate memory in static TLS block