RHEL5 gcc44 optimisation of thread cancellation code can lead to double free or corruption
Issue
When compiled with g++44 and optimsation greater than 1, for example -O2 the resulting binary may abort with a similar message to the following.
*** glibc detected *** ./optim2: double free or corruption (out): 0x00000000415aa0e0 ***
Environment
Red Hat Enterprise Linux
5.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.