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: nil deref #24447

Closed
dvyukov opened this issue Mar 19, 2018 · 1 comment
Closed

cmd/compile: nil deref #24447

dvyukov opened this issue Mar 19, 2018 · 1 comment

Comments

@dvyukov
Copy link
Member

@dvyukov dvyukov commented Mar 19, 2018

go version devel +b61b1d2c57 Sun Mar 18 16:53:53 2018 +0000 linux/amd64

package n
type R interface{S}
type S=interface{R}

go build crash.go

panic: runtime error: invalid memory address or nil pointer dereference

goroutine 1 [running]:
cmd/compile/internal/gc.dowidth()
cmd/compile/internal/types.(*Type).Fields()
cmd/compile/internal/gc.expandiface()
cmd/compile/internal/gc.dowidth()
cmd/compile/internal/types.(*Type).Fields()
cmd/compile/internal/gc.expandiface()
cmd/compile/internal/gc.dowidth()
cmd/compile/internal/gc.resumecheckwidth()
cmd/compile/internal/gc.Main()
main.main()

Found with go-fuzz. #19109

@mvdan

This comment has been minimized.

Copy link
Member

@mvdan mvdan commented Mar 19, 2018

Duplicate of #23823, I'm afraid :)

@mvdan mvdan closed this Mar 19, 2018
@golang golang locked and limited conversation to collaborators Mar 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.