!LemuOOvbWqRXodtSsw:nixos.org

NixOS Reproducible Builds

533 Members
Report: https://reproducible.nixos.org Project progress: https://github.com/orgs/NixOS/projects/30119 Servers

Load older messages


SenderMessageTime
5 Sep 2021
@baloo_:matrix.orgbaloothank you so much for the log!20:10:51
6 Sep 2021
@baloo_:matrix.orgbalooI think I found an ... ugly fix22:59:46
@baloo_:matrix.orgbaloo
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <stddef.h>

void preloadNSS() {
        struct addrinfo *res = NULL;

        char * previous_env = getenv("LOCALDOMAIN");
        setenv("LOCALDOMAIN", "invalid", 1);
        if (getaddrinfo("this.pre-initializes.the.dns.resolvers.invalid.", "http", NULL, &res) != 0) {
            if (res) freeaddrinfo(res);
        }
        if (previous_env)
             setenv("LOCALDOMAIN", previous_env, 1);
        else
             unsetenv("LOCALDOMAIN");
}

int main() {
    preloadNSS();
}

This forces nss to make a dns lookup, and to load the nss_dns.so

23:03:27
@baloo_:matrix.orgbaloo(ugly because, I need to change the environment, so there is a slight delay during which it gets modified)23:04:36
@baloo_:matrix.orgbalooanyone willing to try a proper patch? :D23:06:13
@baloo_:matrix.orgbalooI still don't have a proper reproduction environment23:06:24
@baloo_:matrix.orgbaloohttps://github.com/NixOS/nix/pull/522423:20:14
7 Sep 2021
@baloo_:matrix.orgbalooso the single filesystem theory does not hold, the tests vms have a layout like:01:20:19
@baloo_:matrix.orgbaloo
client # /dev/vda on / type ext4 (rw,relatime)
client # store on /nix/.ro-store type 9p (rw,relatime,dirsync,loose,access=client,trans=virtio)
client # tmpfs on /nix/.rw-store type tmpfs (rw,relatime,mode=755)
client # shared on /tmp/shared type 9p (rw,relatime,sync,dirsync,access=client,trans=virtio)
client # xchg on /tmp/xchg type 9p (rw,relatime,sync,dirsync,access=client,trans=virtio)
client # overlay on /nix/store type overlay (rw,relatime,lowerdir=/mnt-root/nix/.ro-store,upperdir=/mnt-root/nix/.rw-store/store,workdir=/mnt-root/nix/.rw-store/work)
client # overlay on /nix/store type overlay (ro,relatime,lowerdir=/mnt-root/nix/.ro-store,upperdir=/mnt-root/nix/.rw-store/store,workdir=/mnt-root/nix/.rw-store/work)
01:20:38
@baloo_:matrix.orgbaloo

interestingly, my nix-daemon does mount

[pid 42542] mount("/nix/store/9bh3986bpragfjmr32gay8p95k91q4gy-glibc-2.33-47", "/nix/store/r4rn52pvm83frvq2q4a2zb3vdq73l5x2-example.com.drv.c
hroot/nix/store/9bh3986bpragfjmr32gay8p95k91q4gy-glibc-2.33-47", 0x7f833016bef1, MS_BIND|MS_REC, NULL) = 0
01:28:31
@baloo_:matrix.orgbaloowhich explains why I do not see the bug01:28:38
@baloo_:matrix.orgbaloohaha01:35:46
@baloo_:matrix.orgbalooI can reproduce01:35:49
@baloo_:matrix.orgbaloo!01:35:51
@baloo_:matrix.orgbaloo
01:36:07
@baloo_:matrix.orgbaloo *
-  boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
+  #boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
01:36:18
@baloo_:matrix.orgbaloothis breaks fetchurl for me01:36:26
@tomberek:matrix.orgtomberekthat is odd02:56:36
@baloo_:matrix.orgbalooyou tell me about it03:02:22
@tomberek:matrix.orgtombereki had a hunch that it has to do with old/new nix versions vs nix-daemon versions. So i'm exploring that03:04:03
@baloo_:matrix.orgbaloogot a nixos/test to reproduce03:14:20
@baloo_:matrix.orgbaloohttps://github.com/NixOS/nixpkgs/pull/135689/files03:17:59
@baloo_:matrix.orgbalooif you'd like03:18:01
@tomberek:matrix.orgtomberekadd to "all-tests.nix"?03:22:51
@baloo_:matrix.orgbaloofirst time actually using nixos tests :D03:26:15
@tomberek:matrix.orgtomberek(that will make it super easy to reproduce in a flake-y manner)03:30:42
@baloo_:matrix.orgbaloothis fixes the test https://gist.github.com/baloo/c1b1c1fd8fe1f034280cb25225f06fa003:33:48
@baloo_:matrix.orgbaloo \o/ 03:33:51
@tomberek:matrix.orgtomberek nix build github:baloo/nixpkgs/baloo/tests/nix-fetch#nixosTests.nix-fetch 03:35:25
@baloo_:matrix.orgbaloooooooohhh that's nice03:35:51

Show newer messages


Back to Room ListRoom Version: 6