On Wed, 9 Feb 2022 at 11:35, Alex Bennée <alex.ben...@linaro.org> wrote: > linux-user wants to trap all signals in case they are related to the > guest. This however results in less than helpful core dumps when the > error is internal to QEMU. We can detect when an assert failure is in > progress by examining __glib_assert_msg and fall through to > cpu_abort() which will pretty print something before restoring the > default SIGABRT behaviour and dumping core.
There is definitely a problem here that it would be nice to fix, but __glib_assert_msg is as far as I can tell not a documented public-facing glib API, and in any case it won't catch assertions via plain old assert() or abort() or for that matter SIGSEGVs and other kinds of crash in QEMU's own code. thanks -- PMM