<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi,<br></div><div><br></div><div>We are an IXP running 2x route servers with BIRD, each running separate daemons for IPv4 and IPv6.<br></div><div><br></div><div>We are running BIRD 2.0.8-1 on Debian 10 and have around 250 peers, ~150k routes on v4 and ~50k routes on v6.<br></div><div><br></div><div>Since upgrading to BIRD 2 nearly 3 years ago, it was really stable until May this year. Since then we've had 3 crashes of the daemon for v4 on one of the servers. The v6 daemon on that server has been fine, as has the second route server, running the same, with the same peers and therefore in theory, the same routes.<br></div><div><br></div><div>The first two of these crashes happened a week apart, after which I rebooted the VM to ensure everything was clean and it was fine for 90 days, but then did the same yesterday.<br></div><div><br></div><div>Our BIRD configuration is generated by IXP Manager and updated hourly.<br></div><div><br></div><div>We then run a "bird re-validate" cron job every hour (at twenty past the hour):<br></div><div>/usr/sbin/birdc -s /run/bird-ipv6.ctl reload in all > /dev/null ; /usr/sbin/birdc -s /run/bird-ipv4.ctl reload in all</div><div><br></div><div>Interestingly all 3 crashes have happened at just after twenty past the hour, i.e soon after this cron job has run.<br></div><div><br></div><div>It looks like the following in the logs:<br></div><div><br></div><div>Aug 17 17:20:01 rs1 CRON[29229]: (root) CMD (/usr/sbin/birdc -s /run/bird-ipv6.ctl reload in all > /dev/null ; /usr/sbin/birdc -s /run/bird-ipv4.ctl reload in all > /dev/null)<br></div><div>Aug 17 17:20:01 rs1 bird: Reloading protocol device1<br></div><div>Aug 17 17:20:01 rs1 bird: Reloading protocol pp_0121_asxx<br></div><div>..etc..<br></div><div>Aug 17 17:20:01 rs1 bird: Reloading protocol pp_1082_asxxxxxx<br></div><div>Aug 17 17:20:01 rs1 bird: Reloading protocol pb_1082_asxxxxxx<br></div><div>Aug 17 17:20:01 rs1 bird: Tagging invalid ROA 2001:xxxx:xxxx::/48 for ASN xxxxx<br></div><div>..etc..</div><div>Aug 17 17:21:17 rs1 bird: Tagging invalid ROA x.x.x.x/23 for ASN xxxx<br></div><div>Aug 17 17:21:19 rs1 kernel: [7811815.959943] bird[586]: segfault at f30021 ip 000055a1bf450fc3 sp 00007ffe64f3da98 error 4 in bird[55a1bf42a000+d8000]<br></div><div>Aug 17 17:21:19 rs1 kernel: [7811815.966760] Code: 95 78 01 00 00 5b 5d 41 5c c3 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 48 85 ff b8 01 00 00 00 74 15 48 85 f6 0f 84 a6 00 00 00 <0f> b6 46 21 0f b6 57 21 29 d0 74 11 f3 c3 0f 1f 44 00 00 66 2e 0f<br></div><div>Aug 17 17:21:19 rs1 systemd[1]: bird-ipv4.service: Main process exited, code=killed, status=11/SEGV<br></div><div>Aug 17 17:21:19 rs1 systemd[1]: bird-ipv4.service: Failed with result 'signal'.<br></div><div>Aug 17 17:21:19 rs1 systemd[1]: bird-ipv4.service: Service RestartSec=100ms expired, scheduling restart.<br></div><div>Aug 17 17:21:19 rs1 systemd[1]: bird-ipv4.service: Scheduled restart job, restart counter is at 1.<br></div><div>Aug 17 17:21:19 rs1 systemd[1]: Stopped BIRD - ipv4.<br></div><div>Aug 17 17:21:19 rs1 systemd[1]: Starting BIRD - ipv4...<br></div><div>Aug 17 17:21:22 rs1 systemd[1]: Started BIRD - ipv4.<br></div><div>Aug 17 17:21:22 rs1 bird: Started<br></div><div><br></div><div>When the second crash happened, we happened to be at RIPE84 so we chatted to Maria in person. She said that it was possible to debug it, but would need a core dump.<br></div><div><br></div><div>After looking in to this, I did:<br></div><div><br></div><div>ulimit -S -c unlimited<br></div><div>and installed the systemd-coredump package.<br></div><div><br></div><div>...which was supposed to dump a core file if a process crashed. I tested this by killing a sleep command from the shell with kill -s 6 and it worked.<br></div><div><br></div><div>When the crash happened again yesterday, I hoped to have a core file to send, but there is no sign of it having generated one :(<br></div><div><br></div><div>Testing on a test server, killing sleep generates a core file, but not killing bird.<br></div><div><br></div><div>So two things - has anyone experienced similar crashes or have any ideas why we might be seeing this?<br></div><div><br></div><div>Can anyone advise how to reliably get a core dump if bird crashes?<br></div><div><br></div><div>Thanks!<br></div><div><br></div><div>Ian<br></div><div><br></div></body></html>