From: Jamie Lokier <jamie@shareable.org>
To: Markus Armbruster <armbru@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH, RFC] Replace assert(0) with abort() or cpu_abort()
Date: Tue, 16 Mar 2010 17:55:23 +0000 [thread overview]
Message-ID: <20100316175523.GD19160@shareable.org> (raw)
In-Reply-To: <m3ljds3auv.fsf@blackfin.pond.sub.org>
Markus Armbruster wrote:
> Paolo Bonzini <pbonzini@redhat.com> writes:
>
> > On 03/15/2010 07:36 PM, Markus Armbruster wrote:
> >> Please don't tell me that user emulators make abort() return. abort()
> >> is declared __noreturn__, and the optimizer may well rely on that.
> >
> > If the user programs make a "signal (SIGABRT, SIG_IGN)" call, I
> > suppose abort() will return.
>
> I program doing that gets what it asks for, and richly deserves.
A guest program is also allowed to trap SIGABRT with a signal handler,
and that does have some uses. E.g. cleaning up temporary files and
shmem segments following a crash when calling 3rd party code.
Whatever the guest does with SIGABRT, it should not result in _QEMU_
crashing - whether due to abort() returning, or QEMU's control flow
jumping to the guest's signal handler from an unexpected location.
-- Jamie
next prev parent reply other threads:[~2010-03-16 17:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-13 14:56 [Qemu-devel] [PATCH, RFC] Replace assert(0) with abort() or cpu_abort() Blue Swirl
2010-03-13 15:43 ` Edgar E. Iglesias
2010-03-15 7:25 ` Markus Armbruster
2010-03-15 17:23 ` Blue Swirl
2010-03-15 18:19 ` [Qemu-devel] " Paolo Bonzini
2010-03-15 18:26 ` Blue Swirl
2010-03-15 18:33 ` Paolo Bonzini
2010-03-15 19:02 ` Blue Swirl
2010-03-15 18:28 ` Markus Armbruster
2010-03-15 18:36 ` [Qemu-devel] " Markus Armbruster
2010-03-16 8:24 ` [Qemu-devel] " Paolo Bonzini
2010-03-16 8:54 ` Markus Armbruster
2010-03-16 17:55 ` Jamie Lokier [this message]
2010-03-17 9:10 ` Paolo Bonzini
2010-03-17 19:50 ` Blue Swirl
2010-03-19 2:03 ` Jamie Lokier
2010-03-19 20:28 ` Blue Swirl
2010-03-18 8:36 ` Markus Armbruster
2010-03-16 17:52 ` Jamie Lokier
2010-03-16 18:35 ` Markus Armbruster
[not found] <1317337484.400521268903946714.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
2010-03-18 9:19 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100316175523.GD19160@shareable.org \
--to=jamie@shareable.org \
--cc=armbru@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.