• Austin Clements's avatar
    runtime: fail silently if we unwind over sigpanic into C code · ebe38b86
    Austin Clements authored
    If we're running C code and the code panics, the runtime will inject a
    call to sigpanic into the C code just like it would into Go code.
    However, the return PC from this sigpanic will be in C code. We used
    to silently abort the traceback if we didn't recognize a return PC, so
    this went by quietly. Now we're much louder because in general this is
    a bad thing. However, in this one particular case, it's fine, so if
    we're in cgo and are looking at the return PC of sigpanic, silence the
    debug output.
    
    Fixes #23576.
    
    Change-Id: I03d0c14d4e4d25b29b1f5804f5e9ccc4f742f876
    Reviewed-on: https://go-review.googlesource.com/90896
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    ebe38b86
Name
Last commit
Last update
..
windows Loading commit data...
aprof.go Loading commit data...
callback.go Loading commit data...
catchpanic.go Loading commit data...
cgo.go Loading commit data...
crash.go Loading commit data...
deadlock.go Loading commit data...
dll_windows.go Loading commit data...
dropm.go Loading commit data...
dropm_stub.go Loading commit data...
exec.go Loading commit data...
lockosthread.c Loading commit data...
lockosthread.go Loading commit data...
main.go Loading commit data...
numgoroutine.go Loading commit data...
pprof.go Loading commit data...
raceprof.go Loading commit data...
racesig.go Loading commit data...
sigpanic.go Loading commit data...
sigstack.go Loading commit data...
stack_windows.go Loading commit data...
threadpanic.go Loading commit data...
threadpanic_unix.c Loading commit data...
threadpanic_windows.c Loading commit data...
threadpprof.go Loading commit data...
threadprof.go Loading commit data...
traceback.go Loading commit data...
tracebackctxt.go Loading commit data...
tracebackctxt_c.c Loading commit data...