This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/32261] Thread race segfault in std::string::append with -O and -s
- From: "jlawson-gcc at bovine dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2007 02:42:32 -0000
- Subject: [Bug libstdc++/32261] Thread race segfault in std::string::append with -O and -s
- References: <bug-32261-7959@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from jlawson-gcc at bovine dot net 2007-06-14 02:42 -------
bug 21334 seems to deal with multiple threads accessing the same shared object
at the same time. However, the sample code provided here involves separate
private objects so there should not be any such issues. If it is not possible
to assume that separate threads can access unrelated STL objects at the same
time, then this would imply that all STL operations (regardless of the object)
must be serialized!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32261