]> Cypherpunks repositories - gostls13.git/commit
runtime: fix CGO traceback frame count
authorMark Pulford <mark@kyne.com.au>
Fri, 30 Nov 2018 10:12:06 +0000 (21:12 +1100)
committerIan Lance Taylor <iant@golang.org>
Mon, 10 Dec 2018 23:09:58 +0000 (23:09 +0000)
commit0f0b10818bd00b1c5778f7c2fbed72bb06defbba
tree3d0d71c967cce3b7e1e0c3367b3eee8699b5fc28
parent963c9fdf9735bc464521cde3d46b596ce0d74eba
runtime: fix CGO traceback frame count

Without this, each additional C frame found via SetCgoTraceback will
cause a frame to be dropped from the bottom of the traceback stack.

Fixes #29034

Change-Id: I90aa6b2a1dced90c69b64c5dd565fe64a25724a3
Reviewed-on: https://go-review.googlesource.com/c/151917
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/crash_cgo_test.go
src/runtime/proc.go
src/runtime/testdata/testprogcgo/pprof.go
src/runtime/testdata/testprogcgo/threadpprof.go