Re: Repeatable STL core with -pthread

2000-11-10 Thread Terry Lambert
> > The program will core after about 10 seconds, every time. > > It would appear that there is an issue with some low-level allocator in the > > STL as shipped in 4.x. > > Dude. The STL implementation that ships with g++ isn't thread safe. > In fact, if you read the STL portion of the C++ sp

Re: Repeatable STL core with -pthread

2000-11-09 Thread Jack Rusher
James FitzGibbon wrote: > > The program will core after about 10 seconds, every time. > It would appear that there is an issue with some low-level allocator in the > STL as shipped in 4.x. Dude. The STL implementation that ships with g++ isn't thread safe. In fact, if you read the STL portio

Repeatable STL core with -pthread

2000-11-09 Thread James FitzGibbon
We're having a problem with threaded programs that use the STL. Given the following program: --START-- #include #include typedef map mymap_t; #ifdef GLOBLOCK pthread_mutex_t glob_mut; #endif void *run(void *) { while (1) { string f(""); #ifdef GLOBLOCK