qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC 0/2] Improve qemu-thread support on macOS
@ 2018-12-17 20:26 Roman Bolshakov
  2018-12-17 20:26 ` [Qemu-devel] [RFC 1/2] util: Implement debug-threads for macOS Roman Bolshakov
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Roman Bolshakov @ 2018-12-17 20:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: Roman Bolshakov

Hello,

I've hit a case where QEMU hangs not responding to anything except
SIGKILL. It turned out to be a SIGSEGV in vCPU thread that was lost by
masking all signals.

By blocking too many signals QEMU relies on undefined behaviour that
seems to work on Linux. It's documented in POSIX reference and
sigprocmask(2). Indeed signalfd(2) on Linux notes that it can't be used
to receive SIGSEGV and SIGFPE.

It's not clear what do with SIGBUS on macOS. We can't blindly unblock it
as it's used for memory preallocation.

Also the RFC adds support for thread naming on macOS. Some threads
(signalfd_compat and rcu_call) are created before debug-threads=on is
parsed and don't get their names though.

Thank you,
Roman

Roman Bolshakov (2):
  util: Implement debug-threads for macOS
  qemu-thread: Don't block SEGV, ILL and FPE

 configure                | 32 ++++++++++++++++++++++++++------
 qemu-options.hx          |  4 ++--
 util/qemu-thread-posix.c | 11 ++++++++++-
 3 files changed, 38 insertions(+), 9 deletions(-)

-- 
2.19.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-01-08 14:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-17 20:26 [Qemu-devel] [RFC 0/2] Improve qemu-thread support on macOS Roman Bolshakov
2018-12-17 20:26 ` [Qemu-devel] [RFC 1/2] util: Implement debug-threads for macOS Roman Bolshakov
2018-12-18 10:25   ` Daniel P. Berrangé
2018-12-17 20:26 ` [Qemu-devel] [RFC 2/2] qemu-thread: Don't block SEGV, ILL and FPE Roman Bolshakov
2018-12-18 10:31   ` Daniel P. Berrangé
2019-01-08 14:53 ` [Qemu-devel] [RFC 0/2] Improve qemu-thread support on macOS Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).