Skip to content

net: unit test failure #3057

@alberts

Description

@alberts
What steps will reproduce the problem?
1. run go tests

What do you see instead?

panic: interface conversion: interface is nil, not *net.TCPAddr

goroutine 215 [running]:
net.selfConnect(0xf8401691b0, 0x3, 0x0, 0x0)
go/workspace/go/src/pkg/net/tcpsock_posix.go:263 +0x5f
net.DialTCP(0x54f26c, 0xf800000003, 0x0, 0xf8400c1d00, 0x539f01, ...)
go/workspace/go/src/pkg/net/tcpsock_posix.go:250 +0x24e
net.dialAddr(0x54f26c, 0x70637400000003, 0xf8400b1e10, 0xf, 0xf840046cc0, ...)
go/workspace/go/src/pkg/net/dial.go:102 +0x20b
net._func_001(0xf8400b1e20, 0xf8400b1e30, 0xf84007ad98, 0xf84007ada0, 0x0, ...)
go/workspace/go/src/pkg/net/dial.go:140 +0x177
created by net.DialTimeout
go/workspace/go/src/pkg/net/dial.go:142 +0x17c

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

linux

Which revision are you using?  (hg identify)

tip

Please provide any additional information below.

Log attached.

Attachments:

  1. net.txt (41016 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions