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: TestDialError fails #32

gopherbot opened this issue Nov 11, 2009 · 3 comments


None yet
3 participants
Copy link

commented Nov 11, 2009

by limit.usus:

What steps will reproduce the problem? make.bash run.bash

What is the expected output? What do you see instead?
I expected all tests will be passed but caught error.
Error occurs while running test program:
 %  ./run.bash
make[1]: Entering directory `/home/limit/hg/go/src/pkg/net'
make[2]: Entering directory `/home/limit/hg/go/src/pkg/net'
rm -f _test/net.a _gotest_.6
make[2]: Leaving directory `/home/limit/hg/go/src/pkg/net'
make[2]: Entering directory `/home/limit/hg/go/src/pkg/net'
6g -o _gotest_.6 dnsclient.go dnsconfig.go dnsmsg.go fd.go fd_linux.go
ip.go ipsock.go net.go parse.go port.go sock.go tcpsock.go udpsock.go
unixsock.go    dialgoogle_test.go ip_test.go net_test.go parse_test.go
port_test.go server_test.go timeout_test.go
rm -f _test/net.a
gopack grc _test/net.a _gotest_.6 
make[2]: Leaving directory `/home/limit/hg/go/src/pkg/net'
throw: index out of range

panic PC=0x2ba316c10d38
throw+0x3e /home/limit/hg/go/src/pkg/runtime/runtime.c:74
        throw(0x47f060, 0x0)
runtime·throwindex+0x1c /home/limit/hg/go/src/pkg/runtime/runtime.c:47
net·hostPortToIP+0x19a /home/limit/hg/go/src/pkg/net/ipsock.go:199
        net·hostPortToIP(0x446170, 0x0, 0x3, 0x0, 0x464280, ...)
net·ResolveTCPAddr+0x34 /home/limit/hg/go/src/pkg/net/tcpsock.go:61
        net·ResolveTCPAddr(0x464280, 0x0, 0xf, 0x0, 0x4462f0, ...)
net·Dial+0x2a3 /home/limit/hg/go/src/pkg/net/net.go:133
        net·Dial(0x446170, 0x0, 0x3, 0x0, 0x4462f0, ...)
net·TestDialError+0xbc /home/limit/hg/go/src/pkg/net/net_test.go:56
        net·TestDialError(0x16c5dd20, 0x2ba3)
testing·tRunner+0x22 /home/limit/hg/go/src/pkg/testing/testing.go:105
        testing·tRunner(0x16c5dd20, 0x2ba3, 0x494a28, 0x0)
goexit /home/limit/hg/go/src/pkg/runtime/proc.c:134
0x2ba316c5dd20 unknown pc

goroutine 3:
runtime·entersyscall+0x50 /home/limit/hg/go/src/pkg/runtime/proc.c:539
syscall·Syscall6+0x5 /home/limit/hg/go/src/pkg/syscall/asm_linux_amd64.s:41
        syscall·EpollWait(0x6, 0x2ba3, 0x16c2f120, 0x2ba3, 0x1, ...)
net·*pollster·WaitFD+0xb5 /home/limit/hg/go/src/pkg/net/fd_linux.go:116
        net·*pollster·WaitFD(0x16c09cb0, 0x2ba3, 0x399ca458, 0x0, 0x72, ...)
net·*pollServer·Run+0x9e /home/limit/hg/go/src/pkg/net/fd.go:237
        net·*pollServer·Run(0x16bcb5c0, 0x2ba3)
goexit /home/limit/hg/go/src/pkg/runtime/proc.c:134
0x2ba316bcb5c0 unknown pc

goroutine 1:
gosched+0x34 /home/limit/hg/go/src/pkg/runtime/proc.c:515
chanrecv+0x318 /home/limit/hg/go/src/pkg/runtime/chan.c:319
        chanrecv(0x16c61c80, 0x2ba3, 0x16c0ff68, 0x2ba3, 0x0, ...)
runtime·chanrecv1+0x50 /home/limit/hg/go/src/pkg/runtime/chan.c:415
        runtime·chanrecv1(0x16c61c80, 0x2ba3)
testing·Main+0x263 /home/limit/hg/go/src/pkg/testing/testing.go:132
        testing·Main(0x4949f8, 0x0)
main·main+0x23 /home/limit/hg/go/src/pkg/net/_testmain.go:21
mainstart+0xf /home/limit/hg/go/src/pkg/runtime/amd64/asm.s:55
goexit /home/limit/hg/go/src/pkg/runtime/proc.c:134
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/limit/hg/go/src/pkg/net'
make: *** [net.test] Error 2

What is your $GOOS?  $GOARCH?
 % echo $GOARCH
 % echo $GOOS

Which revision are you sync'ed to?  (hg log -l 1)
 % hg log -l 1
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links

Please provide any additional information below.

This comment has been minimized.

Copy link

commented Nov 11, 2009

Comment 1 by raptium:

I have the same problem while GOARCH=amd64 and GOOS=darwin on Mac OS X 10.6.1
I am using a vpn(lt2p over ipsec) connection and `all.bash` ends up with this error
`all.bash` can finish successfully if vpn is disabled.

This comment has been minimized.

Copy link

commented Nov 11, 2009

Comment 2:

Status changed to Duplicate.

Merged into issue #23.


This comment has been minimized.

Copy link

commented Aug 11, 2014

Comment 3:

CL mentions this issue.

@gopherbot gopherbot added the duplicate label Aug 11, 2014

@mikioh mikioh changed the title run.bash fails net: TestDialError fails Aug 5, 2015

@mikioh mikioh added this to the Go1.5 milestone Aug 5, 2015

@golang golang locked and limited conversation to collaborators Aug 5, 2016

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.