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/asm: nil deref #11765

Closed
dvyukov opened this issue Jul 17, 2015 · 1 comment
Closed

cmd/asm: nil deref #11765

dvyukov opened this issue Jul 17, 2015 · 1 comment

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 17, 2015

cmd/asm crashes on the following program:

TEXT%
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x484aa4]

goroutine 1 [running]:
cmd/asm/internal/asm.(*Parser).validateSymbol(0xc820043e80, 0x60c268, 0x4, 0xc820043898, 0x0)
    src/cmd/asm/internal/asm/asm.go:69 +0x394
cmd/asm/internal/asm.(*Parser).asmText(0xc820043e80, 0xc820010710, 0x4, 0xc820043b40, 0x1, 0x3)
    src/cmd/asm/internal/asm/asm.go:104 +0x17b
cmd/asm/internal/asm.(*Parser).pseudo(0xc820043e80, 0xd, 0xc820010710, 0x4, 0xc820043b40, 0x1, 0x3)
    src/cmd/asm/internal/asm/parse.go:212 +0x222
cmd/asm/internal/asm.(*Parser).line(0xc820043e80, 0xc82000a520)
    src/cmd/asm/internal/asm/parse.go:180 +0x9ac
cmd/asm/internal/asm.(*Parser).Parse(0xc820043e80, 0xc82000a520, 0xc820014750)
    src/cmd/asm/internal/asm/parse.go:81 +0x21
main.main()
    src/cmd/asm/main.go:59 +0xb39

go version devel +9b04852 Sat Jul 11 00:08:50 2015 +0000 linux/amd64

@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Jul 17, 2015
@robpike robpike modified the milestones: Go1.6Early, Go1.6 Aug 26, 2015
@gopherbot
Copy link

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

@robpike robpike closed this as completed in df37c4b Sep 2, 2015
@golang golang locked and limited conversation to collaborators Sep 4, 2016
@rsc rsc unassigned robpike 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

4 participants