BIRD 3.1.5 crash: Assertion failure in do_lock / if_find_by_index
Moraxyc
i at qaq.li
Thu Dec 11 18:50:05 CET 2025
Hi BIRD Team,
I wanna report a crash with BIRD 3.1.5 running on NixOS.
The crash triggers a `bug()` assertion failure related to locking mechanisms during interface lookup (`if_find_by_index`).
I have successfully reproduced this issue locally with a minimal configuration.
Environment:
- BIRD Version: 3.1.5
- OS: NixOS unstable (glibc 2.40)
- Kernel: Linux 6.17.9 #1-NixOS SMP PREEMPT_DYNAMIC x86_64 GNU/Linux
Reproduction Steps:
1. Configure a BGP protocol using an IPv6 Link-Local neighbor on a physical interface.
2. Start BIRD. Wait for the protocol to enter 'Active' or 'Connect' state so the port is listening.
3. Initiate a TCP connection to the BGP port:
$ nc -6 -v <Link-Local-IP>%<interface> <port>
4. BIRD crashes immediately upon receiving the connection.
Crash Summary (from GDB):
The main thread (Thread 1) hits a bug() assertion:
#3 0x000056536f6ef97a in bug (msg=<optimized out>) at sysdep/unix/log.c:412
#4 0x000056536f6fa9a1 in do_lock (dg=0x5653774ace60, lsp=0x7fba0208a2a8) at sysdep/unix/domain.c:116
#5 0x000056536f64c8ac in if_find_by_index (idx=23) at nest/iface.c:721
#6 0x000056536f6e4ac8 in sockaddr_read6 ... at sysdep/unix/io.c:583
#8 0x000056536f6ecfd7 in sk_passive_connected ... at sysdep/unix/io.c:1451
Attachments:
1. backtrace.txt: Full GDB backtrace.
2. config_snippet.txt: The minimal config used to reproduce the crash.
Best regards,
Moraxyc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20251212/830e1817/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config_snippet.txt
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20251212/830e1817/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: backtrace.txt
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20251212/830e1817/attachment-0001.txt>
More information about the Bird-users
mailing list