On 2023-01-05, Zack Newman <z...@philomathiclife.com> wrote: > For the past 1.5 years or more, I have dealt with consistent > terminations of dhcpcd(8). I "solved" this by having a ksh(1) script > that runs every 30 minutes that starts it anytime it is not running. > > /var/log/daemon shows the following when it terminates: > > Jan 4 11:00:37 router dhcpcd[34862]: ps_inet_dodispatch: Connection > reset by peer > Jan 4 11:00:37 router dhcpcd[34862]: control_free: No such file or > directory > Jan 4 11:00:37 router dhcpcd[34862]: ps_sendpsmmsg: Destination > address required > Jan 4 11:00:37 router dhcpcd[34862]: ps_dostop: Destination address > required > > My router is connected to a cable modem. The modem's logs don't show > anything when this happens. Is this a bug in dhcpcd?
That looks like a forked dhcpcd process may have crashed. Assuming you don't already have a dhcpcd.core somewhere from a non-suid process, try sysctl.kern.nosuidcoredump=2, mkdir /var/crash/dhcpcd, and see if a $PID.core shows up there. You may need to build dhcpcd with debug symbols to get a useful backtrace, see https://www.openbsd.org/faq/ports/ports.html#Backtrace It's probably better to follow-up on ports@ than misc.