!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

853 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.179 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
4 Oct 2025
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Mic92: 21:33:25
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) * Mic92, John Ericson my suspect for https://hydra.nixos.org/build/308585653/nixlog/3 (https://github.com/NixOS/nix/issues/14141) is https://github.com/NixOS/nix/commit/e06968ec2586a9ccd18e58d1796de6d9ac628bc6 21:34:17
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Trying to repro with sanitizers, but not much luck yet. Seems to be fucky UB.21:35:54
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)I think I've run into a very fucky store path corruption as well while dogfooding master. Must be the same root cause21:47:58
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Or was it https://github.com/NixOS/nix/pull/14022/commits maybe?22:12:01
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Alternate theory. There's UB somewhere in the code base and with the switch to -fno-semantic-interposition GCC is happily optimising the heck out of things. 23:42:23
5 Oct 2025
@joerg:thalheim.ioMic92 @xokdvium:matrix.org: would that be catched if someone runs nix with ubsan in their hosy daemon? 04:44:34
@joerg:thalheim.ioMic92 Sergei Zimmerman (xokdvium): https://github.com/NixOS/nix/pull/14155 05:31:15
@joerg:thalheim.ioMic92for sunsetting mergify05:31:23
@maxwell_dev:mozilla.orgMiku joined the room.09:31:43
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Ok managed to hit this locally at least once. My suspicion is that it's a use-after-free and with musl those blow up more predictably.12:29:17
@shine:proqqul.netTaeer Bar-Yamdon't we run things through ASAN at some point?14:04:58
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Yeah we do now, but that's not enough it seems14:05:22
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)

I think clang-tidy managed to dig up something relevant:

../src/libstore/build/derivation-check.cc:85:35: warning: Dereference of undefined pointer value [clang-analyzer-core.NullDereference]
   85 |             if (checks.maxSize && info.narSize > *checks.maxSize)
../src/libstore/build/derivation-check.cc:117:31: warning: 4th function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
  117 |                         throw BuildError(
../src/libstore/build/derivation-check.cc:181:45: warning: 2nd function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
  181 |                     if (auto outputChecks = get(checksPerOutput, outputName))
14:08:22
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Yeah turned out to be false-positives19:22:42
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Considering just how hard it's to reproduce (1/50 runs if lucky) I've opened reverts for the prime suspects https://github.com/NixOS/nix/pull/14159. John Ericson 19:24:35
6 Oct 2025
@joerg:thalheim.ioMic92I was wondering what we should fuzz with nix, but now I think fuzzing nixpkgs evaluations would be a good start. 09:12:38
@joerg:thalheim.ioMic92Do we eval nixpkgs/flake-regressions with ASAN enabled? 09:14:24
@monadicflow:matrix.orgAkshay Sachdeva joined the room.13:45:39
@fzakaria:one.ems.hostfzakariafuzz with AFLP?16:46:18
@fzakaria:one.ems.hostfzakariacan you compile Nix using the AFLP gcc ?16:46:38
@fzakaria:one.ems.hostfzakariaI mean AFL*16:47:16
@fzakaria:one.ems.hostfzakaria I think im running AFL on nix eval 17:24:45
@lovesegfault:matrix.orglovesegfault changed their profile picture.17:33:01
@lovesegfault:matrix.orglovesegfault changed their profile picture.17:33:46
@fzakaria:one.ems.hostfzakariahow do you build it with ASAN too?18:04:35
@fzakaria:one.ems.hostfzakariaoh i see it in doc18:05:55
@fzakaria:one.ems.hostfzakariai was trying to build just 'debug' but i was hitting those FORTIFY_SOURCE warnings and build failures22:40:41

Show newer messages


Back to Room ListRoom Version: 6