OSDN Git Service

linux-user: Detect and report host crashes
authorHelge Deller <deller@gmx.de>
Sat, 12 Aug 2023 16:43:14 +0000 (18:43 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 18 Oct 2023 22:33:45 +0000 (15:33 -0700)
commit7dfd3ca8d95f9962cdd2ebdfcdd699279b98fa18
tree6f40f17dcf718d261f6877cee659ab80135d20b1
parentee72c47eebe119575b2bb684912bbb8c9efc9ba7
linux-user: Detect and report host crashes

If there is an internal program error in the qemu source code which
raises SIGSEGV or SIGBUS, we currently assume the signal belongs to
the guest.  With an artificial error introduced, we will now print

   QEMU internal SIGSEGV {code=MAPERR, addr=(nil)}

Signed-off-by: Helge Deller <deller@gmx.de>
Message-Id: <20230812164314.352131-1-deller@gmx.de>
[rth: Use in_code_gen_buffer and die_with_signal; drop backtrace]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/signal.c