Frequent odhcpd crashes in 22.03.2

Hi,

I'm using odhcpd and unbound on an PC Engines APU2 (x86_64 target). odhcpd is configured to add DHCP leases into the unbound DNS. This worked fine until the upgrade to 22.03. After the upgrade, I'm almost daily experiencing problems with DNS resolving the hostname of local devices.

The problem appears to be that odhcpd is crashing frequently:

[174719.322215] odhcpd[2682]: segfault at 1e8 ip 0000561316b93ea5 sp 00007ffc6bd18910 error 4 in odhcpd[561316b86000+f000]
[174719.333274] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[211826.894185] odhcpd[9180]: segfault at 1e8 ip 0000563e6427cea5 sp 00007ffd2fbaf390 error 4 in odhcpd[563e6426f000+f000]
[211826.905141] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[269387.863391] odhcpd[27056]: segfault at 1e8 ip 000055f17b96dea5 sp 00007ffe04835330 error 4 in odhcpd[55f17b960000+f000]
[269387.874402] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[277399.363259] odhcpd[25944]: segfault at 1e8 ip 000055db02aa2ea5 sp 00007ffcec08d730 error 4 in odhcpd[55db02a95000+f000]
[277399.374286] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[297098.071728] odhcpd[11026]: segfault at 1e8 ip 000055d752126ea5 sp 00007ffc4c24bfb0 error 4 in odhcpd[55d752119000+f000]
[297098.082814] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[368314.800259] odhcpd[23922]: segfault at 1e8 ip 000055cb5ea60ea5 sp 00007ffc95844760 error 4 in odhcpd[55cb5ea53000+f000]
[368314.811700] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[398040.351249] odhcpd[20056]: segfault at 1e8 ip 0000562e223c3ea5 sp 00007ffcc6bcbc60 error 4 in odhcpd[562e223b6000+f000]
[398040.362409] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[624661.818620] odhcpd[20228]: segfault at 1e8 ip 000055620b24eea5 sp 00007ffde050b5b0 error 4 in odhcpd[55620b241000+f000]
[624661.829660] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[774304.284586] odhcpd[1972]: segfault at 1e8 ip 00005650465ddea5 sp 00007ffec9522cf0 error 4 in odhcpd[5650465d0000+f000]
[774304.295634] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[774309.545659] odhcpd[14895]: segfault at 1e8 ip 000055d8e9c2fea5 sp 00007ffe7b7ab7d0 error 4 in odhcpd[55d8e9c22000+f000]
[774309.556645] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[886350.045285] odhcpd[14896]: segfault at 1e8 ip 000055895c993ea5 sp 00007ffcc8073850 error 4 in odhcpd[55895c986000+f000]
[886350.056541] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[889299.070394] odhcpd[4510]: segfault at 1e8 ip 000055c846e2cea5 sp 00007ffd64ebc630 error 4 in odhcpd[55c846e1f000+f000]
[889299.081339] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[918566.150080] odhcpd[11528]: segfault at 1e8 ip 000056433ac92ea5 sp 00007fff1290ebc0 error 4 in odhcpd[56433ac85000+f000]
[918566.161120] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[966890.601563] odhcpd[12969]: segfault at 1e8 ip 0000564d1d057ea5 sp 00007ffc0c336370 error 4 in odhcpd[564d1d04a000+f000]
[966890.612594] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89
[1128217.162019] odhcpd[24273]: segfault at 1e8 ip 0000557a44b64ea5 sp 00007ffef88212c0 error 4 in odhcpd[557a44b57000+f000]
[1128217.173368] Code: 00 b9 04 00 00 00 eb 15 c1 e1 02 4d 8b 86 b0 02 00 00 48 8d b4 24 88 00 00 00 0f b6 c9 ba 06 00 00 00 4c 89 e7 e8 68 e6 ff ff <48> 83 bd e8 01 00 00 00 75 3e 45 31 c0 31 c9 ba ff 00 00 00 4c 89

It does restart automatically, and DHCP service is restored. But because the odhcpd lease file gets overwritten, the existing DHCP leases are lost and removed from DNS server.

Any ideas what is causing this crash?

Jef

There was a recent fix to master for a segfault due to DHCPINFORM messages. Perhaps try a snapshot build to see if it’s fixed. It hasn’t been backported to 22.03 yet.

1 Like

I have installed a snapshot and will check again in a couple of days to see whether the crashes are gone or not.

Any idea if this fix will be backported to 22.03?

I no longer see those crashes with the snapshot!

2 Likes