>Synopsis: SIGBUS in rtadvd
>Category: user
>Environment:
System : OpenBSD 6.4
Details : OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT
2018
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
>Description:
Summary of fault:
# gdb --args rtadvd -d bge0
Program received signal SIGBUS, Bus error.
sock_cb (fd=Variable "fd" is not available.
) at /usr/src/usr.sbin/rtadvd/rtadvd.c:513
513 if ((iflist[pi->ipi6_ifindex]->ifm_flags & IFF_UP) == 0) {
More detail below:
/usr/src/usr.sbin/rtadvd$ doas gdb --args obj/rtadvd -d bge0
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd6.4"...
(gdb) run
Starting program: /u/1/usr.obj/usr.sbin/rtadvd/rtadvd -d bge0
add 2406:3400:40f:bfa0::/64 to prefix list on bge0
RA timer on bge0 set to 16.0s
RS received from fe80::5642:49ff:fee3:5528 on bge0
RA timer on bge0 is expired
send RA on bge0, # of waitings = 1
RA timer on bge0 set to 16.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 16.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
received a routing message (type = 1, len = 216)
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 255.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
received a routing message (type = 2, len = 216)
received a routing message (type = 1, len = 216)
RA received from fe80::16cc:20ff:fe8e:902e on bge0
unknown ND option(type 7)
preferred lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 604800 from us
valid lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 2592000 from us
received a routing message (type = 2, len = 216)
received a routing message (type = 1, len = 216)
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
received a routing message (type = 2, len = 216)
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 445.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
received a routing message (type = 1, len = 216)
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA received from fe80::16cc:20ff:fe8e:902e on bge0
unknown ND option(type 7)
preferred lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 604800 from us
valid lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 2592000 from us
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 528.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
RA received from fe80::16cc:20ff:fe8e:902e on bge0
unknown ND option(type 7)
preferred lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 604800 from us
valid lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 2592000 from us
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
received a routing message (type = 2, len = 216)
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA received from fe80::16cc:20ff:fe8e:902e on bge0
unknown ND option(type 7)
preferred lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 604800 from us
valid lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 2592000 from us
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 531.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA received from fe80::16cc:20ff:fe8e:902e on bge0
unknown ND option(type 7)
preferred lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 604800 from us
valid lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 2592000 from us
received a routing message (type = 1, len = 216)
received a routing message (type = 2, len = 216)
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
received a routing message (type = 1, len = 216)
received a routing message (type = 2, len = 216)
received a routing message (type = 1, len = 216)
received a routing message (type = 2, len = 216)
received a routing message (type = 1, len = 216)
received a routing message (type = 2, len = 216)
received a routing message (type = 1, len = 216)
received a routing message (type = 1, len = 216)
received a routing message (type = 2, len = 216)
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
received a routing message (type = 1, len = 216)
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 315.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
received a routing message (type = 2, len = 216)
received a routing message (type = 1, len = 216)
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
received a routing message (type = 2, len = 216)
RA received from fe80::16cc:20ff:fe8e:902e on bge0
unknown ND option(type 7)
preferred lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 604800 from us
valid lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 2592000 from us
received a routing message (type = 1, len = 216)
received a routing message (type = 2, len = 216)
received a routing message (type = 1, len = 216)
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 372.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
received a routing message (type = 2, len = 216)
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 306.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
RA received from fe80::16cc:20ff:fe8e:902e on bge0
unknown ND option(type 7)
preferred lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 604800 from us
valid lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 2592000 from us
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
received a routing message (type = 2, len = 216)
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 395.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA received from fe80::16cc:20ff:fe8e:902e on bge0
unknown ND option(type 7)
preferred lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 604800 from us
valid lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 2592000 from us
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 569.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA received from fe80::16cc:20ff:fe8e:902e on bge0
unknown ND option(type 7)
preferred lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 604800 from us
valid lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 2592000 from us
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 254.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA timer on bge0 is expired
send RA on bge0, # of waitings = 0
RA timer on bge0 set to 444.0s
RA received from fe80::2895:c14f:fde3:e898 on bge0
RA received from fe80::16cc:20ff:fe8e:902e on bge0
unknown ND option(type 7)
preferred lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 604800 from us
valid lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 2592000 from us
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA received from fe80::8a1d:fcff:fe68:3a00 on pppoe0
RA received from fe80::16cc:20ff:fe8e:902e on bge0
unknown ND option(type 7)
preferred lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 604800 from us
valid lifetime for 2406:3400:40f:bfa0::/64 inconsistent on bge0: 4294967295
from fe80::16cc:20ff:fe8e:902e, 2592000 from us
Program received signal SIGBUS, Bus error.
sock_cb (fd=Variable "fd" is not available.
) at /usr/src/usr.sbin/rtadvd/rtadvd.c:513
513 if ((iflist[pi->ipi6_ifindex]->ifm_flags & IFF_UP) == 0) {
Current language: auto; currently minimal
(gdb) p pi
$1 = (struct in6_pktinfo *) 0x14990b7073d0
(gdb) p iflist
$2 = (struct if_msghdr **) 0x14990b701e00
(gdb) p pi->ipi6_ifindex
$3 = 20
(gdb) p iflist[20]
$4 = (struct if_msghdr *) 0xdfdfdfdfdfdfdfdf
(gdb) The program is running. Exit anyway? (y or n) y
>How-To-Repeat:
Run 'rtadvd bge0' (eg from rcctl)
/etc/rtadvd.conf:
bge0:\
:dnssl="tst.adaptive-enterprises.com":\
:rdnss="2406:3400:40f:bfa0::3":
$ ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
index 3 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
bge0:
flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
lladdr <xxxxxxxx>
index 1 priority 0 llprio 3
groups: ingress
media: Ethernet autoselect (1000baseT
full-duplex,rxpause,txpause)
status: active
inet <xxxxxxxx> netmask 0xffffff00 broadcast <xxxxxxxx>
inet6 fe80::2895:c14f:fde3:e898%bge0 prefixlen 64 scopeid
0x1
inet6 2406:3400:40f:bfa0::3 prefixlen 64
pppoe0:
flags=208951<UP,POINTOPOINT,RUNNING,PROMISC,SIMPLEX,MULTICAST,AUTOCONF6> mtu
1500
index 20 priority 0 llprio 3
dev: bge0 state: session
sid: <xxxx> PADI retries: 131 PADR retries: 0 time: 6d
08:50:43
sppp: phase network authproto pap
groups: pppoe egress
status: active
inet6 fe80::2895:c14f:fde3:e898%pppoe0 -> prefixlen 64
scopeid 0x14
inet <xxxxxxxx> --> <xxxxxxxx> netmask 0xffffffff
>Fix:
Unknown