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

cmd/go: crash in go list -e -test #25980

Closed
alandonovan opened this issue Jun 20, 2018 · 3 comments

Comments

Projects
None yet
6 participants
@alandonovan
Copy link
Contributor

commented Jun 20, 2018

$ cat src/p/d.go
package d
$ cat src/p/x_test.go
package d_test; import _ "d"
$ go version
go version devel +b7d9e6e149 Mon Jun 18 11:53:40 2018 +0000 linux/amd64
$ GOPATH=$(pwd) go list -e -test p
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x82b5fd]

goroutine 1 [running]:
cmd/go/internal/list.runList(0xcd30c0, 0xc00001e0d0, 0x1, 0x1)
        /usr/local/google/home/adonovan/go/src/cmd/go/internal/list/list.go:287 +0x10ed
main.main()
        /usr/local/google/home/adonovan/go/src/cmd/go/main.go:140 +0x51d
				data := *pmain.Internal.TestmainGo // the * operator is applied to a nil *[]byte
@andybons

This comment has been minimized.

Copy link
Member

commented Jun 20, 2018

@gopherbot add label NeedsFix

@gopherbot gopherbot added the NeedsFix label Jun 20, 2018

@andybons andybons added this to the Go1.11 milestone Jun 20, 2018

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Jun 20, 2018

@bcmills bcmills assigned bcmills and unassigned rsc Jul 13, 2018

@gopherbot

This comment has been minimized.

Copy link

commented Jul 13, 2018

Change https://golang.org/cl/123758 mentions this issue: cmd/go/internal/list: do not examine TestmainGo if the test fails to load

@gopherbot gopherbot closed this in b47927c Jul 19, 2018

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