• Austin Clements's avatar
    runtime: ensure abort actually crashes the process · 60a9e5d6
    Austin Clements authored
    On all non-x86 arches, runtime.abort simply reads from nil.
    Unfortunately, if this happens on a user stack, the signal handler
    will dutifully turn this into a panicmem, which lets user defers run
    and which user code can even recover from.
    
    To fix this, add an explicit check to the signal handler that turns
    faults in abort into hard crashes directly in the signal handler. This
    has the added benefit of giving a register dump at the abort point.
    
    Change-Id: If26a7f13790745ee3867db7f53b72d8281176d70
    Reviewed-on: https://go-review.googlesource.com/93661
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    60a9e5d6
Name
Last commit
Last update
..
386.txt Loading commit data...
all.txt Loading commit data...
amd64.txt Loading commit data...
android_386.txt Loading commit data...
android_amd64.txt Loading commit data...
android_arm.txt Loading commit data...
arm.txt Loading commit data...
arm64.txt Loading commit data...
darwin_386.txt Loading commit data...
darwin_amd64.txt Loading commit data...
darwin_arm.txt Loading commit data...
darwin_arm64.txt Loading commit data...
dragonfly_amd64.txt Loading commit data...
freebsd_386.txt Loading commit data...
freebsd_amd64.txt Loading commit data...
freebsd_arm.txt Loading commit data...
linux_386.txt Loading commit data...
linux_amd64.txt Loading commit data...
linux_arm.txt Loading commit data...
linux_arm64.txt Loading commit data...
linux_ppc64x.txt Loading commit data...
mips.txt Loading commit data...
mips64x.txt Loading commit data...
mipsle.txt Loading commit data...
mipsx.txt Loading commit data...
nacl_386.txt Loading commit data...
nacl_amd64p32.txt Loading commit data...
nacl_arm.txt Loading commit data...
netbsd.txt Loading commit data...
netbsd_386.txt Loading commit data...
netbsd_amd64.txt Loading commit data...
netbsd_arm.txt Loading commit data...
openbsd_386.txt Loading commit data...
openbsd_amd64.txt Loading commit data...
openbsd_arm.txt Loading commit data...
plan9_386.txt Loading commit data...
plan9_amd64.txt Loading commit data...
plan9_arm.txt Loading commit data...
ppc64x.txt Loading commit data...
readme.txt Loading commit data...
s390x.txt Loading commit data...
solaris_amd64.txt Loading commit data...
windows.txt Loading commit data...
windows_386.txt Loading commit data...
windows_amd64.txt Loading commit data...