From 194396d71570318eb581245c49778341474d8ef6 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Mon, 12 Aug 2024 18:45:22 +0200 Subject: unix: print a message when a fatal signal happens Print a message for SIGBUS, SIGSEGV, and SIGILL when they happen. These signals are always fatal, but it's very useful to know which of them happened. Also, it prints the location in the binary which can then be parsed by `tinygo run` (see https://github.com/tinygo-org/tinygo/pull/4383). While this does add some extra binary size, it's for Linux and MacOS (systems that typically have plenty of RAM/storage) and could be very useful when debugging some low-level crash such as a runtime bug. --- lib/macos-minimal-sdk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/macos-minimal-sdk b/lib/macos-minimal-sdk index ebb736fda..91ac2eabd 160000 --- a/lib/macos-minimal-sdk +++ b/lib/macos-minimal-sdk @@ -1 +1 @@ -Subproject commit ebb736fda2bec7cea38dcda807518b835a539525 +Subproject commit 91ac2eabd80f10d95cb4255c78999d9d2c45a3be -- cgit v1.2.3