]> Cypherpunks repositories - gostls13.git/commit
runtime: print instruction bytes when reporting a SIGILL
authorKeith Randall <khr@golang.org>
Fri, 28 Feb 2020 20:59:38 +0000 (12:59 -0800)
committerKeith Randall <khr@golang.org>
Mon, 2 Mar 2020 18:46:06 +0000 (18:46 +0000)
commit63f1bc59922d454f288ad3d193bc60d7c980dbb0
tree884810e5ed910ab100204f3b4f29e7c211438b18
parenta2bff7c2964c6bf2c9741eb767d749d773f20770
runtime: print instruction bytes when reporting a SIGILL

Print the bytes of the instruction that generated a SIGILL.
This should help us respond to bug reports without having to
go back-and-forth with the reporter to get the instruction involved.
Might also help with SIGILL problems that are difficult to reproduce.

Update #37513

Change-Id: I33059b1dbfc97bce16142a843f32a88a6547e280
Reviewed-on: https://go-review.googlesource.com/c/go/+/221431
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/signal_unix.go
test/fixedbugs/issue37513.dir/main.go [new file with mode: 0644]
test/fixedbugs/issue37513.dir/sigill_amd64.s [new file with mode: 0644]
test/fixedbugs/issue37513.go [new file with mode: 0644]