This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Regression test for thread safety?


Hi,
we're running into a nasty heap corruption problem
when using gcc3.0.2's stl in a multithreaded application.

I have read
http://www.sgi.com/tech/stl/thread_safety.html
and understand that STL is threadsafe only in
a limited sense.  I looked around a bit
for a regression test for STL that tested this
limited thread safety -- for example, by running
plain old STL regression tests in many noninteracting threads 
at the same time, and was dismayed to find none.  

For instance, I downloaded 
 ... pub/gcc/releases/gcc-3.1/gcc-testsuite-3.1.tar.bz2
unpacked it, and did
   find . -print | xargs grep pthread_create
and saw *zero* matches.  Same goes for the test suite
across town at stlport.org.

If I missed something obvious, I'd appreciate a pointer
to where the thread safety regression test lives, thanks.

- Dan


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