!UNVBThoJtlIiVwiDjU:nixos.org

Staging

392 Members
Staging merges | Running staging cycles: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Astaging-next+head%3Astaging-next-25.11 | Review Reports: https://malob.github.io/nix-review-tools-reports/127 Servers

Load older messages


SenderMessageTime
26 Jun 2026
@emilazy:matrix.orgemilyuh19:33:19
@emilazy:matrix.orgemilywell whatever that is was a recent merge19:33:23
@emilazy:matrix.orgemily libxml2… Grimmauld (any/all)? 19:33:27
@emilazy:matrix.orgemilyoh wait isn't this just the GC bug19:33:33
@emilazy:matrix.orgemilythere's a GC bug right?19:33:38
@hexa:lossy.networkhexacould be19:33:41
@hexa:lossy.networkhexawe can retry19:33:50
@emilazy:matrix.orgemily no libxml2 merges in a while 19:33:55
@grimmauld:m.grimmauld.deGrimmauld (any/all) github.com/NixOS/nixpkgs/pull/527525 was libxml2, and i did built to cmake and a bunch of python things on that 19:39:08
@emilazy:matrix.orgemilywhatever it was would have had to be in the last day19:39:24
@emilazy:matrix.orgemilyso pretty sure it's just the bug19:39:28
@emilazy:matrix.orgemilyoh I wonder if I know what the bug is19:39:51
@emilazy:matrix.orgemilyI actually ran into a GC bug recently19:40:02
@emilazy:matrix.orgemilyis it already diagnosed?19:40:12
@hexa:lossy.networkhexaI'm building on the community builder in parallel19:40:29
@emilazy:matrix.orgemilyI believe structured attributes + remote builders can result in deps being GC'd mid-build19:40:31
@emilazy:matrix.orgemilyby it I mean the GC bug19:40:36
@hexa:lossy.networkhexahttps://github.com/NixOS/infra/pull/1104 hm19:41:01
@emilazy:matrix.orgemilyok, not the bug I was thinking of19:41:59
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Remote builds are generally ugh... very racy yeah19:43:35
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Some work to be done there certainly19:43:49
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Specifically https://github.com/NixOS/nix/pull/15719, which I'll return to19:44:16
@emilazy:matrix.orgemily tl;dr normally materialized .drv keeps deps of a running build alive; in remote build scenario you don't necessarily have .drv; you are saved by the fact that /proc/*/environ is used as gcroots; but with structured attrs your builder's root process's /proc/*/environ doesn't contain the paths 19:44:22
@emilazy:matrix.orgemily but it does contain paths to .attrs.json/.attrs.sh admittedly 19:44:35
@emilazy:matrix.orgemilyBUT the builder user owns those and can delete them19:44:40
@emilazy:matrix.orgemilyso you can stash a path from your structured attrs, delete those files, wait for a GC, use after free19:44:54
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)The issue in question is probably that the build hook doesn't root inputs befory copying those over19:44:57
@emilazy:matrix.orgemily(I forgot that you had to actually delete the structured attrs files to exploit this)19:45:07
@emilazy:matrix.orgemily(which admittedly makes it unlikely to happen in the real world, but it's not great!)19:45:23
@emilazy:matrix.orgemilyoh I see dram is way ahead of me yeah19:45:52

Show newer messages


Back to Room ListRoom Version: 6