This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/64478] Ada Exception handlers call signal-unsafe malloc/free
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Jan 2015 07:51:31 +0000
- Subject: [Bug ada/64478] Ada Exception handlers call signal-unsafe malloc/free
- Auto-submitted: auto-generated
- References: <bug-64478-4 at http dot gcc dot gnu dot org/bugzilla/>
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.