]> Cypherpunks repositories - gostls13.git/commit
runtime: add explicit `INT $3` at end of Darwin amd64 sigtramp
authorIan Lance Taylor <iant@golang.org>
Wed, 20 Jul 2016 22:40:10 +0000 (15:40 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 21 Jul 2016 01:04:22 +0000 (01:04 +0000)
commitff227b8a56b66e72de744a39f5b68d6e6ce7f3fe
treec16afc19a2ebcb85eef6563f4843e0c6cc18d7b3
parentf407ca9288c8556c466e316f390ee7e7e99647ae
runtime: add explicit `INT $3` at end of Darwin amd64 sigtramp

The omission of this instruction could confuse the traceback code if a
SIGPROF occurred during a signal handler.  The traceback code would
trace up to sigtramp, but would then get confused because it would see a
PC address that did not appear to be in the function.

Fixes #16453.

Change-Id: I2b3d53e0b272fb01d9c2cb8add22bad879d3eebc
Reviewed-on: https://go-review.googlesource.com/25104
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/runtime/sys_darwin_amd64.s