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

runtime: index out of range in StopTrace #52704

Closed
bcmills opened this issue May 4, 2022 · 1 comment
Closed

runtime: index out of range in StopTrace #52704

bcmills opened this issue May 4, 2022 · 1 comment
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented May 4, 2022

fatal error: index out of range

goroutine 87 [running]:
runtime.throw({0x12b453c?, 0x1404b80?})
	/Users/gopher/workdir/go/src/runtime/panic.go:1028 +0x5d fp=0xc0000507b8 sp=0xc000050788 pc=0x108955d
runtime.panicCheck1(0x10af239?, {0x12b453c, 0x12})
	/Users/gopher/workdir/go/src/runtime/panic.go:57 +0x87 fp=0xc0000507d8 sp=0xc0000507b8 pc=0x1086dc7
runtime.goPanicIndex(0x2, 0x0)
	/Users/gopher/workdir/go/src/runtime/panic.go:110 +0x34 fp=0xc000050818 sp=0xc0000507d8 pc=0x1086eb4
runtime.traceReadCPU()
	/Users/gopher/workdir/go/src/runtime/trace.go:755 +0x2ff fp=0xc0000508e0 sp=0xc000050818 pc=0x10aedff
runtime.StopTrace()
	/Users/gopher/workdir/go/src/runtime/trace.go:338 +0xad fp=0xc000050918 sp=0xc0000508e0 pc=0x10ad92d
runtime/trace.Stop()
	/Users/gopher/workdir/go/src/runtime/trace/trace.go:148 +0x7c fp=0xc000050990 sp=0xc000050918 pc=0x114ae7c
runtime/trace_test.TestTraceCPUProfile(0xc0000831e0)
	/Users/gopher/workdir/go/src/runtime/trace/trace_test.go:620 +0x22b fp=0xc000050ea8 sp=0xc000050990 pc=0x125b46b
testing.tRunner(0xc0000831e0, 0x12bf7d8)
	/Users/gopher/workdir/go/src/testing/testing.go:1449 +0x217 fp=0xc000050fb0 sp=0xc000050ea8 pc=0x115d837
testing.(*T).Run.func1()
	/Users/gopher/workdir/go/src/testing/testing.go:1496 +0x48 fp=0xc000050fe0 sp=0xc000050fb0 pc=0x115f068
runtime.goexit()
	/Users/gopher/workdir/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000050fe8 sp=0xc000050fe0 pc=0x10bea61
created by testing.(*T).Run
	/Users/gopher/workdir/go/src/testing/testing.go:1496 +0x75e

greplogs -l -e 'goroutine \d+ \[.*\]:\n(?:.+\n\t.+\n)*runtime\.StopTrace' --since=2022-04-01
2022-05-04T03:08:40-4f89884/darwin-amd64-race

This may be related to #52693 (attn @rhysh; CC @golang/runtime).

@bcmills bcmills added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker labels May 4, 2022
@bcmills bcmills added this to the Go1.19 milestone May 4, 2022
@gopherbot
Copy link

Change https://go.dev/cl/404054 mentions this issue: runtime: use profile data before advancing index

@golang golang locked and limited conversation to collaborators May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker
Projects
None yet
Development

No branches or pull requests

2 participants