Skip to content

runtime: corrupted GoroutineProfile stack traces #69243

@felixge

Description

@felixge

A test case + fix for this issue is already submitted here: https://go-review.googlesource.com/c/go/+/609815

I'm opening this issue b/c it's a requirement for getting the fix back ported. cc @prattmic

Go version

go1.23.0

What did you do?

Received a bug report that my fgprof library broke in go1.23: felixge/fgprof#33

What did you see happen?

Calling runtime.GoroutineProfile() repeatedly with the same input slice produced corrupted stack traces showing multiple runtime.goexit frames in the same stack trace.

2024-09-04 CleanShot at 09 29 31

What did you expect to see?

runtime.goexit should only show up in the root frame of the stack trace.

Metadata

Metadata

Assignees

Labels

FixPendingIssues that have a fix which has not yet been reviewed or submitted.NeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions