[Bug ada/64478] Ada Exception handlers call signal-unsafe malloc/free

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 3 07:51:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64478

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Bernd Edlinger from comment #5)
> but I cant see why a potential deadlock in an exception
> handler is not a bug?

Actually here is what glibc says about malloc:
Function: void * malloc (size_t size)
Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock fd mem | See POSIX
Safety Concepts.

But this is a non-Async-Signal here we are talking about so this is safe and a
bug in tsan for not realizing that.



More information about the Gcc-bugs mailing list