Navigation Menu

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
Closed

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

alandonovan opened this issue Jun 20, 2018 · 3 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@alandonovan
Copy link
Contributor

alandonovan 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
Copy link
Member

@gopherbot add label NeedsFix

@gopherbot gopherbot added the NeedsFix The path to resolution is known, but the work has not been done. label Jun 20, 2018
@andybons andybons added this to the Go1.11 milestone Jun 20, 2018
@ianlancetaylor
Copy link
Contributor

CC @bcmills

@bcmills bcmills assigned bcmills and unassigned rsc Jul 13, 2018
@gopherbot
Copy link

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

@golang golang locked and limited conversation to collaborators Jul 19, 2019
@rsc rsc unassigned bcmills Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

6 participants