On 2023-01-05, Stuart Henderson <stu.li...@spacehopper.org> wrote:
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.

I set the kernel state as specified and made that directory. As
mentioned before, it should be about 5 days until it crashes again.
I will report back on po...@openbsd.org. I did not build dhcpcd with
debug symbols yet; but if I have to, then I will when the time comes.

One last thing that may be relevant is that when I run dhcpcd -U em0,
it sometimes times out. Furthermore, regardless if it times out,
/var/log/daemon always shows:

Jan  4 19:45:02 router dhcpcd[73253]: control command: dhcpcd -U em0
Jan  4 19:45:02 router dhcpcd[73253]: control_free: No such file or
directory

That control_free message is one of the messages that shows when it
crashes.

I normally have to run it multiple times until I can see the entire
output. When it times out, it always times out right before the dhcp6
information.

For example:

reason=CARRIER
interface=em0
protocol=link
if_configured=true
ifcarrier=up
ifmetric=0
ifwireless=0
ifflags=34883
ifmtu=1500

reason=RENEW
interface=em0
protocol=dhcp
ip_address=71.229.183.31
subnet_cidr=22
network_number=71.229.180.0
subnet_mask=255.255.252.0
routers=71.229.180.1
broadcast_address=255.255.255.255
dhcp_lease_time=345600
dhcp_message_type=5
dhcp_server_identifier=96.113.84.152
dhcp_renewal_time=172800
dhcp_rebinding_time=302400

reason=ROUTERADVERT
interface=em0
protocol=ra
nd1_from=fe80::201:5cff:fe63:ee46
nd1_acquired=772413
nd1_now=772414
nd1_hoplimit=64
nd1_flags=MO
nd1_lifetime=1800
nd1_prefix_information1_length=64
nd1_prefix_information1_flags=
nd1_prefix_information1_vltime=604800
nd1_prefix_information1_pltime=302400
nd1_prefix_information1_prefix=2001:558:4070:83::
nd1_prefix_information2_length=64
nd1_prefix_information2_flags=
nd1_prefix_information2_vltime=604800
nd1_prefix_information2_pltime=302400
nd1_prefix_information2_prefix=2001:558:5021:32::
nd1_prefix_information3_length=64
nd1_prefix_information3_flags=
nd1_prefix_information3_vltime=604800
nd1_prefix_information3_pltime=302400
nd1_prefix_information3_prefix=2001:558:6040:83::
nd1_prefix_information4_length=64
nd1_prefix_information4_flags=
nd1_prefix_information4_vltime=604800
nd1_prefix_information4_pltime=302400
nd1_prefix_information4_prefix=2001:558:803a:47::

dhcpcd_readdumptimeout

Reply via email to