]> Cypherpunks repositories - gostls13.git/commit
runtime: ensure forward progress when unwinding an arm stack frame
authorCarl Shapiro <cshapiro@google.com>
Tue, 26 Mar 2013 18:43:09 +0000 (11:43 -0700)
committerCarl Shapiro <cshapiro@google.com>
Tue, 26 Mar 2013 18:43:09 +0000 (11:43 -0700)
commit8480e6f476c70af47158983052a9325447e57ab3
treeabb0645368d7e915591b179ba0c56af7610ce372
parent7cfebf7b1d0e02663a18225c04ca02f28e4fd6df
runtime: ensure forward progress when unwinding an arm stack frame

The arm gentraceback mishandled frame linkage values pointing
to the assembly return function.  This function is special as
its frame size is zero and it contains only one instruction.
These conditions would preserve the frame pointer and result
in an off by one error when unwinding the caller.

Fixes #5124

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8023043
misc/cgo/test/callback.go
src/pkg/runtime/traceback_arm.c