From f0876a1a940b67b3f6029dfd0b6a06348792dc04 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 24 Jul 2015 16:16:39 -0700 Subject: runtime: log all thread stack traces during GODEBUG=crash on Unix This extends https://golang.org/cl/2811, which only applied to Darwin and GNU/Linux, to all Unix systems. Fixes #9591. Change-Id: Iec3fb438564ba2924b15b447c0480f87c0bfd009 Reviewed-on: https://go-review.googlesource.com/12661 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Matthew Dempsky Reviewed-by: Russ Cox --- src/runtime/sys_openbsd_386.s | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/runtime/sys_openbsd_386.s') diff --git a/src/runtime/sys_openbsd_386.s b/src/runtime/sys_openbsd_386.s index fa3f0d9bee..bdf18d88f9 100644 --- a/src/runtime/sys_openbsd_386.s +++ b/src/runtime/sys_openbsd_386.s @@ -90,6 +90,17 @@ TEXT runtime·raise(SB),NOSPLIT,$12 INT $0x80 RET +TEXT runtime·raiseproc(SB),NOSPLIT,$12 + MOVL $20, AX // sys_getpid + INT $0x80 + MOVL $0, 0(SP) + MOVL AX, 4(SP) // arg 1 - pid + MOVL sig+0(FP), AX + MOVL AX, 8(SP) // arg 2 - signum + MOVL $37, AX // sys_kill + INT $0x80 + RET + TEXT runtime·mmap(SB),NOSPLIT,$36 LEAL addr+0(FP), SI LEAL 4(SP), DI -- cgit v1.3-5-g9baa