This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

STL containers dumping core on HP11i


Hi all,

I'm having problem with STL containers dumping core in a shared object that
I'm writing in HP11i, compiled with gcc3.0.4.  The shared object is being
dlopen()ed.

These containers are being used as private data in classes, and whenever
anything is assigned to them, I'll get a segmentation fault/core dumped.
GDB points to "_Rb_tree" as being the culprit.  Interestingly enough, if I
go into one of the class functions and declare an STL container there, I can
assign stuff to it all day long and not receive any errors.

Does anyone have ANY ideas on how I can fix this?  This problem is killing
me.

Here's my gcc configuration:

/opt/ckim/gcc-3.0.4/configure --enable-shared --enable-threads=posix --enabl
e-version-specific-runtime-libs --prefix=/opt/gcc-3.0.4 --with-gnu-as --with
-as=/opt/binutils/bin/as
Thread model: posix
gcc version 3.0.4

Also, this code works in other platforms (Linux, Solaris, Windows), but is
causing a problem in HP-UX.

Thanks.

- Charles


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