]> Cypherpunks repositories - gostls13.git/commit
runtime: fix off-by-one error finding module for PC
authorIan Lance Taylor <iant@golang.org>
Fri, 4 Mar 2016 19:29:55 +0000 (11:29 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 4 Mar 2016 21:06:31 +0000 (21:06 +0000)
commit1716162a9a17873448427b7aca28efd151b5af07
treedb925346389ff60d77b5c123af66d838109248b3
parentafd835434c34178eb8b8b8a89a7a41f5ec35c47c
runtime: fix off-by-one error finding module for PC

Also fix compiler-invoked panics to avoid a confusing "malloc deadlock"
crash if they are invoked while executing the runtime.

Fixes #14599.

Change-Id: I89436abcbf3587901909abbdca1973301654a76e
Reviewed-on: https://go-review.googlesource.com/20219
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/crash_cgo_test.go
src/runtime/panic.go
src/runtime/symtab.go
src/runtime/testdata/testprogcgo/aprof.go [new file with mode: 0644]