[Bug libstdc++/52839] [4.7/4.8 Regression] double free or corruption running tr1/.../default_weaktoshared.exe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52839 --- Comment #35 from Andrew Pinski pinskia at gcc dot gnu.org 2012-11-02 01:35:35 UTC --- I get the same randomish failure on MIPS64 (the Octeon 1 with 16 cores) with GCC 4.7. The patch listed below will not help me at all as the code is already using the __atomic_* functions. Was there another change to the libstdc++ code which fixes similar issue too?
[Bug libstdc++/52839] [4.7/4.8 Regression] double free or corruption running tr1/.../default_weaktoshared.exe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52839 --- Comment #36 from Alan Modra amodra at gmail dot com 2012-11-02 02:13:20 UTC --- The change I mention in #c22 http://gcc.gnu.org/viewcvs?view=revisionrevision=184110 tests for atomic ops on all of bool, short, int and long long, where the previous test was for *either* atomic bool or atomic short. My fix for powerpc removed the long long test. Does mips lack atomic on bool or short?
[Bug libstdc++/52839] [4.7/4.8 Regression] double free or corruption running tr1/.../default_weaktoshared.exe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52839 --- Comment #37 from Andrew Pinski pinskia at gcc dot gnu.org 2012-11-02 02:16:48 UTC --- (In reply to comment #36) The change I mention in #c22 http://gcc.gnu.org/viewcvs?view=revisionrevision=184110 tests for atomic ops on all of bool, short, int and long long, where the previous test was for *either* atomic bool or atomic short. My fix for powerpc removed the long long test. Does mips lack atomic on bool or short? No it does not lack atomic for either book or short. I am getting exactly the same failure as mentioned in #c3 and not the double free though.
[Bug libstdc++/52839] [4.7/4.8 Regression] double free or corruption running tr1/.../default_weaktoshared.exe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52839 --- Comment #38 from Alan Modra amodra at gmail dot com 2012-11-02 02:39:29 UTC --- Ah, the #c3 fail on powerpc was due to a powerpc glibc pthread_once bug. And comment #36 should have read: ..previous test was for *either* atomic bool or atomic int.
[Bug libstdc++/52839] [4.7/4.8 Regression] double free or corruption running tr1/.../default_weaktoshared.exe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52839 --- Comment #39 from Andrew Pinski pinskia at gcc dot gnu.org 2012-11-02 02:41:37 UTC --- (In reply to comment #38) Ah, the #c3 fail on powerpc was due to a powerpc glibc pthread_once bug. And comment #36 should have read: ..previous test was for *either* atomic bool or atomic int. Looks like the MIPS glibc pthread_once has the same issue too. I should have read the comments fully to see that.
[Bug libstdc++/52839] [4.7/4.8 Regression] double free or corruption running tr1/.../default_weaktoshared.exe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52839 --- Comment #33 from Alan Modra amodra at gcc dot gnu.org 2012-04-21 13:28:59 UTC --- Author: amodra Date: Sat Apr 21 13:28:53 2012 New Revision: 186651 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=186651 Log: PR libstdc++/52839 missed from last delta Modified: branches/gcc-4_7-branch/libstdc++-v3/configure
[Bug libstdc++/52839] [4.7/4.8 Regression] double free or corruption running tr1/.../default_weaktoshared.exe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52839 --- Comment #32 from Alan Modra amodra at gcc dot gnu.org 2012-04-21 13:27:51 UTC --- Author: amodra Date: Sat Apr 21 13:27:44 2012 New Revision: 186650 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=186650 Log: PR libstdc++/52839 * acinclude.m4 (_GLIBCXX_ATOMIC_BUILTINS): Do not depend on glibcxx_cv_atomic_long_long. * configure: Regenerate. Modified: branches/gcc-4_7-branch/libstdc++-v3/ChangeLog branches/gcc-4_7-branch/libstdc++-v3/acinclude.m4
[Bug libstdc++/52839] [4.7/4.8 Regression] double free or corruption running tr1/.../default_weaktoshared.exe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52839 Alan Modra amodra at gmail dot com changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED --- Comment #34 from Alan Modra amodra at gmail dot com 2012-04-21 13:30:38 UTC --- fixed
[Bug libstdc++/52839] [4.7/4.8 Regression] double free or corruption running tr1/.../default_weaktoshared.exe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52839 --- Comment #31 from Alan Modra amodra at gcc dot gnu.org 2012-04-14 13:24:48 UTC --- Author: amodra Date: Sat Apr 14 13:24:43 2012 New Revision: 186453 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=186453 Log: PR libstdc++/52839 * acinclude.m4 (_GLIBCXX_ATOMIC_BUILTINS): Do not depend on glibcxx_cv_atomic_long_long. * configure: Regenerate. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/acinclude.m4 trunk/libstdc++-v3/configure
[Bug libstdc++/52839] [4.7/4.8 Regression] double free or corruption running tr1/.../default_weaktoshared.exe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52839 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.7.1 Summary|double free or corruption |[4.7/4.8 Regression] double |running |free or corruption running |tr1/.../default_weaktoshare |tr1/.../default_weaktoshare |d.exe |d.exe --- Comment #30 from Jonathan Wakely redi at gcc dot gnu.org 2012-04-13 20:51:57 UTC --- Alan, please send the attached patch to the libstdc++ and gcc-patches lists and check it in to trunk (with the regenerated 'configure') with my approval. It should go on the 4.7 branch too, but maybe wait a day or two for any problems to show up on trunk.