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 (2) #12466

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

cmd/asm: index out of range (2) #12466

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:

XCHGL(
panic: runtime error: index out of range

goroutine 1 [running]:
cmd/asm/internal/asm.(*Parser).have(0xc82007de70, 0xfffffffc, 0x6069d0)
    src/cmd/asm/internal/asm/parse.go:975 +0x64
cmd/asm/internal/asm.(*Parser).operand(0xc82007de70, 0xc82007d7c8, 0x1)
    src/cmd/asm/internal/asm/parse.go:351 +0xb97
cmd/asm/internal/asm.(*Parser).address(0xc82007de70, 0xc8200163c0, 0x1, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    src/cmd/asm/internal/asm/parse.go:240 +0xb8
cmd/asm/internal/asm.(*Parser).instruction(0xc82007de70, 0x30f1, 0xc820010720, 0x5, 0x0, 0x0, 0xc82007db28, 0x1, 0x3)
    src/cmd/asm/internal/asm/parse.go:201 +0x143
cmd/asm/internal/asm.(*Parser).line(0xc82007de70, 0xc82000a4c0)
    src/cmd/asm/internal/asm/parse.go:190 +0xa76
cmd/asm/internal/asm.(*Parser).Parse(0xc82007de70, 0xc82000a4c0, 0xc820018780)
    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