public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "laurent.alfonsi at st dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/52604] mt allocator crashes on multi-threaded
Date: Fri, 13 Apr 2012 09:46:00 -0000	[thread overview]
Message-ID: <bug-52604-4-BRp4xZsngR@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52604-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52604

--- Comment #14 from Laurent Aflonsi <laurent.alfonsi at st dot com> 2012-04-13 09:46:24 UTC ---
Thanks very much Paolo.
Here it is. I'll commit the patch in the mainline if no objection.
Laurent

2012-04-13  Laurent Alfonsi  <laurent.alfonsi@st.com>

    PR libstdc++/52604
    * src/mt_allocator.cc: (~__freelist): Reset pointer.


Index: src/c++98/mt_allocator.cc
===================================================================
--- src/c++98/mt_allocator.cc    (revision 186374)
+++ src/c++98/mt_allocator.cc    (working copy)
@@ -48,6 +48,7 @@
     {
       __gthread_key_delete(_M_key);
       ::operator delete(static_cast<void*>(_M_thread_freelist_array));
+      _M_thread_freelist = 0;
     }
     }
   };


  parent reply	other threads:[~2012-04-13  9:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-16 15:25 [Bug libstdc++/52604] New: " laurent.alfonsi at st dot com
2012-03-16 15:32 ` [Bug libstdc++/52604] " laurent.alfonsi at st dot com
2012-03-19 13:04 ` paolo.carlini at oracle dot com
2012-03-20 12:34 ` laurent.alfonsi at st dot com
2012-03-20 12:56 ` paolo.carlini at oracle dot com
2012-03-20 14:05 ` jakub at gcc dot gnu.org
2012-03-23 11:11 ` laurent.alfonsi at st dot com
2012-04-10 15:28 ` laurent.alfonsi at st dot com
2012-04-11  1:08 ` paolo.carlini at oracle dot com
2012-04-12 15:05 ` laurent.alfonsi at st dot com
2012-04-12 15:37 ` paolo.carlini at oracle dot com
2012-04-12 16:30 ` paolo.carlini at oracle dot com
2012-04-12 21:56 ` laurent.alfonsi at st dot com
2012-04-12 23:02 ` paolo.carlini at oracle dot com
2012-04-13  9:46 ` laurent.alfonsi at st dot com [this message]
2012-04-13  9:49 ` redi at gcc dot gnu.org
2012-04-13 10:29 ` paolo.carlini at oracle dot com
2012-04-13 10:31 ` paolo.carlini at oracle dot com
2012-04-13 12:01 ` laurent.alfonsi at st dot com
2012-04-13 12:02 ` laurent.alfonsi at st dot com
2012-04-13 14:46 ` paolo.carlini at oracle dot com
2012-04-17 13:19 ` chrbr at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-52604-4-BRp4xZsngR@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).