This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

STL, string bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]