FS#53240 - [bind] named process hangs on startup
Attached to Project:
Arch Linux
Opened by Tim Dean (tpdean) - Friday, 10 March 2017, 18:31 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 14 March 2017, 21:27 GMT
Opened by Tim Dean (tpdean) - Friday, 10 March 2017, 18:31 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 14 March 2017, 21:27 GMT
|
Details
Description:
The named binary packaged in bind-9.11.0.P3-2-x86_64.pkg.tar.xz stopped working today on my server. The process seems to be hanging on startup. After a bit of debugging with strace, I found the following messages emitted prior to the hang: seccomp(SECCOMP_SET_MODE_STRICT, 1, NULL) = -1 EINVAL (Invalid argument) seccomp(SECCOMP_SET_MODE_FILTER, 0, {len=35, filter=0x23fccb0}) = 0 getpid() = ? I recompiled the source code without the --enable-seccomp configure flag, and the issue went away. Based on forum activity, I see other users having this issue as well: https://bbs.archlinux.org/viewtopic.php?id=223945 Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
Closed by Sébastien Luttringer (seblu)
Tuesday, 14 March 2017, 21:27 GMT
Reason for closing: Fixed
Additional comments about closing: bind-9.11.0.P3-3
Tuesday, 14 March 2017, 21:27 GMT
Reason for closing: Fixed
Additional comments about closing: bind-9.11.0.P3-3
# named -f -L /tmp/named.log -u named
i.e. by specifying a log file it works.
This comment posted in the Newbie Corner provides a temporary systemd fix:
https://bbs.archlinux.org/viewtopic.php?pid=1696446#p1696446
https://sourceware.org/git/?p=glibc.git;a=commit;h=c579f48edba88380635ab98cb612030e3ed8691e
Bind does not mark getpid as a valid syscall under seccomp...
A short search located:
https://github.com/voidlinux/void-packages/blob/master/srcpkgs/bind/patches/seccomp.patch