aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2016-09-02 12:14:38 -0400
committerAustin Clements <austin@google.com>2016-09-02 17:04:37 +0000
commit3df926d52addd638e23e5b29e692bb670e484966 (patch)
treeb7b5e390bdf444293263c36ccc0eaebb33b8a82c /src/runtime/stack.go
parent210ac4d5e0fea2bfd4287b0865104bdaaeaffe05 (diff)
downloadgo-3df926d52addd638e23e5b29e692bb670e484966.tar.xz
runtime: improve message when a bad pointer is found on the stack
Currently this message says "invalid stack pointer", which could be interpreted as the value of SP being invalid. Change it to "invalid pointer found on stack" to emphasize that it's a pointer on the stack that's invalid. Updates #16948. Change-Id: I753624f8cc7e08cf13d3ea5d9c790cc4af9fa372 Reviewed-on: https://go-review.googlesource.com/28430 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/runtime/stack.go')
-rw-r--r--src/runtime/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/stack.go b/src/runtime/stack.go
index 9528405c96..d022b8274b 100644
--- a/src/runtime/stack.go
+++ b/src/runtime/stack.go
@@ -598,7 +598,7 @@ func adjustpointers(scanp unsafe.Pointer, cbv *bitvector, adjinfo *adjustinfo, f
// Live analysis wrong?
getg().m.traceback = 2
print("runtime: bad pointer in frame ", funcname(f), " at ", pp, ": ", hex(p), "\n")
- throw("invalid stack pointer")
+ throw("invalid pointer found on stack")
}
if minp <= p && p < maxp {
if stackDebug >= 3 {