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: incorrect frame information in traceback traversal may hang the process. [1.17 backport] #50781

gopherbot opened this issue Jan 24, 2022 · 4 comments


Copy link

@gopherbot gopherbot commented Jan 24, 2022

@cherrymui requested issue #50772 to be considered for backport to the next 1.17 minor release.

@gopherbot please backport this to previous releases. This may cause programs to hang. Thanks.

@gopherbot gopherbot added the CherryPickCandidate label Jan 24, 2022
@gopherbot gopherbot added this to the Go1.17.7 milestone Jan 24, 2022
Copy link

@gopherbot gopherbot commented Jan 25, 2022

Change mentions this issue: [release-branch.go1.17] runtime: set vdsoSP to caller's SP consistently

Copy link

@lizthegrey lizthegrey commented Jan 31, 2022

This is cherrypick approved, not candidate now, right?

@toothrot toothrot added the CherryPickApproved label Feb 3, 2022
Copy link

@toothrot toothrot commented Feb 3, 2022

Approved. This is a serious issue with no workaround.

@gopherbot gopherbot removed the CherryPickCandidate label Feb 3, 2022
Copy link

@gopherbot gopherbot commented Feb 7, 2022

Closed by merging 1952c65 to release-branch.go1.17.

gopherbot pushed a commit that referenced this issue Feb 7, 2022
m.vdsoSP should be set to the SP of the caller of nanotime1,
instead of the SP of nanotime1 itself, which matches m.vdsoPC.
Otherwise the unmatched vdsoPC and vdsoSP would make the stack
trace look like recursive.

We already do it correctly on AMD64, 386, and RISCV64. This CL
fixes the rest.

Also incorporate CL 352509, skipping a flaky test.

Updates #47324, #50772.
Fixes #50781.

Change-Id: I98b6fcfbe9fc6bdd28b8fe2a1299b7c505371dd4
Trust: Cherry Mui <>
Trust: Josh Bleecher Snyder <>
Reviewed-by: Josh Bleecher Snyder <>
(cherry picked from commit 217507e)
Run-TryBot: Cherry Mui <>
TryBot-Result: Gopher Robot <>
Reviewed-by: Michael Knyszek <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

3 participants