__cxa_allocate_exception (and thus throw) is not async-signal-safe

Florian Weimer fw@deneb.enyo.de
Sat Oct 1 15:10:00 GMT 2016


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?



More information about the Libstdc++ mailing list