Mailing List Archive

[Bug 340] ospfd crashes when "non-broadcast" interface is brought up and down fast
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug
report.

http://bugzilla.quagga.net/show_bug.cgi?id=340





------- Additional Comments From windo@p6drad-teel.net 2007-02-22 14:32 -------
I have a couple of openvpn tunnels between two test machines and I was bringing
the tunnels up and down with a second of delay and noticed that ospfd started
segfaulting. I removed "ip ospf network non-broadcast" I had added to one of the
tunnels to stop some redundant log messages and it did not crash any longer.

Program received signal SIGSEGV, Segmentation fault.
0xb7ee9fb5 in if_is_loopback () from /usr/lib/libzebra.so.0
(gdb) bt
#0 0xb7ee9fb5 in if_is_loopback () from /usr/lib/libzebra.so.0
#1 0xb7f4a072 in ospf_ls_retransmit_lookup () from /usr/lib/libospf.so.0
#2 0xb7f4a0f4 in ospf_ls_retransmit_delete_nbr_area () from /usr/lib/libospf.so.0
#3 0xb7f3e3da in ospf_nbr_lookup_ptop () from /usr/lib/libospf.so.0
#4 0xb7f3e4ac in ospf_nbr_lookup_ptop () from /usr/lib/libospf.so.0
#5 0xb7ee981b in thread_call () from /usr/lib/libzebra.so.0
#6 0x08049420 in main ()

the ospfd is 0.99.6 from a month or so back.

Possibly relevant pieces from the end of the log:
Feb 22 15:21:35 testbox ospfd[22731]: interface 1.1.1.3 [154] join AllSPFRouters
Multicast group.
Feb 22 15:21:35 testbox ospfd[22731]: interface 1.1.1.3 [154] leave
AllSPFRouters Multicast group.
Feb 22 15:21:35 testbox ospfd[22731]: interface 1.1.1.3 [154] join AllSPFRouters
Multicast group.
Feb 22 15:21:35 testbox ospfd[22731]: interface 1.1.1.3 [154] leave
AllSPFRouters Multicast group.
Feb 22 15:21:36 testbox ospfd[22731]: interface 1.1.1.3 [154] join AllSPFRouters
Multicast group.
Feb 22 15:21:36 testbox ospfd[22731]: interface 1.1.1.5 [155] join AllSPFRouters
Multicast group.
Feb 22 15:21:36 testbox ospfd[22731]: interface 1.1.1.5 [155] leave
AllSPFRouters Multicast group.
Feb 22 15:21:36 testbox ospfd[22731]: interface 1.1.1.5 [155] join AllSPFRouters
Multicast group.
Feb 22 15:21:37 testbox ospfd[22731]: interface 1.1.1.1 [156] join AllSPFRouters
Multicast group.
Feb 22 15:21:37 testbox ospfd[22731]: interface 1.1.1.1 [156] leave
AllSPFRouters Multicast group.
Feb 22 15:21:37 testbox ospfd[22731]: interface 1.1.1.1 [156] join AllSPFRouters
Multicast group.
Feb 22 15:21:37 testbox ospfd[22731]: interface 1.1.1.1 [156] leave
AllSPFRouters Multicast group.
Feb 22 15:21:37 testbox ospfd[22731]: can't setsockopt IP_ADD_MEMBERSHIP (fd 5,
addr 1.1.1.1, ifindex 156, AllSPFRouters): No such device; perhaps a kernel
limit on # of multicast group memberships has been exceeded?
Feb 22 15:21:38 testbox ospfd[22731]: can't setsockopt IP_MULTICAST_IF(fd 5,
addr 1.1.1.1, ifindex 156): Cannot assign requested address
Feb 22 15:21:38 testbox ospfd[22731]: *** sendmsg in ospf_write failed to
224.0.0.5, id 42743, off 0, len 80, interface tunnel0, mtu 1500: No such device
Feb 22 15:21:38 testbox ospfd[22731]: interface 1.1.1.5 [155] leave
AllSPFRouters Multicast group.
Feb 22 15:21:38 testbox ospfd[22731]: interface 1.1.1.3 [154] leave
AllSPFRouters Multicast group.
Feb 22 15:21:38 testbox ospfd[22731]: interface 1.1.1.3 [157] join AllSPFRouters
Multicast group.
Feb 22 15:21:39 testbox ospfd[22731]: interface 1.1.1.3 [157] leave
AllSPFRouters Multicast group.
Feb 22 15:21:39 testbox ospfd[22731]: interface 1.1.1.3 [157] join AllSPFRouters
Multicast group.
Feb 22 15:26:29 testbox ospfd[22731]: Received signal 11 at 1172154389 (si_addr
0x20, PC 0xb7ee9fb5); aborting...
Feb 22 15:26:29 testbox ospfd[22731]: Backtrace for 12 stack frames:
Feb 22 15:26:29 testbox ospfd[22731]: [bt 0] 0xb7ef3d03
Feb 22 15:26:29 testbox ospfd[22731]: [bt 1] 0xb7ef3cd3
Feb 22 15:26:29 testbox ospfd[22731]: [bt 2] 0xb7efb50a
Feb 22 15:26:29 testbox ospfd[22731]: [bt 3] 0xb7f92440
Feb 22 15:26:29 testbox ospfd[22731]: [bt 4] 0xb7f4a072
Feb 22 15:26:29 testbox ospfd[22731]: [bt 5] 0xb7f4a0f4
Feb 22 15:26:29 testbox ospfd[22731]: [bt 6] 0xb7f3e3da
Feb 22 15:26:29 testbox ospfd[22731]: [bt 7] 0xb7f3e4ac
Feb 22 15:26:29 testbox ospfd[22731]: [bt 8] 0xb7ee981b
Feb 22 15:26:29 testbox ospfd[22731]: [bt 9] 0x8049420
Feb 22 15:26:29 testbox ospfd[22731]: [bt 10] 0xb7d5e974
Feb 22 15:26:29 testbox ospfd[22731]: [bt 11] 0x8049081

that interface "tunnel0" is not the interface with non-broadcast set.

# cat /proc/sys/net/ipv4/igmp_max_memberships
200

(this memberships problem is the one I am actually investigating)

------- Additional Comments From windo@p6drad-teel.net 2007-02-22 15:18 -------
okay, it seems that for this to work, my hack of a interface naming script has
to be in place.

I have a script that takes the newly created openvpn tunnel device, brings it
down, renames it, brings it up, drops it's address and re-adds it (the latter
two were to work around a zebra bug of a sort).

i tried to bring the link up and down rapidly, but it didn't produce the segfault.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
Quagga-bugs mailing list
Quagga-bugs@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-bugs