]> Cypherpunks repositories - gostls13.git/commit
runtime: don't unwind past asmcgocall
authorAustin Clements <austin@google.com>
Tue, 30 Jan 2018 21:01:33 +0000 (16:01 -0500)
committerAustin Clements <austin@google.com>
Wed, 31 Jan 2018 02:13:19 +0000 (02:13 +0000)
commit5c2be42a687492d2538489de69c50d66fd3dadee
treee765ac5323a0c76750e198d76a27aece7dd10427
parent03e10bd9c4d33a68cd98931e8a4c644e8274b094
runtime: don't unwind past asmcgocall

asmcgocall switches to the system stack and aligns the SP, so
gentraceback both can't unwind over it when it appears on the system
stack (it'll read some uninitialized stack slot as the return PC).
There's also no point in unwinding over it, so don't.

Updates #23576.

Change-Id: Idfcc9599c7636b80dec5451cb65ae892b4611981
Reviewed-on: https://go-review.googlesource.com/90895
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/traceback.go