-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: slice bounds out of range in test #14337
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
Comments
There should have been a bit more to the output that you did not include. Which package's tests failed? |
It appears to me the error occurred when testing package net, Ian. This is the full output from my terminal session: Obs.: it seems test failure at line 940 is unrelated (TestEvalSymlinksCanonicalNames). Issue #13980. Details about my development box: |
Thanks for the full log. I think I see an unlikely race condition. In cmd/go, each test sets I build a version of cmd/go using -race (
|
CL https://golang.org/cl/19513 mentions this issue. |
go version devel +387d5b8 Sat Feb 13 17:33:22 2016 +0000 windows/amd64
It builds fine, but I got an error during test.
`##### Testing packages.
. . .
ok math/cmplx 0.609s
ok math/rand 0.350s
ok mime 2.359s
ok mime/multipart 5.000s
ok mime/quotedprintable 2.704s
panic: runtime error: slice bounds out of range
goroutine 14 [running]:
syscall.createEnvBlock(0xc082043400, 0x55, 0x68, 0xc082a0a1f0)
C:/go/src/syscall/exec_windows.go:115 +0x5b3
syscall.StartProcess(0xc082365180, 0x4c, 0xc0829e5aa0, 0x3, 0x3,
0xc082c136d0, 0x0, 0x0, 0x0, 0x0)
C:/go/src/syscall/exec_windows.go:326 +0x8b1
os.startProcess(0xc082365180, 0x4c, 0xc0829e5aa0, 0x3, 0x3, 0xc082c13928,
0x9d2e20, 0x0, 0x0)
C:/go/src/os/exec_posix.go:45 +0x345
os.StartProcess(0xc082365180, 0x4c, 0xc0829e5aa0, 0x3, 0x3, 0xc082c13928,
0x0, 0x0, 0x0)
C:/go/src/os/doc.go:28 +0x70
os/exec.(_Cmd).Start(0xc082cd8b40, 0x0, 0x0)
C:/go/src/os/exec/exec.go:332 +0x87e
main.(_builder).runTest(0xc0820eefc0, 0xc0829765b0, 0x0, 0x0)
C:/go/src/cmd/go/test.go:1107 +0xa2b
main.(_builder).do.func1(0xc0829765b0)
C:/go/src/cmd/go/build.go:1257 +0x3b9
main.(_builder).do.func2(0xc082abe710, 0xc0820eefc0, 0xc082740ea0)
C:/go/src/cmd/go/build.go:1314 +0x15d
created by main.(*builder).do
C:/go/src/cmd/go/build.go:1320 +0x3a5
2016/02/15 15:59:10 Failed: exit status 2
`
It happened only once. I tried to reproduce, to no avail. Next build was fine
The text was updated successfully, but these errors were encountered: