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

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to