This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
STL, string bug
- To: "'egcs-bugs at egcs dot cygnus dot com'" <egcs-bugs at egcs dot cygnus dot com>
- Subject: STL, string bug
- From: "Beardsley, Jason" <jbeardsley at origin dot ea dot com>
- Date: Tue, 27 Apr 1999 14:37:22 -0500
With the discussion about SGI's STL v3.2 and all, I thought it
appropriate to re-post this bug report.
The problem is, apparently, the <string> implementation provided
with egcs is not multithreaded-safe. If I had to guess, I'd say
it was a problem with the reference counting, but the internals
of the class are sufficiently obscure that I haven't looked too
hard at it (especially since the SGI <string> works just fine).
I do not know if the libstdc++-v3 <string> is MT-safe, as I have
not tried it. Obviously, it would be nice if it were, and I do
hope to find some time to give it a shot.
Attached is the usual stuff: the original source, the preprocessed
source, and the compiler messages. Note that the program only
crashes on multiprocessor boxes - on a uniprocessor, no crash.
Jason Beardsley
jbeardsley@origin.ea.com
bug.cpp.gz
bug.ii.gz
bug.out.gz