This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++ & threads == problems
- To: egcs-bugs at cygnus dot com
- Subject: libstdc++ & threads == problems
- From: Troy Benjegerdes <hozer at drgw dot net>
- Date: Thu, 13 Aug 1998 01:53:30 -0500 (CDT)
I have been having lots of problems with egcs, c++, and any kind of
threads library.
I haven't been able to figure out exactly what is going on, but on my
Linux-PPC system, it appears that libstc++ isn't reentrant.
I have been trying to compile the coda filesystem package, which uses a
user-level threads library, and have been having problems with it
segfaulting whenever getting a signal, or sometime for seemingly random
reasons. I have also verified one instance where memory in the libstc++
library was getting modified. (it was a pointer to someting used in the
function prologue/epilogue)
( I have also been having problems with the smupsd-0.9.1 package, which
also uses g++ and threads, but in this case, pthreads )
I just compiled with gcc-2.7.2 and the corresponding libstc++, and much to
my delight it appears the problems have went away.
Please contact me if you have any test code I can run to verify this, or
if you want furthur details.
--------------------------------------------------------------------------
| Troy Benjegerdes | troybenj@iastate.edu | hozer@drgw.net |
| Unix is user friendly... You just have to be friendly to it first. |
| This message composed with 100% free software. http://www.linux.org |
--------------------------------------------------------------------------