You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: the dump-db round trip runs the host /bin/sh, which the ASAN job cannot load #121
tests/nanopynix/test_store_dump_db.py::test_the_registration_makes_a_store_that_never_saw_the_paths_valid
fails in all four ASAN jobs, on every run:
E AssertionError: exited 1
E --- stderr ---
E sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_X86_64_PLT' not found (required by /nix/store/qqiqd3ah10x8hzsif4j1y4xc1miw23nx-glibc-2.42-67/lib/libdl.so.2)
Run 31043196896, jobs 92432293843 (nix_2_35), 92432293907 (nix_2_34), 92432294037 (nix_2_31), 92432294044 (git).
Why
This is not a sanitizer report. It is the failure that tests/nanopynix/test_store_exec.py:36-52 already documents, in a second
place.
The ASAN build sets LD_PRELOAD to the sanitizer runtime
(nanopynix/tests.nix:115). LD_PRELOAD reaches every child. The runtime
links against the glibc of this closure, so a host program gets two glibcs:
its own libc.so.6 from /lib/x86_64-linux-gnu, and libdl, librt, libpthread and libm from the Nix closure. The Nix ones need a symbol
version that the host libc.so.6 does not carry, and the loader stops.
The test runs ["sh", "-c", "nix-store ... --load-db < registration"]
(line 163). sh is not on the PATH of the closure, so it resolves to the
host /bin/sh. bash does not have this problem in other tests, because the
closure supplies one.
The shell is there only to redirect a file into the stdin of nix-store.
Nothing in the test is about a shell.
Acceptance criteria
The test feeds the registration to nix-store --load-db with no host
program between them.
tests/support/subprocess_output.py grows the ability to write the stdin of
a child, and writes it while it drains both output pipes. A write that waits
for the child, and a child that waits for its output pipe, is the deadlock
the module already exists to prevent.
The four ASAN jobs pass this test.
nix/sanitizer.nix:33 records the same failure against the host git, and
answers it the same way: take the program from the closure, or do not take one
at all.
Activity
fix(tests): load the registration through stdin, and not through a ho…
fix(tests): load the registration through stdin, and not through a ho…
fix(tests): load the registration through stdin, and not through a ho…