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

net: TestInterfaces and TestInterfaceAddrs fail #15463

Closed
alexbrainman opened this issue Apr 27, 2016 · 9 comments
Closed

net: TestInterfaces and TestInterfaceAddrs fail #15463

alexbrainman opened this issue Apr 27, 2016 · 9 comments

Comments

@alexbrainman
Copy link
Member

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
go version devel +707aed0 Wed Apr 27 04:24:37 2016 +0000 windows/amd64
  1. What operating system and processor architecture are you using (go env)?
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=c:\dev
set GORACE=
set GOROOT=C:\dev\go
set GOTOOLDIR=C:\dev\go\pkg\tool\windows_amd64
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\brainman\AppData\Local\Temp\go-build145678430=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
  1. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    A link on play.golang.org is best.

I run all.bat.

  1. What did you expect to see?

Successful completion.

  1. What did you see instead?
--- FAIL: TestInterfaces (0.02s)
        interface_test.go:84: "Local Area Connection": flags "up|broadcast|multicast", ifindex 11, mtu 1500
        interface_test.go:85: hardware address "00:50:56:84:00:12"
        interface_test.go:225: no IPv6 zone identifier found: &net.IPNet{IP:net.IP{0xfe, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc9, 0xe4, 0x43, 0x25, 0x37, 0x45, 0xcf, 0xa5}, Mask:net.IPMask{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, Zone:""}
        interface_test.go:230: interface address "10.0.24.10/24"
        interface_test.go:272: joined group address "ff01::1"
        interface_test.go:272: joined group address "ff02::1"
        interface_test.go:272: joined group address "ff02::c"
        interface_test.go:272: joined group address "ff02::1:3"
        interface_test.go:272: joined group address "ff02::1:ff45:cfa5"
        interface_test.go:272: joined group address "224.0.0.1"
        interface_test.go:272: joined group address "224.0.0.252"
        interface_test.go:272: joined group address "235.80.68.83"
        interface_test.go:272: joined group address "239.83.100.109"
        interface_test.go:272: joined group address "239.255.255.250"
        interface_test.go:84: "Loopback Pseudo-Interface 1": flags "up|loopback|multicast", ifindex 1, mtu -1
        interface_test.go:85: hardware address ""
        interface_test.go:230: interface address "::1/128"
        interface_test.go:230: interface address "127.0.0.1/8"
        interface_test.go:272: joined group address "ff02::c"
        interface_test.go:272: joined group address "239.255.255.250"
        interface_test.go:84: "isatap.sge.local": flags "pointtopoint|multicast", ifindex 12, mtu 1280
        interface_test.go:85: hardware address "00:00:00:00:00:00:00:e0"
--- FAIL: TestInterfaceAddrs (0.00s)
        interface_test.go:225: no IPv6 zone identifier found: &net.IPNet{IP:net.IP{0xfe, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc9, 0xe4, 0x43, 0x25, 0x37, 0x45, 0xcf, 0xa5}, Mask:net.IPMask{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, Zone:""}
        interface_test.go:230: interface address "10.0.24.10/24"
        interface_test.go:230: interface address "::1/128"
        interface_test.go:230: interface address "127.0.0.1/8"
FAIL
FAIL    net     15.454s
ok      net/http        12.317s

Alex

@mikioh
Copy link
Contributor

mikioh commented Apr 27, 2016

What operating system

We probably need to ask "which version of operating system are you running?" too. Can you please show us know the output of syscall.GetVersion or key information for helping to scrape MSDN?

@alexbrainman
Copy link
Member Author

It is an Windows 7 computer.

Alex

@mikioh
Copy link
Contributor

mikioh commented Apr 27, 2016

Can you show the output of "go test -v -run=TestInterfaces" with golang.org/cl/22521 on the node?

@alexbrainman
Copy link
Member Author

Can you show the output of "go test -v -run=TestInterfaces" with golang.org/cl/22521 on the node?

I see this:

C:\dev\go\src\net>go test -v -run=TestInterfaces
=== RUN   TestInterfaces
--- FAIL: TestInterfaces (0.01s)
        interface_test.go:84: "Local Area Connection": flags "up|broadcast|multicast", ifindex 11, mtu 1500
        interface_test.go:85: hardware address "00:50:56:84:00:12"
        interface_test.go:225: no IPv6 zone identifier found: &net.IPNet{IP:net.IP{0xfe, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc9, 0xe4, 0x43, 0x25, 0x37, 0x45, 0xcf, 0xa5}, Mask:net.IPMask{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, Zone:""}
        interface_test.go:230: interface address "10.0.24.10/24"
        interface_test.go:272: joined group address "ff01::1"
        interface_test.go:272: joined group address "ff02::1"
        interface_test.go:272: joined group address "ff02::c"
        interface_test.go:272: joined group address "ff02::1:3"
        interface_test.go:272: joined group address "ff02::1:ff45:cfa5"
        interface_test.go:272: joined group address "224.0.0.1"
        interface_test.go:272: joined group address "224.0.0.252"
        interface_test.go:272: joined group address "235.80.68.83"
        interface_test.go:272: joined group address "239.83.100.109"
        interface_test.go:272: joined group address "239.255.255.250"
        interface_test.go:84: "Loopback Pseudo-Interface 1": flags "up|loopback|multicast", ifindex 1, mtu -1
        interface_test.go:85: hardware address ""
        interface_test.go:230: interface address "::1/128"
        interface_test.go:230: interface address "127.0.0.1/8"
        interface_test.go:272: joined group address "ff02::c"
        interface_test.go:272: joined group address "239.255.255.250"
        interface_test.go:84: "isatap.sge.local": flags "pointtopoint|multicast", ifindex 12, mtu 1280
        interface_test.go:85: hardware address "00:00:00:00:00:00:00:e0"
=== RUN   TestInterfacesWithNetsh
--- PASS: TestInterfacesWithNetsh (1.12s)
FAIL
exit status 1
FAIL    net     1.194s

C:\dev\go\src\net>

Alex

@mikioh
Copy link
Contributor

mikioh commented Apr 28, 2016

Thanks, just sent https://go-review.googlesource.com/22540/

@gopherbot
Copy link

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

@maruel
Copy link
Contributor

maruel commented May 26, 2016

Just a note in case anyone else finds this issue while building 1.6.1 locally;

  • the test still fails in tag "go1.6.1" but it's innocuous
  • confirmed it is fixed in current master branch, which will become go1.7

@mikioh
Copy link
Contributor

mikioh commented May 26, 2016

@maruel,

I strongly believe that you misunderstand something. This issue never happens on go1.6 and below. Probably #14859 ?

@maruel
Copy link
Contributor

maruel commented May 26, 2016

Thanks @mikioh. Oh you are right, sorry about that. Ignore the noise.

@golang golang locked and limited conversation to collaborators May 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants