This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
STL containers dumping core on HP11i
- From: "Charles Y. Kim" <ckim at telcontar dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Thu, 30 May 2002 14:55:53 -0700
- Subject: STL containers dumping core on HP11i
- Reply-to: <ckim at telcontar dot com>
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