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: TestInterfaceList fails on Windows #13461

Closed
chanxuehong opened this issue Dec 3, 2015 · 6 comments
Closed

net: TestInterfaceList fails on Windows #13461

chanxuehong opened this issue Dec 3, 2015 · 6 comments

Comments

@chanxuehong
Copy link
Contributor

1.What version of Go are you using ( go version )?
go version go1.4.3 windows/amd64
2.What operating system and processor architecture are you using?
windows 10 / amd64
3.What did you do?
build go1.5.2
4.What did you expect to see?
success
5.What did you see instead?

ok      mime/quotedprintable    1.687s
--- FAIL: TestInterfaceList (16.55s)
        net_windows_test.go:216: unexpected interface list ["Loopback Pseudo-Interface 1" "无线网络连接"], want ["Bluetooth \xcd\xf8\xc2\xe7\xc1\xac\xbd\xd3" "Loopback Pseudo-Interface 1" "\xb1\xbe\xb5\xd8\xc1\xac\xbd\xd3" "\xce\xde\xcf\xdf\xcd\xf8\xc2\xe7\xc1\xac\xbd\xd3"]
FAIL
FAIL    net     26.732s
ok      net/http        6.755s
ok      runtime/debug   0.170s
--- FAIL: TestBlockProfile (0.25s)
        pprof_test.go:400: Bad select recv async entry, expect:

                [0-9]+ [0-9]+ @ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+
                #       0x[0-9,a-f]+    runtime\.selectgo\+0x[0-9,a-f]+ .*/src/runtime/select.go:[0-9]+
                #       0x[0-9,a-f]+    runtime/pprof_test\.blockSelectRecvAsync\+0x[0-9,a-f]+  .*/src/runtime/pprof/pprof_test.go:[0-9]+
                #       0x[0-9,a-f]+    runtime/pprof_test\.TestBlockProfile\+0x[0-9,a-f]+      .*/src/runtime/pprof/pprof_test.go:[0-9]+

                got:
                --- contention:
                cycles/second=2595584673
                28631845 1 @ 0x43b3f2 0x493069 0x49249b 0x480cbf 0x45cd01
                #       0x43b3f2        runtime.selectgo+0x12
        D:/go1.5.2/src/runtime/select.go:212
                #       0x493069        runtime/pprof_test.blockSelectSendSync+0x149    D:/go1.5.2/src/runtime/pprof/pprof_test.go:454
                #       0x49249b        runtime/pprof_test.TestBlockProfile+0x1fb       D:/go1.5.2/src/runtime/pprof/pprof_test.go:388
                #       0x480cbf        testing.tRunner+0x9f
        D:/go1.5.2/src/testing/testing.go:456

                25926472 1 @ 0x403d1b 0x492dcd 0x49249b 0x480cbf 0x45cd01
                #       0x403d1b        runtime.chanrecv1+0x2b
        D:/go1.5.2/src/runtime/chan.go:350
                #       0x492dcd        runtime/pprof_test.blockChanClose+0x7d
        D:/go1.5.2/src/runtime/pprof/pprof_test.go:431
                #       0x49249b        runtime/pprof_test.TestBlockProfile+0x1fb       D:/go1.5.2/src/runtime/pprof/pprof_test.go:388
                #       0x480cbf        testing.tRunner+0x9f
        D:/go1.5.2/src/testing/testing.go:456

                25865929 1 @ 0x4bcfd2 0x493205 0x49249b 0x480cbf 0x45cd01
                #       0x4bcfd2        sync.(*Cond).Wait+0xa2
        D:/go1.5.2/src/sync/cond.go:63
                #       0x493205        runtime/pprof_test.blockCond+0x105
        D:/go1.5.2/src/runtime/pprof/pprof_test.go:480
                #       0x49249b        runtime/pprof_test.TestBlockProfile+0x1fb       D:/go1.5.2/src/runtime/pprof/pprof_test.go:388
                #       0x480cbf        testing.tRunner+0x9f
        D:/go1.5.2/src/testing/testing.go:456

                25854822 1 @ 0x4bd46b 0x4930ed 0x49249b 0x480cbf 0x45cd01
                #       0x4bd46b        sync.(*Mutex).Lock+0x1cb
        D:/go1.5.2/src/sync/mutex.go:83
                #       0x4930ed        runtime/pprof_test.blockMutex+0x6d
        D:/go1.5.2/src/runtime/pprof/pprof_test.go:467
                #       0x49249b        runtime/pprof_test.TestBlockProfile+0x1fb       D:/go1.5.2/src/runtime/pprof/pprof_test.go:388
                #       0x480cbf        testing.tRunner+0x9f
        D:/go1.5.2/src/testing/testing.go:456

                25805887 1 @ 0x402d53 0x492d33 0x49249b 0x480cbf 0x45cd01
                #       0x402d53        runtime.chansend1+0x43
        D:/go1.5.2/src/runtime/chan.go:93
                #       0x492d33        runtime/pprof_test.blockChanSend+0x83
        D:/go1.5.2/src/runtime/pprof/pprof_test.go:422
                #       0x49249b        runtime/pprof_test.TestBlockProfile+0x1fb       D:/go1.5.2/src/runtime/pprof/pprof_test.go:388
                #       0x480cbf        testing.tRunner+0x9f
        D:/go1.5.2/src/testing/testing.go:456

                23603332 1 @ 0x403d1b 0x492c9d 0x49249b 0x480cbf 0x45cd01
                #       0x403d1b        runtime.chanrecv1+0x2b
        D:/go1.5.2/src/runtime/chan.go:350
                #       0x492c9d        runtime/pprof_test.blockChanRecv+0x7d
        D:/go1.5.2/src/runtime/pprof/pprof_test.go:413
                #       0x49249b        runtime/pprof_test.TestBlockProfile+0x1fb       D:/go1.5.2/src/runtime/pprof/pprof_test.go:388
                #       0x480cbf        testing.tRunner+0x9f
        D:/go1.5.2/src/testing/testing.go:456

FAIL
FAIL    runtime/pprof   7.102s
D:\go1.5.2\src>ipconfig /all

Windows IP 配置

   主机名  . . . . . . . . . . . . . : chan-PC
   主 DNS 后缀 . . . . . . . . . . . :
   节点类型  . . . . . . . . . . . . : 混合
   IP 路由已启用 . . . . . . . . . . : 是
   WINS 代理已启用 . . . . . . . . . : 否

以太网适配器 本地连接:

   媒体状态  . . . . . . . . . . . . : 媒体已断开连接
   连接特定的 DNS 后缀 . . . . . . . :
   描述. . . . . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   物理地址. . . . . . . . . . . . . : 28-D2-44-2B-99-02
   DHCP 已启用 . . . . . . . . . . . : 是
   自动配置已启用. . . . . . . . . . : 是

无线局域网适配器 无线网络连接:

   连接特定的 DNS 后缀 . . . . . . . :
   描述. . . . . . . . . . . . . . . : 1x1 11b/g/n 无线局域网 PCI Express Half Mini Card 适配器
   物理地址. . . . . . . . . . . . . : A4-DB-30-FE-D8-E1
   DHCP 已启用 . . . . . . . . . . . : 否
   自动配置已启用. . . . . . . . . . : 是
   本地链接 IPv6 地址. . . . . . . . : fe80::511e:c13a:2d03:aced%4(首选)
   IPv4 地址 . . . . . . . . . . . . : 192.168.1.80(首选)
   子网掩码  . . . . . . . . . . . . : 255.255.255.0
   默认网关. . . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 312793904
   DHCPv6 客户端 DUID  . . . . . . . : 00-01-00-01-1C-4B-A4-0B-28-D2-44-2B-99-02
   DNS 服务器  . . . . . . . . . . . : 202.102.213.68
                                       61.132.163.68
   TCPIP 上的 NetBIOS  . . . . . . . : 已启用

以太网适配器 Bluetooth 网络连接:

   媒体状态  . . . . . . . . . . . . : 媒体已断开连接
   连接特定的 DNS 后缀 . . . . . . . :
   描述. . . . . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
   物理地址. . . . . . . . . . . . . : B0-05-94-FE-6A-DD
   DHCP 已启用 . . . . . . . . . . . : 是
   自动配置已启用. . . . . . . . . . : 是

隧道适配器 Teredo Tunneling Pseudo-Interface:

   连接特定的 DNS 后缀 . . . . . . . :
   描述. . . . . . . . . . . . . . . : Microsoft Teredo Tunneling Adapter
   物理地址. . . . . . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP 已启用 . . . . . . . . . . . : 否
   自动配置已启用. . . . . . . . . . : 是
   IPv6 地址 . . . . . . . . . . . . : 2001:0:5ef5:79fd:1ca1:379:dbc0:8d96(首选)
   本地链接 IPv6 地址. . . . . . . . : fe80::1ca1:379:dbc0:8d96%9(首选)
   默认网关. . . . . . . . . . . . . : ::
   DHCPv6 IAID . . . . . . . . . . . : 335544320
   DHCPv6 客户端 DUID  . . . . . . . : 00-01-00-01-1C-4B-A4-0B-28-D2-44-2B-99-02
   TCPIP 上的 NetBIOS  . . . . . . . : 已禁用

隧道适配器 isatap.{2DF95280-F517-4E59-B5C4-9B3EC1664A70}:

   媒体状态  . . . . . . . . . . . . : 媒体已断开连接
   连接特定的 DNS 后缀 . . . . . . . :
   描述. . . . . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   物理地址. . . . . . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP 已启用 . . . . . . . . . . . : 否
   自动配置已启用. . . . . . . . . . : 是

D:\go1.5.2\src>
@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Dec 3, 2015
@ianlancetaylor ianlancetaylor changed the title go1.5.2 build failed build: go1.5.2 build failed on Windows Dec 3, 2015
@chanxuehong
Copy link
Contributor Author

see #13476

@alexbrainman
Copy link
Member

@chanxuehong

I think you have 2 diferent bugs here: TestInterfaceList and TestBlockProfile. I am not sure about TestBlockProfile, but, I suspect, your TestInterfaceList failure is similar to issue #12812. Do you agree?

Alex

@alexbrainman
Copy link
Member

Can you also try current tip to see if TestInterfaceList PASS? Thank you.

Alex

@litg
Copy link

litg commented Dec 4, 2015

C:\go\src>chcp 65001
c:\go\src>all.bat

ALL TESTS PASSED!

@chanxuehong
Copy link
Contributor Author

@alexbrainman I'm sorry I just saw this.
@litg thanks a lot.
see #13476
it solved the problem.

@alexbrainman
Copy link
Member

Should this issue be closed?

Alex

@rsc rsc closed this as completed Dec 5, 2015
@mikioh mikioh changed the title build: go1.5.2 build failed on Windows net: TestInterfaceList fails on Windows Jan 14, 2016
@golang golang locked and limited conversation to collaborators Jan 13, 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

6 participants