]> Cypherpunks repositories - gostls13.git/commit
runtime: do not trace past jmpdefer during pprof traceback on arm
authorRuss Cox <rsc@golang.org>
Thu, 12 Jun 2014 20:34:54 +0000 (16:34 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 12 Jun 2014 20:34:54 +0000 (16:34 -0400)
commit597f87c997dcaa86227725e227f5eb59721a0129
tree0ab53e0b2f463efe01cb4dc43a0c1f2531ab298a
parent36207a91d3c97a9c64984572af89727495310469
runtime: do not trace past jmpdefer during pprof traceback on arm

jmpdefer modifies PC, SP, and LR, and not atomically,
so walking past jmpdefer will often end up in a state
where the three are not a consistent execution snapshot.
This was causing warning messages a few frames later
when the traceback realized it was confused, but given
the right memory it could easily crash instead.

Update #8153

LGTM=minux, iant
R=golang-codereviews, minux, iant
CC=golang-codereviews, r
https://golang.org/cl/107970043
src/pkg/runtime/asm_arm.s
src/pkg/runtime/traceback_arm.c