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
go build crashes #2869
Labels
Comments
This occurs after the error ErrNotFound ("package could not be found locally") occurs in loadPackage for rand, and is ignored: ... builder.action -> p is: &{rand false false true rand: /home/patrick/temp/test.go:6:2: package could not be found locally [] [] [] [] [] [] [] [] [] [] [] [] <nil> <nil> [] [] [] false} builder.action -> p.t is: <nil> PkgDir -> t is: <nil> panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x0 pc=0x455f8b] goroutine 1 [running]: go/build.(*Tree).PkgDir(0x0, 0x200000002, 0xe, 0x0) /home/patrick/apps/go-wk/src/pkg/go/build/path.go:54 +0x292 main.(*builder).action(0xf840049000, 0x0, 0xf84019a1c0, 0x1, 0xf840091160, ...) /home/patrick/apps/go-wk/src/cmd/go/build.go:330 +0x241 main.(*builder).action(0xf840049000, 0x1, 0xf84001d540, 0x6e69616d00000002, 0xf8401c3daa, ...) /home/patrick/apps/go-wk/src/cmd/go/build.go:338 +0x39a main.runBuild(0x829b70, 0xf840002020, 0x100000001, 0x0) /home/patrick/apps/go-wk/src/cmd/go/build.go:129 +0x386 main.main() /home/patrick/apps/go-wk/src/cmd/go/main.go:126 +0x2d8 |
I believe this is a duplicate of issue #2865? I have a CL out that will fix it if so. http://golang.org/cl/5624052/ |
Status changed to Duplicate. Merged into issue #2865. |
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: