This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: __cxa_allocate_exception (and thus throw) is not async-signal-safe
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 3 Oct 2016 11:25:59 +0100
- Subject: Re: __cxa_allocate_exception (and thus throw) is not async-signal-safe
- Authentication-results: sourceware.org; auth=none
- References: <8737kgw1f4.fsf@mid.deneb.enyo.de>
On 01/10/16 17:10 +0200, Florian Weimer wrote:
It would be nice to be able to use exception-throwing functions in a
signal handler, catching them before the handler is left. However,
this is not possible because __cxa_allocate_exception calls malloc.
Have alternative implementation approaches ever been considered?
Not that I'm aware of, but maybe before my time.