Concurrent reads in stl vector (pgCC)

My program has multiple threads reading (not writing) elements from std::vector using operator. All it is doing is assigning a temporary variable to the requested element of the vector. When I comment out this read, everything works fine. When it’s in the code, however, the program runs for an arbitrary amount of time and then quits with the following output:

Assertion failed in file "../../port/edgsrc.3.3/throw.c", line 1192

I am using version 5.2 of the compiler. Any ideas?

Scott Kilpatrick

There have been alot of changes in our C++ compiler since 5.2. Can you try it with 6.0 or 6.1?

Unfortunately, the lab I work in seems to be fixated on using outdated software, so I don’t think that’s a possibility.