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: "invalid pc-encoded table" throw caused by bad cgo traceback (expandFinalInlineFrames) [1.15 backport] #45481

gopherbot opened this issue Apr 9, 2021 · 3 comments
CherryPickApproved FrozenDueToAge


Copy link

@gopherbot gopherbot commented Apr 9, 2021

@prattmic requested issue #45480 to be considered for backport to the next 1.15 minor release.

@gopherbot please open a backport for 1.16 and 1.15. The only workaround is to change the C traceback engine, which isn't usually feasible. This is a follow-up CL for a previously missed case.

Copy link

@mknyszek mknyszek commented Apr 12, 2021

No workaround, relatively safe fix.

@mknyszek mknyszek added CherryPickApproved and removed CherryPickCandidate labels Apr 12, 2021
Copy link

@gopherbot gopherbot commented Apr 12, 2021

Change mentions this issue: [release-branch.go1.15] runtime: non-strict InlTreeIndex lookup in expandFinalInlineFrame

Copy link

@gopherbot gopherbot commented May 4, 2021

Closed by merging c0a7ecf to release-branch.go1.15.

gopherbot pushed a commit that referenced this issue May 4, 2021

This is a follow-up to, which made the same change
in Frames.Next. The same logic applies here: a profile stack may have
been truncated at an invalid PC provided by cgoTraceback.
expandFinalInlineFrame will then try to lookup the inline tree and

The same fix applies as well: upon encountering a bad PC, simply leave
it as-is and move on.

For #44971
For #45480
Fixes #45481

Change-Id: I2823c67a1f3425466b05384cc6d30f5fc8ee6ddc
Reviewed-by: Michael Knyszek <>
Trust: Michael Pratt <>
(cherry picked from commit aad13cb)
Run-TryBot: Michael Pratt <>
Reviewed-by: Cherry Zhang <>
TryBot-Result: Go Bot <>
@golang golang locked and limited conversation to collaborators May 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
CherryPickApproved FrozenDueToAge
None yet

No branches or pull requests

2 participants