Hide Forgot
This bug has been copied from bug #676591 and has been proposed to be backported to 6.0 z-stream (EUS).
You need to link against libgcc_s.
(In reply to comment #5) > You need to link against libgcc_s. I was under impression this is for C++ only. That's why g++ links against it by default while gcc doesn't. But 1/ it shouldn't matter and 2/ even with -lgcc_s I'm getting deadlock and the same backtrace.
This is simply undefined behaviour.
A program committing suicide by deliberately overwriting the heap is not a test case.
The current behaviour is deliberate and has served well for the last 20 years without anyone noticing. There is nothing more to fix.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-1180.html