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: corrupted GoroutineProfile stack traces #69243

Closed
felixge opened this issue Sep 4, 2024 · 5 comments
Closed

runtime: corrupted GoroutineProfile stack traces #69243

felixge opened this issue Sep 4, 2024 · 5 comments
Assignees
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FixPending Issues that have a fix which has not yet been reviewed or submitted. NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@felixge
Copy link
Contributor

felixge commented Sep 4, 2024

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.

@felixge felixge changed the title import/path: issue title runtime: corrupted GoroutineProfile stack traces Sep 4, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Sep 4, 2024
@gabyhelp
Copy link

gabyhelp commented Sep 4, 2024

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@prattmic
Copy link
Member

prattmic commented Sep 4, 2024

@gopherbot Please backport to 1.23. This is a regression in goroutine profiles with no workaround.

@gopherbot
Copy link
Contributor

Backport issue(s) opened: #69258 (for 1.23).

Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.

@dmitshur dmitshur added this to the Go1.24 milestone Sep 4, 2024
@dmitshur dmitshur added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. NeedsFix The path to resolution is known, but the work has not been done. FixPending Issues that have a fix which has not yet been reviewed or submitted. and removed NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Sep 4, 2024
@cherrymui cherrymui moved this to In Progress in Go Compiler / Runtime Sep 4, 2024
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/609815 mentions this issue: runtime: fix GoroutineProfile stacks not getting null terminated

@github-project-automation github-project-automation bot moved this from In Progress to Done in Go Compiler / Runtime Sep 25, 2024
@cagedmantis
Copy link
Contributor

cagedmantis commented Sep 25, 2024

Does the fix for #69335 need to be back-ported as well? It's part of the CL stack.

Edit: There's an answer to this question in #69335 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FixPending Issues that have a fix which has not yet been reviewed or submitted. NeedsFix The path to resolution is known, but the work has not been done.
Projects
Development

No branches or pull requests

6 participants