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/http: test failures on linux/386 #5005
Labels
Milestone
Comments
see also issue #5007 |
it looks better after the 64-bit atomic fix, but there are still issues. go version devel +6415ff684316 Sun Mar 10 19:07:16 2013 -0700 linux/386 a lot of this: --- FAIL: TestTransportSocketLateBinding-2 (1.20 seconds) z_last_test.go:59: Test appears to have leaked a Transport: goroutine 104874 [running]: net/http_test.checkLeakedTransports(0x1916c4e0) /build/go.386/go/src/pkg/net/http/z_last_test.go:46 +0x196 net/http_test.TestTransportSocketLateBinding(0x1916c4e0) /build/go.386/go/src/pkg/net/http/transport_test.go:1382 +0x597 testing.tRunner(0x1916c4e0, 0x8434c78) /build/go.386/go/src/pkg/testing/testing.go:346 +0x87 created by testing.RunTests /build/go.386/go/src/pkg/testing/testing.go:426 +0x684 goroutine 1 [chan receive]: testing.RunTests(0x82f5538, 0x84345a0, 0x95, 0x95, 0x185b7701, ...) /build/go.386/go/src/pkg/testing/testing.go:427 +0x69f testing.Main(0x82f5538, 0x84345a0, 0x95, 0x95, 0x842f920, ...) /build/go.386/go/src/pkg/testing/testing.go:358 +0x69 main.main() net/http/_test/_testmain.go:361 +0x81 full log attached. Attachments:
|
I think there's some kind of general runtime issue here. Here's another one. --- FAIL: TestLinuxSendfile-2 (0.06 seconds) fs_test.go:727: no sendfile system call found in: go version devel +6415ff684316 Sun Mar 10 19:07:16 2013 -0700 linux/386 this is after the 64-bit atomic alignment fix go test -v -cpu 1,2,4 -timeout=30m net/http in a loop should reproduce all of these. full log attached Attachments:
|
This is the best I can do. GOMAXPROCS=1 won't help, because runtime can create threads even when GOMAXPROCS=1. https://golang.org/cl/7651045 |
just saw this on amd64, so it's not 386 flakiness only: still need to try the checkLeakedTransports stuff. will report back soon. --- FAIL: TestGoroutinesRunning-67 (0.00 seconds) z_last_test.go:19: num goroutines = 23 z_last_test.go:26: Too many goroutines: goroutine 2295 [running]: net/http_test.TestGoroutinesRunning(0xc2002f7ea0) /build/go.tip/go/src/pkg/net/http/z_last_test.go:25 +0x10f testing.tRunner(0xc2002f7ea0, 0x8eb438) /build/go.tip/go/src/pkg/testing/testing.go:346 +0x8a created by testing.RunTests /build/go.tip/go/src/pkg/testing/testing.go:426 +0x86b goroutine 1 [chan receive]: testing.RunTests(0x787b88, 0x8ea640, 0x96, 0x96, 0xc20010e301, ...) /build/go.tip/go/src/pkg/testing/testing.go:427 +0x88e testing.Main(0x787b88, 0x8ea640, 0x96, 0x96, 0x8e30e0, ...) /build/go.tip/go/src/pkg/testing/testing.go:358 +0x8a main.main() net/http/_test/_testmain.go:363 +0x9a goroutine 2 [syscall]: goroutine 37 [syscall]: syscall.Syscall6() /build/go.tip/go/src/pkg/syscall/asm_linux_amd64.s:41 +0x5 syscall.EpollWait(0x7, 0xc20010d170, 0xa, 0xa, 0xffffffffffffffff, ...) /build/go.tip/go/src/pkg/syscall/zerrors_linux_amd64.go:1872 +0x95 net.(*pollster).WaitFD(0xc20010d160, 0xc200695180, 0x0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_linux.go:151 +0x127 net.(*pollServer).Run(0xc200695180) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:206 +0x10a created by net.newPollServer /build/go.tip/go/src/pkg/net/fd_poll_unix.go:55 +0x2d5 goroutine 40 [syscall]: syscall.Syscall6() /build/go.tip/go/src/pkg/syscall/asm_linux_amd64.s:41 +0x5 syscall.EpollWait(0xb, 0xc20010d220, 0xa, 0xa, 0xffffffffffffffff, ...) /build/go.tip/go/src/pkg/syscall/zerrors_linux_amd64.go:1872 +0x95 net.(*pollster).WaitFD(0xc20010d210, 0xc200695330, 0x0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_linux.go:151 +0x127 net.(*pollServer).Run(0xc200695330) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:206 +0x10a created by net.newPollServer /build/go.tip/go/src/pkg/net/fd_poll_unix.go:55 +0x2d5 goroutine 810 [syscall]: syscall.Syscall6() /build/go.tip/go/src/pkg/syscall/asm_linux_amd64.s:41 +0x5 syscall.EpollWait(0x30, 0xc2002b3220, 0xa, 0xa, 0xffffffffffffffff, ...) /build/go.tip/go/src/pkg/syscall/zerrors_linux_amd64.go:1872 +0x95 net.(*pollster).WaitFD(0xc2002b3210, 0xc20023a210, 0x0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_linux.go:151 +0x127 net.(*pollServer).Run(0xc20023a210) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:206 +0x10a created by net.newPollServer /build/go.tip/go/src/pkg/net/fd_poll_unix.go:55 +0x2d5 goroutine 415 [syscall]: syscall.Syscall6() /build/go.tip/go/src/pkg/syscall/asm_linux_amd64.s:41 +0x5 syscall.EpollWait(0x19, 0xc200194010, 0xa, 0xa, 0xffffffffffffffff, ...) /build/go.tip/go/src/pkg/syscall/zerrors_linux_amd64.go:1872 +0x95 net.(*pollster).WaitFD(0xc200194000, 0xc2002fa360, 0x0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_linux.go:151 +0x127 net.(*pollServer).Run(0xc2002fa360) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:206 +0x10a created by net.newPollServer /build/go.tip/go/src/pkg/net/fd_poll_unix.go:55 +0x2d5 goroutine 100 [syscall]: syscall.Syscall6() /build/go.tip/go/src/pkg/syscall/asm_linux_amd64.s:41 +0x5 syscall.EpollWait(0xf, 0xc20010d2d0, 0xa, 0xa, 0xffffffffffffffff, ...) /build/go.tip/go/src/pkg/syscall/zerrors_linux_amd64.go:1872 +0x95 net.(*pollster).WaitFD(0xc20010d2c0, 0xc2008872d0, 0x0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_linux.go:151 +0x127 net.(*pollServer).Run(0xc2008872d0) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:206 +0x10a created by net.newPollServer /build/go.tip/go/src/pkg/net/fd_poll_unix.go:55 +0x2d5 goroutine 984 [sleep]: time.Sleep(0x1dcd6500) /build/go.tip/go/src/pkg/runtime/ztime_linux_amd64.c:19 +0x2f net/http.(*conn).closeWriteAndWait(0xc200273180) /build/go.tip/go/src/pkg/net/http/server.go:778 +0x6d net/http.(*conn).serve(0xc200273180) /build/go.tip/go/src/pkg/net/http/server.go:880 +0x7bb created by net/http.(*Server).Serve /build/go.tip/go/src/pkg/net/http/server.go:1338 +0x266 goroutine 333 [finalizer wait]: goroutine 236 [syscall]: syscall.Syscall6() /build/go.tip/go/src/pkg/syscall/asm_linux_amd64.s:41 +0x5 syscall.EpollWait(0x14, 0xc2006a3010, 0xa, 0xa, 0xffffffffffffffff, ...) /build/go.tip/go/src/pkg/syscall/zerrors_linux_amd64.go:1872 +0x95 net.(*pollster).WaitFD(0xc2006a3000, 0xc20085f570, 0x0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_linux.go:151 +0x127 net.(*pollServer).Run(0xc20085f570) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:206 +0x10a created by net.newPollServer /build/go.tip/go/src/pkg/net/fd_poll_unix.go:55 +0x2d5 goroutine 489 [syscall]: syscall.Syscall6() /build/go.tip/go/src/pkg/syscall/asm_linux_amd64.s:41 +0x5 syscall.EpollWait(0x1d, 0xc2002b3170, 0xa, 0xa, 0xffffffffffffffff, ...) /build/go.tip/go/src/pkg/syscall/zerrors_linux_amd64.go:1872 +0x95 net.(*pollster).WaitFD(0xc2002b3160, 0xc2003548a0, 0x0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_linux.go:151 +0x127 net.(*pollServer).Run(0xc2003548a0) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:206 +0x10a created by net.newPollServer /build/go.tip/go/src/pkg/net/fd_poll_unix.go:55 +0x2d5 goroutine 2106 [chan receive]: net/http.func·015() /build/go.tip/go/src/pkg/net/http/transport.go:418 +0x39 created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:421 +0x217 goroutine 2109 [chan receive]: net.(*pollServer).WaitWrite(0xc200695180, 0xc2006ad410, 0xc20009b420, 0x73) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:260 +0x63 net.(*netFD).connect(0xc2006ad410, 0xc200695120, 0xc2003e33a0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_unix.go:99 +0x15f net.socket(0x712400, 0x3, 0x2, 0x1, 0x0, ...) /build/go.tip/go/src/pkg/net/sock_posix.go:55 +0x301 net.internetSocket(0x712400, 0x3, 0x0, 0x0, 0xc20017c3c0, ...) /build/go.tip/go/src/pkg/net/ipsock_posix.go:146 +0x423 net.dialTCP(0x712400, 0x3, 0x0, 0xc2006d2ae0, 0x0, ...) /build/go.tip/go/src/pkg/net/tcpsock_posix.go:153 +0x111 net.dial(0x712400, 0x3, 0xc2006d2a27, 0xf, 0x0, ...) /build/go.tip/go/src/pkg/net/dial.go:214 +0x3cc net.DialOpt(0xc2006d2a27, 0xf, 0x7fa69ea7ada8, 0x1, 0x1, ...) /build/go.tip/go/src/pkg/net/dial.go:204 +0x1ff net.Dial(0x712400, 0x3, 0xc2006d2a27, 0xf, 0xc2000a0820, ...) /build/go.tip/go/src/pkg/net/dial.go:189 +0xd4 net/http.(*Transport).dial(0xc2008c4080, 0x712400, 0x3, 0xc2006d2a27, 0xf, ...) /build/go.tip/go/src/pkg/net/http/transport.go:384 +0xd2 net/http.(*Transport).dialConn(0xc2008c4080, 0xc2006d2ab0, 0xc2003e0e88, 0xc200b20280, 0xc2008c1840, ...) /build/go.tip/go/src/pkg/net/http/transport.go:427 +0x6c net/http.func·014() /build/go.tip/go/src/pkg/net/http/transport.go:402 +0x3c created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:404 +0x11b goroutine 807 [syscall]: syscall.Syscall6() /build/go.tip/go/src/pkg/syscall/asm_linux_amd64.s:41 +0x5 syscall.EpollWait(0x24, 0xc200194430, 0xa, 0xa, 0xffffffffffffffff, ...) /build/go.tip/go/src/pkg/syscall/zerrors_linux_amd64.go:1872 +0x95 net.(*pollster).WaitFD(0xc200194420, 0xc200277c60, 0x0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_linux.go:151 +0x127 net.(*pollServer).Run(0xc200277c60) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:206 +0x10a created by net.newPollServer /build/go.tip/go/src/pkg/net/fd_poll_unix.go:55 +0x2d5 goroutine 2112 [chan receive]: net/http.func·015() /build/go.tip/go/src/pkg/net/http/transport.go:418 +0x39 created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:421 +0x217 goroutine 2099 [chan receive]: net.(*pollServer).WaitWrite(0xc2003548a0, 0xc200876820, 0xc20009b420, 0x73) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:260 +0x63 net.(*netFD).connect(0xc200876820, 0xc200695120, 0xc200837380, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_unix.go:99 +0x15f net.socket(0x712400, 0x3, 0x2, 0x1, 0x0, ...) /build/go.tip/go/src/pkg/net/sock_posix.go:55 +0x301 net.internetSocket(0x712400, 0x3, 0x0, 0x0, 0xc20017c3c0, ...) /build/go.tip/go/src/pkg/net/ipsock_posix.go:146 +0x423 net.dialTCP(0x712400, 0x3, 0x0, 0xc2006ef4e0, 0x0, ...) /build/go.tip/go/src/pkg/net/tcpsock_posix.go:153 +0x111 net.dial(0x712400, 0x3, 0xc2006ef337, 0xf, 0x0, ...) /build/go.tip/go/src/pkg/net/dial.go:214 +0x3cc net.DialOpt(0xc2006ef337, 0xf, 0x7fa688035da8, 0x1, 0x1, ...) /build/go.tip/go/src/pkg/net/dial.go:204 +0x1ff net.Dial(0x712400, 0x3, 0xc2006ef337, 0xf, 0x0, ...) /build/go.tip/go/src/pkg/net/dial.go:189 +0xd4 net/http.(*Transport).dial(0xc2008c4080, 0x712400, 0x3, 0xc2006ef337, 0xf, ...) /build/go.tip/go/src/pkg/net/http/transport.go:384 +0xd2 net/http.(*Transport).dialConn(0xc2008c4080, 0xc2006ef390, 0x421f10, 0x749b89, 0x4, ...) /build/go.tip/go/src/pkg/net/http/transport.go:427 +0x6c net/http.func·014() /build/go.tip/go/src/pkg/net/http/transport.go:402 +0x3c created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:404 +0x11b goroutine 2101 [chan receive]: net.(*pollServer).WaitWrite(0xc2008872d0, 0xc2008768f0, 0xc20009b420, 0x73) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:260 +0x63 net.(*netFD).connect(0xc2008768f0, 0xc200695120, 0xc2008373a0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_unix.go:99 +0x15f net.socket(0x712400, 0x3, 0x2, 0x1, 0x0, ...) /build/go.tip/go/src/pkg/net/sock_posix.go:55 +0x301 net.internetSocket(0x712400, 0x3, 0x0, 0x0, 0xc20017c3c0, ...) /build/go.tip/go/src/pkg/net/ipsock_posix.go:146 +0x423 net.dialTCP(0x712400, 0x3, 0x0, 0xc2006ef510, 0x0, ...) /build/go.tip/go/src/pkg/net/tcpsock_posix.go:153 +0x111 net.dial(0x712400, 0x3, 0xc2006ef3c7, 0xf, 0x0, ...) /build/go.tip/go/src/pkg/net/dial.go:214 +0x3cc net.DialOpt(0xc2006ef3c7, 0xf, 0x7fa688034da8, 0x1, 0x1, ...) /build/go.tip/go/src/pkg/net/dial.go:204 +0x1ff net.Dial(0x712400, 0x3, 0xc2006ef3c7, 0xf, 0x0, ...) /build/go.tip/go/src/pkg/net/dial.go:189 +0xd4 net/http.(*Transport).dial(0xc2008c4080, 0x712400, 0x3, 0xc2006ef3c7, 0xf, ...) /build/go.tip/go/src/pkg/net/http/transport.go:384 +0xd2 net/http.(*Transport).dialConn(0xc2008c4080, 0xc2006ef420, 0x0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/http/transport.go:427 +0x6c net/http.func·014() /build/go.tip/go/src/pkg/net/http/transport.go:402 +0x3c created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:404 +0x11b goroutine 2107 [chan receive]: net.(*pollServer).WaitWrite(0xc20023a210, 0xc200a539c0, 0xc20009b420, 0x73) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:260 +0x63 net.(*netFD).connect(0xc200a539c0, 0xc200695120, 0xc200211a40, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_unix.go:99 +0x15f net.socket(0x712400, 0x3, 0x2, 0x1, 0x0, ...) /build/go.tip/go/src/pkg/net/sock_posix.go:55 +0x301 net.internetSocket(0x712400, 0x3, 0x0, 0x0, 0xc20017c3c0, ...) /build/go.tip/go/src/pkg/net/ipsock_posix.go:146 +0x423 net.dialTCP(0x712400, 0x3, 0x0, 0xc2006d2150, 0x0, ...) /build/go.tip/go/src/pkg/net/tcpsock_posix.go:153 +0x111 net.dial(0x712400, 0x3, 0xc2006d20c7, 0xf, 0x0, ...) /build/go.tip/go/src/pkg/net/dial.go:214 +0x3cc net.DialOpt(0xc2006d20c7, 0xf, 0x7fa68808bda8, 0x1, 0x1, ...) /build/go.tip/go/src/pkg/net/dial.go:204 +0x1ff net.Dial(0x712400, 0x3, 0xc2006d20c7, 0xf, 0x0, ...) /build/go.tip/go/src/pkg/net/dial.go:189 +0xd4 net/http.(*Transport).dial(0xc2008c4080, 0x712400, 0x3, 0xc2006d20c7, 0xf, ...) /build/go.tip/go/src/pkg/net/http/transport.go:384 +0xd2 net/http.(*Transport).dialConn(0xc2008c4080, 0xc2006d2120, 0x421f10, 0x749b89, 0x4, ...) /build/go.tip/go/src/pkg/net/http/transport.go:427 +0x6c net/http.func·014() /build/go.tip/go/src/pkg/net/http/transport.go:402 +0x3c created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:404 +0x11b goroutine 2111 [chan receive]: net/http.func·015() /build/go.tip/go/src/pkg/net/http/transport.go:418 +0x39 created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:421 +0x217 goroutine 2113 [chan receive]: net/http.func·015() /build/go.tip/go/src/pkg/net/http/transport.go:418 +0x39 created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:421 +0x217 FAIL |
The TestGoroutinesRunning test could be smarter and parse out each goroutine and discard ones that are innocuous, such as those in syscall.EpollWait from newPollServer. That's one per CPU or whatever, and shouldn't count. The ones that bother me are these 4: goroutine 2109 [chan receive]: net.(*pollServer).WaitWrite(0xc200695180, 0xc2006ad410, 0xc20009b420, 0x73) /build/go.tip/go/src/pkg/net/fd_poll_unix.go:260 +0x63 net.(*netFD).connect(0xc2006ad410, 0xc200695120, 0xc2003e33a0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_unix.go:99 +0x15f net.socket(0x712400, 0x3, 0x2, 0x1, 0x0, ...) /build/go.tip/go/src/pkg/net/sock_posix.go:55 +0x301 net.internetSocket(0x712400, 0x3, 0x0, 0x0, 0xc20017c3c0, ...) /build/go.tip/go/src/pkg/net/ipsock_posix.go:146 +0x423 net.dialTCP(0x712400, 0x3, 0x0, 0xc2006d2ae0, 0x0, ...) /build/go.tip/go/src/pkg/net/tcpsock_posix.go:153 +0x111 net.dial(0x712400, 0x3, 0xc2006d2a27, 0xf, 0x0, ...) /build/go.tip/go/src/pkg/net/dial.go:214 +0x3cc net.DialOpt(0xc2006d2a27, 0xf, 0x7fa69ea7ada8, 0x1, 0x1, ...) /build/go.tip/go/src/pkg/net/dial.go:204 +0x1ff net.Dial(0x712400, 0x3, 0xc2006d2a27, 0xf, 0xc2000a0820, ...) /build/go.tip/go/src/pkg/net/dial.go:189 +0xd4 net/http.(*Transport).dial(0xc2008c4080, 0x712400, 0x3, 0xc2006d2a27, 0xf, ...) /build/go.tip/go/src/pkg/net/http/transport.go:384 +0xd2 net/http.(*Transport).dialConn(0xc2008c4080, 0xc2006d2ab0, 0xc2003e0e88, 0xc200b20280, 0xc2008c1840, ...) /build/go.tip/go/src/pkg/net/http/transport.go:427 +0x6c net/http.func·014() /build/go.tip/go/src/pkg/net/http/transport.go:402 +0x3c created by net/http.(*Transport).getConn Why is something stuck in a dial? We should modify checkLeakedTransports to look for that stack trace earlier, and find which test is responsible, rather than only detecting that at the very end. We should also rename checkLeakedTransports because it does a lot more now. Maybe just postTest. |
Try out https://golang.org/cl/7777043 Status changed to Started. |
hit this one: --- FAIL: TestHeaderWriteSubsetMallocs (0.00 seconds) header_test.go:204: mallocs = %!d(float64=0.01); want 0 with: #!/bin/bash set -xe export GOARCH=386 export GOHOSTARCH=386 cd $GOROOT/src ./make.bash cd $GOROOT/src/pkg/net/http go test -c while true; do GOMAXPROCS=$[ 1 + $[ RANDOM % 256 ]] ./http.test -test.v ./http.test -test.v -test.cpu=1,1,1,2,2,2,4,4,4,16,16,256 >log 2>&1 done this is probably related to issue #5000. I'll disable this test and keep going. |
applied issue7777043_5001.diff. ran the script as above, with TestHeaderWriteSubsetMallocs disabled. still some leaking. log attached. Attachments:
|
test with go version 0c029965805f + issue7777043_14001.diff still some leaking log attached. Attachments:
|
This issue was closed by revision caf513a. Status changed to Fixed. |
go test -v -cpu 1,2,4 -timeout=10000m std --- FAIL: TestTransportSocketLateBinding-4 (1.22 seconds) z_last_test.go:90: Test appears to have leaked a timing out dial: net.runtime_pollWait(0x7f5936037d20, 0x77, 0x0) /build/go.tip/go/src/pkg/runtime/znetpoll_linux_amd64.c:115 +0x82 net.(*pollDesc).WaitWrite(0xc201c06b30, 0x73, 0xc2000f83f0) /build/go.tip/go/src/pkg/net/fd_poll_runtime.go:80 +0x31 net.(*netFD).connect(0xc201c06ab0, 0xc2004f4d80, 0xc2031dd540, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_unix.go:97 +0x19e net.socket(0x70f6a0, 0x3, 0x2, 0x1, 0x0, ...) /build/go.tip/go/src/pkg/net/sock_posix.go:55 +0x301 net.internetSocket(0x70f6a0, 0x3, 0x0, 0x0, 0xc200194e10, ...) /build/go.tip/go/src/pkg/net/ipsock_posix.go:146 +0x423 net.dialTCP(0x70f6a0, 0x3, 0x0, 0xc2035e2990, 0x0, ...) /build/go.tip/go/src/pkg/net/tcpsock_posix.go:153 +0x111 net.dial(0x70f6a0, 0x3, 0xc20148ae87, 0xf, 0x0, ...) /build/go.tip/go/src/pkg/net/dial.go:214 +0x3cc net.DialOpt(0xc20148ae87, 0xf, 0x7f593604dd60, 0x1, 0x1, ...) /build/go.tip/go/src/pkg/net/dial.go:204 +0x1ff net.Dial(0x70f6a0, 0x3, 0xc20148ae87, 0xf, 0xc20061b280, ...) /build/go.tip/go/src/pkg/net/dial.go:189 +0xd4 net/http_test.func·129(0x70f6a0, 0x3, 0xc20148ae87, 0xf, 0x0, ...) /build/go.tip/go/src/pkg/net/http/transport_test.go:1347 +0x61 net/http.(*Transport).dial(0xc201cbfd80, 0x70f6a0, 0x3, 0xc20148ae87, 0xf, ...) /build/go.tip/go/src/pkg/net/http/transport.go:382 +0x87 net/http.(*Transport).dialConn(0xc201cbfd80, 0xc202b81e40, 0xc201797a68, 0xc202a52280, 0x0, ...) /build/go.tip/go/src/pkg/net/http/transport.go:427 +0x6c net/http.func·014() /build/go.tip/go/src/pkg/net/http/transport.go:402 +0x3c created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:404 +0x11b net/http.func·015() /build/go.tip/go/src/pkg/net/http/transport.go:418 +0x39 created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:421 +0x217 GOMAXPROCS=103 ./run.bash --no-rebuild --- FAIL: TestGoroutinesRunning-109 (0.00 seconds) z_last_test.go:51: num goroutines = 2 z_last_test.go:53: Too many goroutines. z_last_test.go:55: 1 instances of: net.runtime_pollWait(0xefeff8f0, 0x77, 0x0) /build/go.386/go/src/pkg/runtime/znetpoll_linux_386.c:115 +0x72 net.(*pollDesc).WaitWrite(0x185f89fc, 0x73, 0x1855f400) /build/go.386/go/src/pkg/net/fd_poll_runtime.go:80 +0x33 net.(*netFD).connect(0x185f89b0, 0x18639620, 0x18837ec0, 0x0, 0x0, ...) /build/go.386/go/src/pkg/net/fd_unix.go:97 +0x15f net.socket(0x828d748, 0x3, 0x2, 0x1, 0x0, ...) /build/go.386/go/src/pkg/net/sock_posix.go:55 +0x2a7 net.internetSocket(0x828d748, 0x3, 0x0, 0x0, 0x18617330, ...) /build/go.386/go/src/pkg/net/ipsock_posix.go:146 +0x307 net.dialTCP(0x828d748, 0x3, 0x0, 0x18837e80, 0x0, ...) /build/go.386/go/src/pkg/net/tcpsock_posix.go:153 +0xc6 net.dial(0x828d748, 0x3, 0x1883b9c7, 0xf, 0x0, ...) /build/go.386/go/src/pkg/net/dial.go:214 +0x302 net.DialOpt(0x1883b9c7, 0xf, 0xf00eceb0, 0x1, 0x1, ...) /build/go.386/go/src/pkg/net/dial.go:204 +0x164 net.Dial(0x828d748, 0x3, 0x1883b9c7, 0xf, 0x1, ...) /build/go.386/go/src/pkg/net/dial.go:189 +0xaa net/http_test.func·129(0x828d748, 0x3, 0x1883b9c7, 0xf, 0x0, ...) /build/go.386/go/src/pkg/net/http/transport_test.go:1347 +0x56 net/http.(*Transport).dial(0x186d2b40, 0x828d748, 0x3, 0x1883b9c7, 0xf, ...) /build/go.386/go/src/pkg/net/http/transport.go:382 +0x74 net/http.(*Transport).dialConn(0x186d2b40, 0x1883ba40, 0x18914f00, 0x18914f00, 0x19323a00, ...) /build/go.386/go/src/pkg/net/http/transport.go:427 +0x5f net/http.func·014() /build/go.386/go/src/pkg/net/http/transport.go:402 +0x37 created by net/http.(*Transport).getConn /build/go.386/go/src/pkg/net/http/transport.go:404 +0xf8 z_last_test.go:55: 1 instances of: net/http.func·015() /build/go.386/go/src/pkg/net/http/transport.go:418 +0x36 created by net/http.(*Transport).getConn /build/go.386/go/src/pkg/net/http/transport.go:421 +0x1c5 FAIL FAIL net/http 3.598s |
fullung, sent https://golang.org/cl/8016046 |
This issue was updated by revision 40cd845. R=golang-dev, r CC=golang-dev https://golang.org/cl/8016046 |
with c879a45c3389: --- FAIL: TestTransportConcurrency (1.24 seconds) z_last_test.go:92: Test appears to have leaked a timing out dial: net.runtime_pollWait(0x7f87e0f92460, 0x77, 0x0) /build/go.tip/go/src/pkg/runtime/znetpoll_linux_amd64.c:118 +0x82 net.(*pollDesc).WaitWrite(0xc201beb080, 0x72, 0xc2000ee5a0) /build/go.tip/go/src/pkg/net/fd_poll_runtime.go:80 +0x31 net.(*netFD).connect(0xc201beb000, 0xc200182b10, 0xc201996be0, 0x0, 0x0, ...) /build/go.tip/go/src/pkg/net/fd_unix.go:97 +0x19e net.socket(0x716a80, 0x3, 0x2, 0x1, 0x0, ...) /build/go.tip/go/src/pkg/net/sock_posix.go:55 +0x301 net.internetSocket(0x716a80, 0x3, 0x0, 0x0, 0xc20017d0a0, ...) /build/go.tip/go/src/pkg/net/ipsock_posix.go:146 +0x423 net.dialTCP(0x716a80, 0x3, 0x0, 0xc201d39540, 0x0, ...) /build/go.tip/go/src/pkg/net/tcpsock_posix.go:153 +0x111 net.dial(0x716a80, 0x3, 0xc201d39247, 0xf, 0x0, ...) /build/go.tip/go/src/pkg/net/dial.go:219 +0x3cc net.DialOpt(0xc201d39247, 0xf, 0x7f87e0437da8, 0x1, 0x1, ...) /build/go.tip/go/src/pkg/net/dial.go:209 +0x1ff net.Dial(0x716a80, 0x3, 0xc201d39247, 0xf, 0x559a1e, ...) /build/go.tip/go/src/pkg/net/dial.go:194 +0xd4 net/http.(*Transport).dial(0xc201df0500, 0x716a80, 0x3, 0xc201d39247, 0xf, ...) /build/go.tip/go/src/pkg/net/http/transport.go:384 +0xd2 net/http.(*Transport).dialConn(0xc201df0500, 0xc201d39390, 0xc2016f0328, 0xc200d77000, 0x0, ...) /build/go.tip/go/src/pkg/net/http/transport.go:427 +0x6c net/http.func·014() /build/go.tip/go/src/pkg/net/http/transport.go:402 +0x3c created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:404 +0x11b net/http.func·015() /build/go.tip/go/src/pkg/net/http/transport.go:418 +0x39 created by net/http.(*Transport).getConn /build/go.tip/go/src/pkg/net/http/transport.go:421 +0x217 |
Mailed https://golang.org/cl/8127043 Owner changed to @bradfitz. Status changed to Started. |
This issue was closed by revision 68130a0. Status changed to Fixed. |
One more twist... I think what's happened here is that I've set GOTRACEBACK=2 to try to catch more info for issue #5139. What's the way to fix this one? More "created by" exceptions? go version devel +2433c3567273 Fri Mar 29 12:16:24 2013 +0900 linux/amd64 --- FAIL: TestGoroutinesRunning (0.00 seconds) z_last_test.go:54: num goroutines = 4 z_last_test.go:56: Too many goroutines. z_last_test.go:58: 1 instances of: runtime.entersyscallblock() /build/go.tip/go/src/pkg/runtime/proc.c:1324 +0x16e runtime.MHeap_Scavenger() /build/go.tip/go/src/pkg/runtime/mheap.c:435 +0xee runtime.goexit() /build/go.tip/go/src/pkg/runtime/proc.c:1214 created by runtime.main /build/go.tip/go/src/pkg/runtime/proc.c:165 z_last_test.go:58: 1 instances of: runtime.entersyscallblock() /build/go.tip/go/src/pkg/runtime/proc.c:1324 +0x16e timerproc() /build/go.tip/go/src/pkg/runtime/ztime_linux_amd64.c:195 +0xbc runtime.goexit() /build/go.tip/go/src/pkg/runtime/proc.c:1214 created by addtimer /build/go.tip/go/src/pkg/runtime/ztime_linux_amd64.c:82 z_last_test.go:58: 1 instances of: runtime.goexit() /build/go.tip/go/src/pkg/runtime/proc.c:1214 z_last_test.go:58: 1 instances of: runtime.park(0x0, 0x0, 0x8f5c0a) /build/go.tip/go/src/pkg/runtime/proc.c:1167 +0x64 runfinq() /build/go.tip/go/src/pkg/runtime/mgc0.c:2112 +0x6d runtime.goexit() /build/go.tip/go/src/pkg/runtime/proc.c:1214 created by runtime.gc /build/go.tip/go/src/pkg/runtime/mgc0.c:1816 |
Please review https://golang.org/cl/8156044 |
This issue was updated by revision df885e7. R=golang-dev, fullung CC=golang-dev https://golang.org/cl/8156044 |
FYI: running "go test" in net/http gives here (Vista) always the error from #3 go1.1beta2.windows-386.zip go version devel +d58997478ec6 Mon Apr 08 00:09:35 2013 -0700 windows/386 -- FAIL: TestTransportSocketLateBinding (1.24 seconds) z_last_test.go:96: Test appears to have leaked a Transport: net.(*ioSrv).ExecIO(0x11e71898, 0x11e684a0, 0x13932480, 0x0, 0x0, ...) C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist012168375/go/src/pkg/net/fd_windows.go:236 +0x664 net.(*netFD).Read(0x1384f600, 0x1363d000, 0x1000, 0x1000, 0x0, ...) |
Use "go test -short". That's what src/all.bash uses. The HTTP leak tests don't run with -short. The full tests for net/http pass on Darwin and Linux, and I don't do http development on any other platforms. If you want to fix the leaks(?) and/or flaky tests(?) on Windows, feel free, but it's not a priority for me currently. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: