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/compile: internal compiler error: newname nil #11610

Closed
dvyukov opened this issue Jul 6, 2015 · 7 comments
Closed

cmd/compile: internal compiler error: newname nil #11610

dvyukov opened this issue Jul 6, 2015 · 7 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 6, 2015

gc crashes on the following program:

package a
import""
var?
go.go:3: internal compiler error: newname nil

go version devel +ef37184 Mon Jul 6 00:07:10 2015 +0000 linux/amd64

@andrewchambers
Copy link

@dvyukov Can I ask how you are finding these bugs? Go Fuzz/random program generation? Are you hand reducing the test cases too?

@dvyukov
Copy link
Member Author

dvyukov commented Jul 9, 2015

@andrewchambers Yes, go-fuzz. Here is the test:
https://github.com/dvyukov/go-fuzz/blob/master/examples/gotypes/main.go
You can add llgo to the party as well.
Unfortunately it is quite messy because of all of the existing bugs. But what you can do is to compare llgo only to go/types (and exclude gc and gccgo invocations). If/when you run go-fuzz use -workdir=examples/goast because that dir contains an excessive corpus of inputs.

@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Jul 10, 2015
@dspezia
Copy link
Contributor

dspezia commented Oct 3, 2015

I cannot reproduce it with tip.

$ go version
go version devel +89a68e9 Sat Oct 3 16:37:18 2015 +0000 linux/amd64

$ go build fuz.go
can't load package:
fuz.go:2:7: invalid import path: ""

@dvyukov
Copy link
Member Author

dvyukov commented Oct 3, 2015

Maybe it is fixed? Can you reproduce on the specified revision?

@dspezia
Copy link
Contributor

dspezia commented Oct 3, 2015

Actually, I cannot reproduce, even on the specified revision.

$ cat fuz.go
package a
import""
var?

$ go version
go version devel +ef37184 Mon Jul 6 00:07:10 2015 +0000 linux/amd64

$ go build fuz.go
can't load package:
fuz.go:2:7: invalid import path: ""

@dspezia
Copy link
Contributor

dspezia commented Oct 3, 2015

Ok, I can produce the internal compiler error by invoking gc directly (go tool compile). It seems the error is caught by the go tool before gc is executed.

@gopherbot
Copy link

CL https://golang.org/cl/15268 mentions this issue.

@rsc rsc closed this as completed in 70da2d0 Dec 7, 2015
@golang golang locked and limited conversation to collaborators Dec 14, 2016
@rsc rsc removed their assignment Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants