!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

900 Members
For people hacking on the Nix package manager itself191 Servers

Load older messages


SenderMessageTime
14 Apr 2025
@aloisw:julia0815.de@aloisw:julia0815.deWhat Nix is running on the build machine?07:00:08
@aloisw:julia0815.de@aloisw:julia0815.de (I only see SCMP_ACT_ALLOW and SCMP_ACT_ERRNO in both NixOS/nix and Lix source code, which should not trigger the signal.) 07:03:13
@trofi:matrix.orgtrofigood point07:13:39
@dramforever:matrix.orgdramforeversome default action in seccomp?07:14:09
@dramforever:matrix.orgdramforeverwhat package is this07:14:17
@dramforever:matrix.orgdramforeveralso what architecture07:14:51
@aloisw:julia0815.de@aloisw:julia0815.de The default action is set to SCMP_ACT_ALLOW in NixOS/nix and SCMP_ACT_ERRNO(ENOSYS) in Lix. 07:15:09
@dramforever:matrix.orgdramforeverno i mean, even lower level07:16:11
@dramforever:matrix.orgdramforeversome other check inside (the (c)bpf program generated by) libseccomp07:16:36
@dramforever:matrix.orgdramforever SCMP_FLTATR_ACT_BADARCH? 07:19:59
@aloisw:julia0815.de@aloisw:julia0815.dex86_32 architecture is allowed on x86_64 in both nixes.07:21:08
@dramforever:matrix.orgdramforeveryeah, we need a way to reproduce this07:22:24
@aloisw:julia0815.de@aloisw:julia0815.deI am currently trying to build the package on a Lix host.07:23:11
@dramforever:matrix.orgdramforeverwhat package is this again?07:23:58
@aloisw:julia0815.de@aloisw:julia0815.de pkgsCross.gnu32.nix on nixpkgs bc0b105ed11afa4d073e2b60ce6b94c1a72253bc 07:24:52
@aloisw:julia0815.de@aloisw:julia0815.de Shit --option enable-core-dumps true does not seem to be enough to get core dumps out of these SIGSYS crashes. 07:32:48
@trofi:matrix.orgtrofi systemd-system.conf / SystemCallArchitectures= claims to be able to send SIGSYS as well. If hydra happens to use SystemCallArchitectures = "native" for nix it could explain it. But it would break all of 32-bit chroots. 07:47:08
@aloisw:julia0815.de@aloisw:julia0815.deI am able to reproduce the issue without the daemon.07:48:16
@joerg:thalheim.ioMic92
In reply to @vcunat:matrix.org
... in case people don't feel like working on 32-bit specific issues a lot.
Could you open an issue in the nix repo for that?
08:13:49
@dramforever:matrix.orgdramforeverI figured out the SIGSYS thing. It is the wrong architecture. The tests are trying to run x86(-32) builds with x86_64 bash and coreutils10:30:25
@dramforever:matrix.orgdramforever * I figured out the SIGSYS thing. It is the wrong architecture problem. The tests are trying to run x86(-32) builds with x86_64 bash and coreutils 10:30:34
@dramforever:matrix.orgdramforeverWhatever's generating config.nix didn't expect the tests to be able to run on cross10:30:48
@dramforever:matrix.orgdramforever it's tests/functional/meson.build, but i don't know meson... 10:34:44
@dramforever:matrix.orgdramforever actually wait a second should we be running x86-32 builds? can we just run x86-64 builds in the tests? 10:36:56
@dramforever:matrix.orgdramforevermore generally if building with (build = B, host = H) and H is runnable on B then run checks and inside the checks we run builds with system = B instead of system = H. does this work? just an idea10:38:01
@dramforever:matrix.orgdramforeverbonus: ... it seems to fix the gc-auto problem as well?10:43:57
@aloisw:julia0815.de@aloisw:julia0815.deOh so this is the nested x86_32 sandbox disallowing x86_64 syscalls? That would totally make sense.10:44:00
@dramforever:matrix.orgdramforeverbooo that one also doesn't satisfy the seccomp10:49:49
@dramforever:matrix.orgdramforever* booo that one also doesn't satisfy the seccomp rules10:49:50
@dramforever:matrix.orgdramforeveri was looking on the issue tracker and apparently it's possible to get it without cross? https://github.com/NixOS/nix/issues/1128412:21:01

Show newer messages


Back to Room ListRoom Version: 6