Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syscall: TestRouteRIB failure on NetBSD-current amd64 #12641

Closed
bsiegert opened this issue Sep 16, 2015 · 7 comments
Closed

syscall: TestRouteRIB failure on NetBSD-current amd64 #12641

bsiegert opened this issue Sep 16, 2015 · 7 comments
Milestone

Comments

@bsiegert
Copy link
Contributor

@bsiegert bsiegert commented Sep 16, 2015

A pkgsrc user (@iamleot) mentioned that the tests for Go 1.5.1 fail on his NetBSD current (7.99.x) amd64 system. There is an unexpected failure in the syscall package:

--- FAIL: TestRouteRIB (0.00s)
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa 0.0.0.0 192.168.15.254 0.0.0.0 [18/link/1 t/n/a/s=6/4/6/0] 192.168.2.254
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa 127.0.0.0 127.0.0.1 255.0.0.0 [11/link/3 t/n/a/s=24/3/0/0] 127.0.0.1
    route_bsd_test.go:70: 1 0 dst|gateway|ifp|ifa 127.0.0.1 127.0.0.1 [11/link/3 t/n/a/s=24/3/0/0] 127.0.0.1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa 192.168.0.0 [18/link/1 t/n/a/s=6/0/0/0] 255.255.240.0 [18/link/1 t/n/a/s=6/4/6/0] 192.168.2.254
    route_bsd_test.go:70: 1 0 dst|gateway|ifp|ifa 192.168.2.254 [14/link/1 t/n/a/s=6/0/6/0] [11/link/3 t/n/a/s=24/3/0/0] 192.168.2.254
    route_bsd_test.go:70: 1 0 dst|gateway|ifp|ifa 192.168.15.254 [14/link/1 t/n/a/s=6/0/6/0] [18/link/1 t/n/a/s=6/4/6/0] 192.168.2.254
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa :: ::1 ffff:ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa :: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|ifp|ifa ::1 ::1 [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa ::7f00:0 ::1 ffff:ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa ::e000:0 ::1 ffff:ffff:f000:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa ::ff00:0 ::1 ffff:ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa 0.0.0.0 ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa 2001:db8:: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa 2002:: ::1 ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa 2002:7f00:: ::1 ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa 2002:e000:: ::1 ffff:f000:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa 2002:ff00:: ::1 ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa fe80:: ::1 ffc0:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa fe80:1:: [18/link/1 t/n/a/s=6/0/0/0] ffff:ffff:ffff:ffff:: [18/link/1 t/n/a/s=6/4/6/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 0 dst|gateway|ifp|ifa fe80:1::718c:a574:ff6f:478e [14/link/1 t/n/a/s=6/0/6/0] [11/link/3 t/n/a/s=24/3/0/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa fe80:3:: fe80:3::1 ffff:ffff:ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] fe80:3::1
    route_bsd_test.go:70: 1 0 dst|gateway|ifp|ifa fe80:3::1 fe80:3::1 [11/link/3 t/n/a/s=24/3/0/0] fe80:3::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa ff01:1:: [18/link/1 t/n/a/s=6/0/0/0] ffff:ffff:: [18/link/1 t/n/a/s=6/4/6/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa ff01:3:: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa ff02:1:: [18/link/1 t/n/a/s=6/0/0/0] ffff:ffff:: [18/link/1 t/n/a/s=6/4/6/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 0 dst|gateway|netmask|ifp|ifa ff02:3:: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa 0.0.0.0 192.168.15.254 0.0.0.0 [18/link/1 t/n/a/s=6/4/6/0] 192.168.2.254
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa 127.0.0.0 127.0.0.1 255.0.0.0 [11/link/3 t/n/a/s=24/3/0/0] 127.0.0.1
    route_bsd_test.go:70: 1 2 dst|gateway|ifp|ifa 127.0.0.1 127.0.0.1 [11/link/3 t/n/a/s=24/3/0/0] 127.0.0.1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa 192.168.0.0 [18/link/1 t/n/a/s=6/0/0/0] 255.255.240.0 [18/link/1 t/n/a/s=6/4/6/0] 192.168.2.254
    route_bsd_test.go:70: 1 2 dst|gateway|ifp|ifa 192.168.2.254 [14/link/1 t/n/a/s=6/0/6/0] [11/link/3 t/n/a/s=24/3/0/0] 192.168.2.254
    route_bsd_test.go:70: 1 2 dst|gateway|ifp|ifa 192.168.15.254 [14/link/1 t/n/a/s=6/0/6/0] [18/link/1 t/n/a/s=6/4/6/0] 192.168.2.254
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa :: ::1 ffff:ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa :: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|ifp|ifa ::1 ::1 [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa ::7f00:0 ::1 ffff:ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa ::e000:0 ::1 ffff:ffff:f000:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa ::ff00:0 ::1 ffff:ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa 0.0.0.0 ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa 2001:db8:: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa 2002:: ::1 ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa 2002:7f00:: ::1 ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa 2002:e000:: ::1 ffff:f000:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa 2002:ff00:: ::1 ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa fe80:: ::1 ffc0:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa fe80:1:: [18/link/1 t/n/a/s=6/0/0/0] ffff:ffff:ffff:ffff:: [18/link/1 t/n/a/s=6/4/6/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 2 dst|gateway|ifp|ifa fe80:1::718c:a574:ff6f:478e [14/link/1 t/n/a/s=6/0/6/0] [11/link/3 t/n/a/s=24/3/0/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa fe80:3:: fe80:3::1 ffff:ffff:ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] fe80:3::1
    route_bsd_test.go:70: 1 2 dst|gateway|ifp|ifa fe80:3::1 fe80:3::1 [11/link/3 t/n/a/s=24/3/0/0] fe80:3::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa ff01:1:: [18/link/1 t/n/a/s=6/0/0/0] ffff:ffff:: [18/link/1 t/n/a/s=6/4/6/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa ff01:3:: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa ff02:1:: [18/link/1 t/n/a/s=6/0/0/0] ffff:ffff:: [18/link/1 t/n/a/s=6/4/6/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 2 dst|gateway|netmask|ifp|ifa ff02:3:: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa 0.0.0.0 192.168.15.254 0.0.0.0 [18/link/1 t/n/a/s=6/4/6/0] 192.168.2.254
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa 127.0.0.0 127.0.0.1 255.0.0.0 [11/link/3 t/n/a/s=24/3/0/0] 127.0.0.1
    route_bsd_test.go:70: 1 24 dst|gateway|ifp|ifa 127.0.0.1 127.0.0.1 [11/link/3 t/n/a/s=24/3/0/0] 127.0.0.1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa 192.168.0.0 [18/link/1 t/n/a/s=6/0/0/0] 255.255.240.0 [18/link/1 t/n/a/s=6/4/6/0] 192.168.2.254
    route_bsd_test.go:70: 1 24 dst|gateway|ifp|ifa 192.168.2.254 [14/link/1 t/n/a/s=6/0/6/0] [11/link/3 t/n/a/s=24/3/0/0] 192.168.2.254
    route_bsd_test.go:70: 1 24 dst|gateway|ifp|ifa 192.168.15.254 [14/link/1 t/n/a/s=6/0/6/0] [18/link/1 t/n/a/s=6/4/6/0] 192.168.2.254
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa :: ::1 ffff:ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa :: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|ifp|ifa ::1 ::1 [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa ::7f00:0 ::1 ffff:ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa ::e000:0 ::1 ffff:ffff:f000:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa ::ff00:0 ::1 ffff:ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa 0.0.0.0 ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa 2001:db8:: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa 2002:: ::1 ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa 2002:7f00:: ::1 ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa 2002:e000:: ::1 ffff:f000:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa 2002:ff00:: ::1 ffff:ff00:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa fe80:: ::1 ffc0:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa fe80:1:: [18/link/1 t/n/a/s=6/0/0/0] ffff:ffff:ffff:ffff:: [18/link/1 t/n/a/s=6/4/6/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 24 dst|gateway|ifp|ifa fe80:1::718c:a574:ff6f:478e [14/link/1 t/n/a/s=6/0/6/0] [11/link/3 t/n/a/s=24/3/0/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa fe80:3:: fe80:3::1 ffff:ffff:ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] fe80:3::1
    route_bsd_test.go:70: 1 24 dst|gateway|ifp|ifa fe80:3::1 fe80:3::1 [11/link/3 t/n/a/s=24/3/0/0] fe80:3::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa ff01:1:: [18/link/1 t/n/a/s=6/0/0/0] ffff:ffff:: [18/link/1 t/n/a/s=6/4/6/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa ff01:3:: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa ff02:1:: [18/link/1 t/n/a/s=6/0/0/0] ffff:ffff:: [18/link/1 t/n/a/s=6/4/6/0] fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 1 24 dst|gateway|netmask|ifp|ifa ff02:3:: ::1 ffff:ffff:: [11/link/3 t/n/a/s=24/3/0/0] ::1
    route_bsd_test.go:70: 5 0 ifp [18/link/1 t/n/a/s=6/4/6/0]
    route_bsd_test.go:70: 5 0 netmask|ifa 0.0.0.0 [18/link/1 t/n/a/s=6/4/6/0]
    route_bsd_test.go:70: 5 0 netmask|ifa ffff:ffff:ffff:ffff:: fe80:1::718c:a574:ff6f:478e
    route_bsd_test.go:70: 5 0 netmask|ifa|brd 255.255.240.0 192.168.2.254 192.168.15.255
    route_bsd_test.go:70: 5 0 ifp [20/link/2 t/n/a/s=6/6/6/0]
    route_bsd_test.go:70: 5 0 netmask|ifa 255.255.0.0 [20/link/2 t/n/a/s=6/6/6/0]
    route_bsd_test.go:70: 5 0 ifp [11/link/3 t/n/a/s=24/3/0/0]
    route_bsd_test.go:70: 5 0 netmask|ifa 0.0.0.0 [11/link/3 t/n/a/s=24/3/0/0]
    route_bsd_test.go:70: 5 0 netmask|ifa|brd 255.0.0.0 127.0.0.1 127.0.0.1
    route_bsd_test.go:70: 5 0 netmask|ifa|brd ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ::1 ::1
    route_bsd_test.go:70: 5 0 netmask|ifa|brd ffff:ffff:ffff:ffff:: fe80:3::1 ::
    route_bsd_test.go:51: *syscall.InterfaceMessage: invalid argument, []byte{0xf, 0x12, 0x4, 0x0, 0x1, 0x7, 0x0, 0x0, 0x6e, 0x70, 0x66, 0x6c, 0x6f, 0x67, 0x30, 0x0}
    route_bsd_test.go:51: *syscall.InterfaceAddrMessage: invalid argument, []byte{0xf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0, 0xf, 0x12, 0x4, 0x0, 0x1, 0x7, 0x0, 0x0, 0x6e, 0x70, 0x66, 0x6c, 0x6f, 0x67, 0x30, 0x0}
    route_bsd_test.go:70: 5 2 ifp [20/link/2 t/n/a/s=6/6/6/0]
    route_bsd_test.go:70: 5 2 netmask|ifa 255.255.0.0 [20/link/2 t/n/a/s=6/6/6/0]
FAIL
FAIL    syscall 0.030s
@minux
Copy link
Member

@minux minux commented Sep 16, 2015

@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented Sep 16, 2015

@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Sep 16, 2015
@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Sep 16, 2015

CC @mikioh

@mikioh
Copy link
Contributor

@mikioh mikioh commented Sep 24, 2015

Thanks for the report. Will take a look later. Well, I have to remember how to create a npf_ext_log kernel module on netbsd, and ah... where's my npf.conf?

@iamleot
Copy link

@iamleot iamleot commented Sep 24, 2015

Hello Mikio,
first of all thank you for looking at it!

Mikio Hara writes:

Thanks for the report. Will take a look later. Well, I have to remember how to create a npf_ext_log kernel module on netbsd, and ah..
. where's my npf.conf?
npf(7) by default is built as a module and you will find all the modules
in /stand/${ARCH}/${VERSION}/modules/ (e.g.:
/stand/amd64/7.99.21/modules ).

There isn't an npf.conf by default and NPF is neither started by
default. If you need to enable it please create an /etc/npf.conf file
and add to your /etc/rc.conf file:

npf=yes

Apart the man pages a good documentation regarding NPF is the NPF
documentation written by Mindaugas Rasiukevicius (the author of NPF):

http://netbsd.org/~rmind/npf/

There are also some examples in /usr/share/examples/npf.

Anyway if you encounter some problems feel free to contact me privately
via email and I will share my npf.conf.

HTH!
Ciao,
L.

@mikioh
Copy link
Contributor

@mikioh mikioh commented Sep 25, 2015

Thanks for the information. I just succeed in reproducing this issue with PF.

@gopherbot
Copy link

@gopherbot gopherbot commented Sep 25, 2015

CL https://golang.org/cl/14939 mentions this issue.

@mikioh mikioh closed this in 707b619 Sep 25, 2015
@golang golang locked and limited conversation to collaborators Sep 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.