]> Cypherpunks repositories - gostls13.git/commit
runtime: don't ignore success of cgo profiling tracebacks
authorAustin Clements <austin@google.com>
Wed, 6 Jan 2016 19:02:50 +0000 (14:02 -0500)
committerAustin Clements <austin@google.com>
Thu, 7 Jan 2016 19:40:26 +0000 (19:40 +0000)
commitb50b24837d34f78dc933027bcc6492df8b963b50
treeb229e09f5d9dd6a4b14c947d8108f30d5f3ef67b
parentebf1f0fcbe7127fc6a96b57ac41d886ae36aaa66
runtime: don't ignore success of cgo profiling tracebacks

If a sigprof happens during a cgo call, we traceback from the entry
point of the cgo call. However, if the SP is outside of the G's stack,
we'll then ignore this traceback, even if it was successful, and
overwrite it with just _ExternalCode.

Fix this by accepting any successful traceback, regardless of whether
we got it from a cgo entry point or from regular Go code.

Fixes #13466.

Change-Id: I5da9684361fc5964f44985d74a8cdf02ffefd213
Reviewed-on: https://go-review.googlesource.com/18327
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/proc.go