]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.15] runtime: non-strict InlTreeIndex lookup in expandFinalInlineFrame
authorMichael Pratt <mpratt@google.com>
Fri, 9 Apr 2021 21:01:45 +0000 (17:01 -0400)
committerCarlos Amedee <carlos@golang.org>
Tue, 4 May 2021 15:14:11 +0000 (15:14 +0000)
commitc0a7ecfae775a9d50d338e8123fac32a5d04308c
tree9ac080de6f74e45ddb48aba33be51987885c1e8a
parent72ccabc99449b2cb5bb1438eb90244d55f7b02f5
[release-branch.go1.15] runtime: non-strict InlTreeIndex lookup in expandFinalInlineFrame

This is a follow-up to golang.org/cl/301369, 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
crash.

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-on: https://go-review.googlesource.com/c/go/+/309109
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Trust: Michael Pratt <mpratt@google.com>
(cherry picked from commit aad13cbb749d1e6c085ff0556d306de1a2d5d063)
Reviewed-on: https://go-review.googlesource.com/c/go/+/309550
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/runtime/symtab.go