Re: dhcpcd dumplease reports "dhcpcd not running"
Roy Marples
Wed Nov 11 11:36:42 2020
On 10/11/2020 09:11, Roy Marples wrote:
Hi Matthew
On 09/11/2020 19:45, Matthew Clarkson wrote:
After applying the patch, I am able to dump the lease if dhcpcd is configured
with --disable-privsep.
With privsep enabled I am seeing the message "main: control_send: Broken pipe"
the first time attempting to dump the lease and "dhcpcd is not running
message" on subsequent attempts.
Attached is strace of the first attempt showing EPIPE error when trying to
write to the .unpriv socket, a listing of the run directory, and strace of the
second dumplease attempt showing ECONNREFUSED when trying to connect to the
socket (presumably because the first write attempt failed.
Any thoughts are appreciated.
Sounds like the master dhcpcd process crashed!
This is bad. I can't even replicate your problem.
Could you describe which OS you are using please?
To get more debug info we will probably need to strace -f the main dhcpcd
process rather than the calling client. FWIW, this works fine for me on
NetBSD-current and Devuan (pretty fresh).
I wonder if it's a new SECCOMP failure.
It works fine for me on AMD64. What CPU/libc/distro are you seeing this on?
Try adding -DSECCOMP_FILTER_DEBUG to CPPFLAGS and maybe dhcpcd can log more.
Roy
Archive administrator: postmaster@marples.name