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: index out of range (3) #12467

Closed
dvyukov opened this issue Sep 3, 2015 · 1 comment
Closed

cmd/asm: index out of range (3) #12467

dvyukov opened this issue Sep 3, 2015 · 1 comment

Comments

@dvyukov
Copy link
Member

dvyukov commented Sep 3, 2015

cmd/asm crashes on the following program (quoted with %q):

    "TEXT$0\xc9:0\n"
panic: runtime error: index out of range

goroutine 1 [running]:
cmd/asm/internal/asm.(*Parser).asmText(0xc82007de70, 0xc8200b24e0, 0x4, 0xc82007db28, 0x2, 0x3)
    src/cmd/asm/internal/asm/asm.go:148 +0x75d
cmd/asm/internal/asm.(*Parser).pseudo(0xc82007de70, 0xd, 0xc8200b24e0, 0x4, 0xc82007db28, 0x2, 0x3)
    src/cmd/asm/internal/asm/parse.go:217 +0x222
cmd/asm/internal/asm.(*Parser).line(0xc82007de70, 0xc8200ac160)
    src/cmd/asm/internal/asm/parse.go:185 +0x9ac
cmd/asm/internal/asm.(*Parser).Parse(0xc82007de70, 0xc8200ac160, 0xc8200b8600)
    src/cmd/asm/internal/asm/parse.go:86 +0x21
main.main()
    src/cmd/asm/main.go:59 +0xb85

go version devel +499c827 Thu Sep 3 03:02:17 2015 +0000 linux/amd64

@ianlancetaylor ianlancetaylor added this to the Unplanned milestone Sep 3, 2015
@gopherbot
Copy link
Contributor

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

@golang golang locked and limited conversation to collaborators Sep 22, 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