Skip to content

redhat 6.0 go test failure while centos 6.0 tested fine #3854

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

Closed
tjyang opened this issue Jul 23, 2012 · 3 comments
Closed

redhat 6.0 go test failure while centos 6.0 tested fine #3854

tjyang opened this issue Jul 23, 2012 · 3 comments

Comments

@tjyang
Copy link

tjyang commented Jul 23, 2012

I can not figure out why go 1.0.2 test failed on RHEL 6.0 but not centos 6.0.

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. cd go/src;./all.bash


What is the expected output?


# Checking API compatibility.
Go version is "go1.0.2", ignoring -next /home/gobuild/go/api/next.txt

ALL TESTS PASSED

---
Installed Go for linux/amd64 in /home/gobuild/go
Installed commands in /home/gobuild/go/bin
*** You need to add /home/gobuild/go/bin to your PATH.
[gobuild@b-rhel6-64 src]$ 

What do you see instead?

<snipped>
ok      math    0.017s
ok      math/big        0.235s
ok      math/cmplx      0.009s
ok      math/rand       0.238s
ok      mime    0.009s
ok      mime/multipart  0.360s
--- FAIL: TestDialTimeout (0.00 seconds)
        dial_test.go:22: listen tcp6 [::1]:0: cannot assign requested address
--- FAIL: TestSelfConnect (0.00 seconds)
        dial_test.go:117: listen tcp 127.0.0.1:0: cannot assign requested address
--- FAIL: TestFileListener (0.00 seconds)
        file_test.go:36: Listen failed: listen tcp 127.0.0.1:0: cannot assign requested address
--- FAIL: TestFilePacketConn (0.00 seconds)
        file_test.go:140: ListenPacket failed: listen udp 127.0.0.1:0: cannot assign requested address
--- FAIL: TestShutdown (0.00 seconds)
        net_test.go:22: ListenTCP on :0: listen tcp6 [::1]:0: cannot assign requested address
--- FAIL: TestTCPListenClose (0.00 seconds)
        net_test.go:64: Listen failed: listen tcp 127.0.0.1:0: cannot assign requested address
--- FAIL: TestUDPListenClose (0.00 seconds)
        net_test.go:91: Listen failed: listen udp 127.0.0.1:0: cannot assign requested address
--- FAIL: TestStreamConnServer (0.00 seconds)
        server_test.go:175: Listen("tcp", "127.0.0.1:0") failed: listen tcp 127.0.0.1:0: cannot assign requested address
        server_test.go:116: SplitHostPort("<nil>") failed: missing port in address <nil>
--- FAIL: TestTimeoutUDP (0.00 seconds)
        server_test.go:362: ListenPacket("udp", "127.0.0.1:0") failed: listen udp 127.0.0.1:0: cannot assign requested address
        timeout_test.go:17: Dial("udp", "<nil>") failed: missing port in address <nil>
        timeout_test.go:17: Dial("udp", "<nil>") failed: missing port in address <nil>
--- FAIL: TestTimeoutTCP (0.00 seconds)
        server_test.go:175: Listen("tcp", "127.0.0.1:0") failed: listen tcp 127.0.0.1:0: cannot assign requested address
        timeout_test.go:17: Dial("tcp", "<nil>") failed: missing port in address <nil>
--- FAIL: TestDeadlineReset (0.00 seconds)
        timeout_test.go:102: listen tcp 127.0.0.1:0: cannot assign requested address
--- FAIL: TestWriteToUDP (0.00 seconds)
        udp_test.go:21: Listen failed: listen udp 127.0.0.1:0: cannot assign requested address
--- FAIL: TestTCPListener (0.00 seconds)
        unicast_test.go:328: Probe Listen("tcp", "127.0.0.1") failed: listen tcp 127.0.0.1:0: cannot assign requested address
--- FAIL: TestUDPListener (0.00 seconds)
        unicast_test.go:348: Probe ListenPacket("udp", "127.0.0.1") failed: listen udp 127.0.0.1:0: cannot assign requested address
--- FAIL: TestSimpleTCPListener (0.00 seconds)
        unicast_test.go:328: Probe Listen("tcp", "127.0.0.1") failed: listen tcp 127.0.0.1:0: cannot assign requested address
--- FAIL: TestSimpleUDPListener (0.00 seconds)
        unicast_test.go:348: Probe ListenPacket("udp", "127.0.0.1") failed: listen udp 127.0.0.1:0: cannot assign requested address
FAIL
FAIL    net     0.296s
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: cannot assign
requested address [recovered]
        panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: cannot assign requested address

goroutine 23 [running]:
testing._func_003(0x7f47d205ffa8, 0x7f47d205f100, 0x7f47d205ffb8, 0x7f47d205fd20)
        /home/gobuild/go/src/pkg/testing/testing.go:268 +0xf3
----- stack segment boundary -----
net/http/httptest.newLocalListener(0x200410088, 0x408b7a)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:61 +0x344
net/http/httptest.NewUnstartedServer(0xf840373d80, 0x478ddb, 0x7f47d205fea8,
0x7f47d205fea0, 0x4516b3, ...)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:89 +0x1c
net/http/httptest.NewServer(0xf840373d80, 0x478ddb, 0x478ddb, 0xf840373d80, 0x478ddb,
...)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:76 +0x31
net/http_test.TestClient(0xf840081a80, 0x6eded0)
        /home/gobuild/go/src/pkg/net/http/client_test.go:56 +0x54
testing.tRunner(0xf840081a80, 0x7c6010, 0x0, 0x0)
        /home/gobuild/go/src/pkg/testing/testing.go:273 +0x6f
created by testing.RunTests
        /home/gobuild/go/src/pkg/testing/testing.go:349 +0x782

goroutine 1 [chan receive]:
testing.RunTests(0x400c00, 0x7c5e48, 0x6c0000006c, 0x6c3c01, 0xf8400c2c78, ...)
        /home/gobuild/go/src/pkg/testing/testing.go:350 +0x7a5
testing.Main(0x400c00, 0x7c5e48, 0x6c0000006c, 0x7bd658, 0x100000001, ...)
        /home/gobuild/go/src/pkg/testing/testing.go:285 +0x7a
main.main()
        /tmp/go-build033930354/net/http/_test/_testmain.go:261 +0x91

goroutine 2 [syscall]:
created by runtime.main
        /home/gobuild/go/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]:
created by addtimer
        /home/gobuild/go/src/pkg/runtime/ztime_amd64.c:72
FAIL    net/http        0.393s
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: cannot assign
requested address [recovered]
        panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: cannot assign requested address

goroutine 18 [running]:
testing._func_003(0x7f604f6d9fa8, 0x7f604f6d9100, 0x7f604f6d9fb8, 0x7f604f6d9c90)
        /home/gobuild/go/src/pkg/testing/testing.go:268 +0xf3
----- stack segment boundary -----
net/http/httptest.newLocalListener(0x200000000, 0x407954)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:61 +0x344
net/http/httptest.NewUnstartedServer(0xf8400c5840, 0xf8400be980, 0x7f604f6d9e18,
0x7f604f6d9e10, 0x42bf4d, ...)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:89 +0x1c
net/http/httptest.NewServer(0xf8400c5840, 0xf8400be980, 0xf8400be980, 0xf8400c5840,
0xf8400be980, ...)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:76 +0x31
net/http/cgi.TestCopyError(0xf840000850, 0x15222418)
        /home/gobuild/go/src/pkg/net/http/cgi/host_test.go:322 +0xb2
testing.tRunner(0xf840000850, 0x72d218, 0x0, 0x0)
        /home/gobuild/go/src/pkg/testing/testing.go:273 +0x6f
created by testing.RunTests
        /home/gobuild/go/src/pkg/testing/testing.go:349 +0x782

goroutine 1 [chan receive]:
testing.RunTests(0x400c00, 0x72d0f8, 0x1300000013, 0x499101, 0xf84009f310, ...)
        /home/gobuild/go/src/pkg/testing/testing.go:350 +0x7a5
testing.Main(0x400c00, 0x72d0f8, 0x1300000013, 0x72fe18, 0x0, ...)
        /home/gobuild/go/src/pkg/testing/testing.go:285 +0x7a
main.main()
        /tmp/go-build033930354/net/http/cgi/_test/_testmain.go:79 +0x91

goroutine 2 [syscall]:
created by runtime.main
        /home/gobuild/go/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]:
created by addtimer
        /home/gobuild/go/src/pkg/runtime/ztime_amd64.c:72

goroutine 11 [finalizer wait]:
created by runtime.gc
        /home/gobuild/go/src/pkg/runtime/mgc0.c:882
FAIL    net/http/cgi    0.669s
ok      net/http/fcgi   0.020s
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: cannot assign
requested address [recovered]
        panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: cannot assign requested address

goroutine 4 [running]:
testing._func_003(0x7f5ffbed0fa8, 0x7f5ffbed0100, 0x7f5ffbed0fb8, 0x7f5ffbed0d38)
        /home/gobuild/go/src/pkg/testing/testing.go:268 +0xf3
----- stack segment boundary -----
net/http/httptest.newLocalListener(0x202725780, 0x40786a)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:61 +0x344
net/http/httptest.NewUnstartedServer(0xf84005f990, 0x425468, 0x7f5ffbed0ec0,
0x7f5ffbed0eb8, 0x425085, ...)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:89 +0x1c
net/http/httptest.NewServer(0xf84005f990, 0x425468, 0x425468, 0xf84005f990, 0x425468,
...)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:76 +0x31
net/http/httptest.TestServer(0xf84006c1c0, 0x234a5128)
        /home/gobuild/go/src/pkg/net/http/httptest/server_test.go:16 +0x51
testing.tRunner(0xf84006c1c0, 0x7065d0, 0x0, 0x0)
        /home/gobuild/go/src/pkg/testing/testing.go:273 +0x6f
created by testing.RunTests
        /home/gobuild/go/src/pkg/testing/testing.go:349 +0x782

goroutine 1 [chan receive]:
testing.RunTests(0x400c00, 0x7065d0, 0x100000001, 0x1, 0x6f6840, ...)
        /home/gobuild/go/src/pkg/testing/testing.go:350 +0x7a5
testing.Main(0x400c00, 0x7065d0, 0x100000001, 0x70bc70, 0x0, ...)
        /home/gobuild/go/src/pkg/testing/testing.go:285 +0x7a
main.main()
        /tmp/go-build033930354/net/http/httptest/_test/_testmain.go:43 +0x91

goroutine 2 [syscall]:
created by runtime.main
        /home/gobuild/go/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]:
created by addtimer
        /home/gobuild/go/src/pkg/runtime/ztime_amd64.c:72
FAIL    net/http/httptest       0.065s
panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: cannot assign
requested address [recovered]
        panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: cannot assign requested address

goroutine 10 [running]:
testing._func_003(0x7f3d92332fa8, 0x7f3d92332100, 0x7f3d92332fb8, 0x7f3d92332be8)
        /home/gobuild/go/src/pkg/testing/testing.go:268 +0xf3
----- stack segment boundary -----
net/http/httptest.newLocalListener(0x2400b3570, 0x4085d5)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:61 +0x344
net/http/httptest.NewUnstartedServer(0xf8400ca060, 0xf8400b3540, 0x7f3d92332d70,
0x7f3d92332d68, 0x428cad, ...)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:89 +0x1c
net/http/httptest.NewServer(0xf8400ca060, 0xf8400b3540, 0xf8400b3540, 0xf8400ca060,
0xf8400b3540, ...)
        /home/gobuild/go/src/pkg/net/http/httptest/server.go:76 +0x31
net/http/httputil.TestReverseProxy(0xf8400d0000, 0xb7edb18)
        /home/gobuild/go/src/pkg/net/http/httputil/reverseproxy_test.go:37 +0x94
testing.tRunner(0xf8400d0000, 0x71b150, 0x0, 0x0)
        /home/gobuild/go/src/pkg/testing/testing.go:273 +0x6f
created by testing.RunTests
        /home/gobuild/go/src/pkg/testing/testing.go:349 +0x782

goroutine 1 [chan receive]:
testing.RunTests(0x400c00, 0x71b120, 0x400000004, 0x1, 0x709840, ...)
        /home/gobuild/go/src/pkg/testing/testing.go:350 +0x7a5
testing.Main(0x400c00, 0x71b120, 0x400000004, 0x71f1b0, 0x0, ...)
        /home/gobuild/go/src/pkg/testing/testing.go:285 +0x7a
main.main()
        /tmp/go-build033930354/net/http/httputil/_test/_testmain.go:49 +0x91

goroutine 2 [syscall]:
created by runtime.main
        /home/gobuild/go/src/pkg/runtime/proc.c:221

goroutine 3 [syscall]:
created by addtimer
        /home/gobuild/go/src/pkg/runtime/ztime_amd64.c:72

goroutine 7 [chan receive]:
net/http.(*persistConn).readLoop(0xf8400c4060, 0x0)
        /home/gobuild/go/src/pkg/net/http/transport.go:539 +0x26e
created by net/http.(*Transport).getConn
        /home/gobuild/go/src/pkg/net/http/transport.go:382 +0x5df

goroutine 9 [chan receive]:
net/http.(*persistConn).readLoop(0xf8400c4360, 0x0)
        /home/gobuild/go/src/pkg/net/http/transport.go:539 +0x26e
created by net/http.(*Transport).getConn
        /home/gobuild/go/src/pkg/net/http/transport.go:382 +0x5df
FAIL    net/http/httputil       0.065s
?       net/http/pprof  [no test files]
ok      net/mail        0.053s
2012/07/23 10:56:04 net.Listen tcp :0: listen tcp 127.0.0.1:0: cannot assign requested
address
FAIL    net/rpc 0.044s
ok      net/rpc/jsonrpc 0.021s
ok      net/smtp        0.016s
ok      net/textproto   0.022s
ok      net/url 0.059s
ok      os      0.341s
--- FAIL: TestExtraFiles (0.00 seconds)
        exec_test.go:166: listen tcp 127.0.0.1:0: cannot assign requested address
FAIL
FAIL    os/exec 0.081s
ok      os/signal       0.010s
ok      os/user 0.012s
ok      path    0.009s
ok      path/filepath   0.967s
ok      reflect 0.012s
ok      regexp  0.133s
ok      regexp/syntax   1.287s
ok      runtime 0.727s
?       runtime/cgo     [no test files]
ok      runtime/debug   0.009s
ok      runtime/pprof   0.833s
ok      sort    0.213s
ok      strconv 0.856s
ok      strings 0.062s
ok      sync    0.086s
ok      sync/atomic     0.141s
?       syscall [no test files]
?       testing [no test files]
?       testing/iotest  [no test files]
ok      testing/quick   0.079s
ok      text/scanner    0.011s
ok      text/tabwriter  0.080s
ok      text/template   0.031s
ok      text/template/parse     0.012s
ok      time    2.573s
ok      unicode 0.047s
ok      unicode/utf16   0.009s
ok      unicode/utf8    0.011s
?       unsafe  [no test files]
[gobuild@b-rhel6-64 src]$




Which operating system are you using?

[gobuild@b-rhel6-64 src]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.0 (Santiago)
[gobuild@b-rhel6-64 src]$


Which version are you using?  (run 'go version')

[gobuild@b-rhel6-64 src]$ ../bin/go version
go version go1.0.2
[gobuild@b-rhel6-64 src]$


Please provide any additional information below.

selinux is disabled.

[gobuild@b-rhel6-64 src]$ grep disabled /etc/selinux/config
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
[gobuild@b-rhel6-64 src]$

firewall is disabled.
[gobuild@b-rhel6-64 src]$ sudo /etc/init.d/iptables status
iptables: Firewall is not running.
[gobuild@b-rhel6-64 src]$ sudo /etc/init.d/ip6tables status
ip6tables: Firewall is not running.
[gobuild@b-rhel6-64 src]$
@remyoudompheng
Copy link
Contributor

Comment 1:

You seem to be missing a loopback interface. Can you even ping localhost?

@tjyang
Copy link
Author

tjyang commented Jul 23, 2012

Comment 2:

Thanks for the pointer, I did failed to ping localhost(127.0.0.1). Now it is a Unix
admin issue. This ticket can be resolved.

@remyoudompheng
Copy link
Contributor

Comment 3:

Status changed to WorkingAsIntended.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
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

3 participants