https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64478
--- Comment #9 from Bernd Edlinger <bernd.edlinger at hotmail dot de> --- Sorry, Andrew, a deadlock in the Ada exception handler is an Ada BUG by definition. Even if YOU can't fix it easily. The memory could be pre-allocated as the call stack and we should make it to the point where the user code starts. If they call malloc then that's no more our problem. Please stop this now. I still dont see what's wrong with tsan here, the signal could easily be from a kill -SIGSEGV . Thanks Bernd.