Dnsmasq/dhcpd issue at system boot

Hello,
i have a problem i can't figure out with WAN connection.
Context:

  • i have an openwrt VM under proxmox (so x86 based). I'm using 23.05
  • just upgraded my internet connection from a ppoe connection (1G/100M) to a "strange" DHCPv6+MAP for IPv4 connection (2.5G/500M)

Good news: the connection works.
Bad news: at system bootup (every reboot) the connection "seems" up (it gets the ip addresses), but does not work (every dns resolve gives a "bad address" error), but if i just restart the interface everything starts back ok.
From system logs, i see something strange on dnsmasq and dhcpd, but i'm not good enough to understand what this comes from. dhcpd also dies with a segmentation error.
Here is the log, if you have any idea..
Thanks

Sun Jul  7 06:42:41 2024 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Sun Jul  7 06:42:41 2024 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Sun Jul  7 06:42:41 2024 daemon.info dnsmasq[1]: started, version 2.90 cache disabled
Sun Jul  7 06:42:41 2024 daemon.info dnsmasq[1]: DNS service limited to local subnets
Sun Jul  7 06:42:41 2024 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack no-ipset nftset auth cryptohash DNSSEC no-ID loop-detect inotify dumpfile
Sun Jul  7 06:42:41 2024 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Sun Jul  7 06:42:41 2024 daemon.err dhcpcd[1830]: no such user dhcpcd

Sun Jul  7 06:42:41 2024 kern.info kernel: [    5.325683] dhcpcd[1830]: segfault at 18 ip 0000000000430da2 sp 00007fff3c850ef8 error 4 in dhcpcd[409000+30000]
Sun Jul  7 06:42:41 2024 kern.info kernel: [    5.327808] Code: 5a 83 c8 ff 5b 5d c3 48 c7 83 78 01 00 00 70 f1 43 00 48 89 ef 59 be 70 f1 43 00 5b 5d e9 05 78 fe ff 90 48 8b 87 70 04 00 00 <ff> 60 18 53 48 8b 87 70 04 00 00 48 89 fb 48 85 c0 74 53 85 f6 74

Sun Jul  7 06:42:41 2024 daemon.err odhcp6c[2268]: Failed to send RS (Network unreachable)

Sun Jul  7 06:42:42 2024 daemon.err odhcp6c[2268]: Failed to send SOLICIT message to ff02::1:2 (Network unreachable)
Sun Jul  7 06:42:43 2024 daemon.err odhcp6c[2268]: Failed to send SOLICIT message to ff02::1:2 (Network unreachable)
Sun Jul  7 06:42:43 2024 daemon.warn odhcpd[1905]: No default route present, overriding ra_lifetime!

Sun Jul  7 06:42:45 2024 daemon.err odhcp6c[2268]: Failed to send RS (Address not available)
Sun Jul  7 06:42:45 2024 kern.info kernel: [    8.912181] igc 0000:00:10.0 eth1: NIC Link is Up 2500 Mbps Full Duplex, Flow Control: RX
Sun Jul  7 06:42:45 2024 kern.info kernel: [    8.913688] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Sun Jul  7 06:42:45 2024 kern.info kernel: [    8.915208] IPv6: ADDRCONF(NETDEV_CHANGE): eth1.836: link becomes ready
Sun Jul  7 06:42:45 2024 daemon.err odhcp6c[2268]: Failed to send SOLICIT message to ff02::1:2 (Address not available)
Sun Jul  7 06:42:46 2024 daemon.err odhcp6c[2268]: Failed to send SOLICIT message to ff02::1:2 (Address not available)
Sun Jul  7 06:42:46 2024 daemon.err dhcpcd[3564]: no such user dhcpcd
Sun Jul  7 06:42:46 2024 daemon.err dhcpcd[3564]: main: control_open: Connection refused
Sun Jul  7 06:42:46 2024 daemon.info dhcpcd[3564]: dhcpcd-9.4.1 starting

Sun Jul  7 06:42:46 2024 daemon.err dhcpcd[3564]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:42:46 2024 daemon.err dhcpcd[3564]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:42:46 2024 daemon.err dhcpcd[3564]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:42:46 2024 kern.info kernel: [   10.388115] dhcpcd[3564]: segfault at 18 ip 0000000000430da2 sp 00007fffea771f58 error 4 in dhcpcd[409000+30000]
Sun Jul  7 06:42:46 2024 kern.info kernel: [   10.389170] Code: 5a 83 c8 ff 5b 5d c3 48 c7 83 78 01 00 00 70 f1 43 00 48 89 ef 59 be 70 f1 43 00 5b 5d e9 05 78 fe ff 90 48 8b 87 70 04 00 00 <ff> 60 18 53 48 8b 87 70 04 00 00 48 89 fb 48 85 c0 74 53 85 f6 74

Sun Jul  7 06:42:50 2024 daemon.warn odhcpd[1905]: A default route is present but there is no public prefix on lan thus we don't announce a default route by overriding ra_lifetime!
Sun Jul  7 06:42:51 2024 daemon.err dhcpcd[3996]: no such user dhcpcd
Sun Jul  7 06:42:51 2024 daemon.err dhcpcd[3996]: main: control_open: Connection refused
Sun Jul  7 06:42:51 2024 daemon.info dhcpcd[3996]: dhcpcd-9.4.1 starting

Sun Jul  7 06:42:51 2024 daemon.err dhcpcd[3996]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:42:51 2024 daemon.err dhcpcd[3996]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:42:51 2024 daemon.err dhcpcd[3996]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:42:51 2024 kern.info kernel: [   15.448664] dhcpcd[3996]: segfault at 18 ip 0000000000430da2 sp 00007fff4c6062c8 error 4 in dhcpcd[409000+30000]
Sun Jul  7 06:42:51 2024 kern.info kernel: [   15.449801] Code: 5a 83 c8 ff 5b 5d c3 48 c7 83 78 01 00 00 70 f1 43 00 48 89 ef 59 be 70 f1 43 00 5b 5d e9 05 78 fe ff 90 48 8b 87 70 04 00 00 <ff> 60 18 53 48 8b 87 70 04 00 00 48 89 fb 48 85 c0 74 53 85 f6 74

Sun Jul  7 06:42:55 2024 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Sun Jul  7 06:42:55 2024 daemon.info dnsmasq[1]: started, version 2.90 cache disabled
Sun Jul  7 06:42:55 2024 daemon.info dnsmasq[1]: DNS service limited to local subnets
Sun Jul  7 06:42:55 2024 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack no-ipset nftset auth cryptohash DNSSEC no-ID loop-detect inotify dumpfile
Sun Jul  7 06:42:55 2024 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus

Sun Jul  7 06:42:56 2024 daemon.err dhcpcd[5239]: no such user dhcpcd
Sun Jul  7 06:42:56 2024 daemon.err dhcpcd[5239]: main: control_open: Connection refused
Sun Jul  7 06:42:56 2024 daemon.info dhcpcd[5239]: dhcpcd-9.4.1 starting

Sun Jul  7 06:42:57 2024 daemon.err dhcpcd[5239]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:42:57 2024 daemon.err dhcpcd[5239]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:42:57 2024 daemon.err dhcpcd[5239]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:42:57 2024 kern.info kernel: [   20.709793] dhcpcd[5239]: segfault at 18 ip 0000000000430da2 sp 00007ffc4a6efe78 error 4 in dhcpcd[409000+30000]
Sun Jul  7 06:42:57 2024 kern.info kernel: [   20.710950] Code: 5a 83 c8 ff 5b 5d c3 48 c7 83 78 01 00 00 70 f1 43 00 48 89 ef 59 be 70 f1 43 00 5b 5d e9 05 78 fe ff 90 48 8b 87 70 04 00 00 <ff> 60 18 53 48 8b 87 70 04 00 00 48 89 fb 48 85 c0 74 53 85 f6 74
Sun Jul  7 06:43:02 2024 daemon.err dhcpcd[5393]: no such user dhcpcd
Sun Jul  7 06:43:02 2024 daemon.err dhcpcd[5393]: main: control_open: Connection refused

Sun Jul  7 06:43:02 2024 daemon.err dhcpcd[5393]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:43:02 2024 daemon.err dhcpcd[5393]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:43:02 2024 daemon.err dhcpcd[5393]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:43:02 2024 kern.info kernel: [   25.776685] dhcpcd[5393]: segfault at 18 ip 0000000000430da2 sp 00007ffcb3431988 error 4 in dhcpcd[409000+30000]
Sun Jul  7 06:43:02 2024 kern.info kernel: [   25.777821] Code: 5a 83 c8 ff 5b 5d c3 48 c7 83 78 01 00 00 70 f1 43 00 48 89 ef 59 be 70 f1 43 00 5b 5d e9 05 78 fe ff 90 48 8b 87 70 04 00 00 <ff> 60 18 53 48 8b 87 70 04 00 00 48 89 fb 48 85 c0 74 53 85 f6 74
Sun Jul  7 06:43:05 2024 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Sun Jul  7 06:43:06 2024 daemon.warn odhcpd[1905]: A default route is present but there is no public prefix on lan thus we don't announce a default route by overriding ra_lifetime!
Sun Jul  7 06:43:07 2024 daemon.err dhcpcd[5757]: no such user dhcpcd
Sun Jul  7 06:43:07 2024 daemon.err dhcpcd[5757]: main: control_open: Connection refused

Sun Jul  7 06:43:07 2024 daemon.err dhcpcd[5757]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:43:07 2024 daemon.err dhcpcd[5757]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:43:07 2024 daemon.err dhcpcd[5757]: ipv6_addaddr1: Permission denied

Sun Jul  7 06:43:07 2024 daemon.info procd: Instance dhcpcd::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
Sun Jul  7 06:43:07 2024 kern.info kernel: [   30.837941] dhcpcd[5757]: segfault at 18 ip 0000000000430da2 sp 00007fffa25b22e8 error 4 in dhcpcd[409000+30000]
Sun Jul  7 06:43:07 2024 kern.info kernel: [   30.838973] Code: 5a 83 c8 ff 5b 5d c3 48 c7 83 78 01 00 00 70 f1 43 00 48 89 ef 59 be 70 f1 43 00 5b 5d e9 05 78 fe ff 90 48 8b 87 70 04 00 00 <ff> 60 18 53 48 8b 87 70 04 00 00 48 89 fb 48 85 c0 74 53 85 f6 74

Sun Jul  7 06:43:17 2024 daemon.info dnsmasq[1]: started, version 2.90 cache disabled
Sun Jul  7 06:43:17 2024 daemon.info dnsmasq[1]: DNS service limited to local subnets
Sun Jul  7 06:43:17 2024 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack no-ipset nftset auth cryptohash DNSSEC no-ID loop-detect inotify dumpfile

Sun Jul  7 06:43:39 2024 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Sun Jul  7 06:43:50 2024 daemon.info dnsmasq[1]: started, version 2.90 cache disabled
Sun Jul  7 06:43:50 2024 daemon.info dnsmasq[1]: DNS service limited to local subnets
Sun Jul  7 06:43:50 2024 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack no-ipset nftset auth cryptohash DNSSEC no-ID loop-detect inotify dumpfile

i have "fixed" the problem with a script that after one minute from the boot checks if the interface is up and has a ipv6 address, restarting it, but honestly this is not the kind of "solutions" i kile :slight_smile:
any idea on how to debug further the segmentation fault of dhcpcd?
can i see the version in 23.05 that is dhcpcd 9.4.1, that seems the same version of master..
thanks