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?