help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ std::string thread safe ?


From: mathieu
Subject: g++ std::string thread safe ?
Date: 31 May 2007 09:12:25 -0700
User-agent: G2/1.0

Hello,

  I am having some issue with a program when run in a multi threaded
environment. The program is sporadically seg faulting with the
following backtrace from gdb:


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1213191280 (LWP 29006)]
0xb7daa28e in std::string::assign () from /usr/lib/libstdc++.so.6
(gdb) bt
#0  0xb7daa28e in std::string::assign () from /usr/lib/libstdc++.so.6
#1  0xb7daa364 in std::string::operator= () from /usr/lib/libstdc++.so.
6
...

  I have been googling around about thread safety issue and
std::string and I could find very old posts. But right now I am using g
++ 4.2, is this still an issue ? Is there a way to recompile my code
using a thread safe std::string version ?

Thanks
-Mathieu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]