-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go 1.19 binaries that use @resources
SystemCallFilter crashing on startup due to SECCOMP failure
#197443
Comments
#197379 looks like it could a fix for this? (Update: Confirmed this fixes it.) Also, we should look into:
|
I think https://github.com/NixOS/nixpkgs/blob/f36801e4052c4b50c4d1df591d28fe9e1992a54f/nixos/tests/dnscrypt-proxy2.nix should have stronger assertions, e.g. that dnscrypt-proxy2 manages to listen on port 43 ( |
Hypothesis: A recent Go runtime update that now calls setrlimit? (Update: Reverting 0c7a6a0. didn't stop the issue occurring) |
Motivation: Ensure this test catches startup failures such as NixOS#197443
It's probably introduced in Go 1.19 because I didn't find significant changes on systemd side. We'd expect this kind of issues popping out in the near future. |
Confirmed. Changing dnscrypt2-proxy to use Go 1.18 fixes this (but allowing golang/go@8427429 introduces the setrlimit syscall in an init function (matching the stack trace), released in Go 1.19. This issue should be closed once the following are merged: |
@resources
SystemCallFilter crashing on startup due to SECCOMP failure
The ACME module has long been an important part of every nixos server deployment and we should therefore make sure the tests are working as expected before allowing a channel bump to happen. Related: NixOS#197443
The ACME module has long been an important part of every nixos server deployment and we should therefore make sure the tests are working as expected before allowing a channel bump to happen. Related: #197443
This also affects miniflux. |
Some Go programs crashed but some didn't. For example shiori has |
cc @minijackson Could you take a look at |
cc @techknowlogick |
cc @ehmry Could you take a look at |
I think I've caught 'em all. |
So, anything left? |
Nothing :) |
Great work @MidAutumnMoon for searching for all the occurrences of this, and fixing them before users noticed! |
And thank @tomfitzhenry for sorting out this issue and reviewing changes. |
See the discussion below the original PR[1] and NixOS#197443 for more context. I guess I missed that upon review because the branch was too old and I cherry-picked the commit onto my deployment branch which is based on 22.05. Sorry for that! [1] NixOS#162784 (comment)
See the discussion below the original PR[1] and NixOS#197443 for more context. I guess I missed that upon review because the branch was too old and I cherry-picked the commit onto my deployment branch which is based on 22.05. Sorry for that! [1] NixOS#162784 (comment)
Describe the bug
On 95aeaf8 (nixos-unstable), services.dnscrypt-proxy2 is crashing (core dumping) on startup, due to SECCOMP error.
Steps To Reproduce
Steps to reproduce the behavior:
nix-build -A driverInteractive nixos/tests/dnscrypt-proxy2.nix && ./result/bin/nixos-test-driver
The tests succeeds https://hydra.nixos.org/build/196222051 but dnscrypt-proxy2 actually fails to start.
Excerpt from VM log:
From dmesg:
Expected behavior
dnscrypt-proxy2 should startup, and listen for DNS requests.
Notify maintainers
@joachifm
The text was updated successfully, but these errors were encountered: