__cxa_allocate_exception (and thus throw) is not async-signal-safe
Jonathan Wakely
jwakely@redhat.com
Mon Oct 3 10:26:00 GMT 2016
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.
More information about the Libstdc++
mailing list