[SunHELP] standard C library problems: core dumps

sunhelp at sunhelp.org sunhelp at sunhelp.org
Thu Jan 24 13:15:01 CST 2002


Hi,

I'm running into a weird problem: when I call my library from multiple Java
threads I'm getting core dumps from libc (as for now, the functions I ever
got core dump from were strlen, atoi, realloc). I wonder if I'm compiling
smth wrong or it is a Solaris bug that has to be patched. My configuration
is:

Compilation environment: Solaris 2.6 (with latest patches installed, as I
was told), gcc 3.0.3.
Was tested both under Solaris 2.6 and Solaris 2.8.

Compilation string is:

g++ -DVDK_CE_ANSI -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS  -pthreads -fPIC
-shared -shared-libgcc -I/usr/java/include -I/usr/java/include/solaris
-I/devel/sb-79/src/GIS/Charts/ -I/opt/xrt014a/include -I. -L/opt/xrt014a/lib
-L../../../../../classes -L/usr/java/jre/lib/ -L/usr/lib
-L/usr/java/jre/lib/sparc/ -L/usr/java/jre/lib/sparc/classic/
-L/usr/java/jre/lib/sparc/native_threads/ -L/usr/java/include/
-L/usr/java/include/solairs/ $(OBJECT_FILES) -ldl -lnsl -lposix4 -lsocket
-lxrtm -lpdsutil -lxrtjpeg -lxrtpng -ljpeg -lxrtmprop -lXm -lMrm -lXpm -lXt
-lX11 -lz -lstdc++ -lpthread -lc -o libXRTGenericEngine.so


Any help would be greatly appreciated! Thanks,

vladimir



More information about the SunHELP mailing list