From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,13b07d76a1ff2d24,start X-Google-Attributes: gidfee84,public From: rboehne@my-deja.com Subject: C++ w/ Shared Libs Coredumps on OSF1 Date: 2000/05/05 Message-ID: <8evg0i$svg$1@nnrp1.deja.com>#1/1 X-Deja-AN: 619750787 X-Http-Proxy: 1.0 x21.deja.com:80 (Squid/1.1.22) for client 199.178.221.2 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri May 05 21:55:38 2000 GMT X-MyDeja-Info: XMYDJUIDrboehne Newsgroups: comp.unix.osf.osf1 X-Http-User-Agent: Mozilla/4.7 [en] (X11; U; AIX 4.3) In the following link line, there are several shared objects written in C++ that I have compiled. If any two of these library files are linked into the executalbe (dynamically) the program dumps core before it reaches main(). I have gotten this same program to work on three other (UNIX) platforms. Since the core dump is occurring before main() I can't debug it (maybe I don't know how?). Is this a bug in cxx or am I linking the shared libs incorrectly? If I only link in (and only use) the first (TKernel) everything works just fine. cxx -msg_display_tag -std ansi -call_shared -rpath /boreas/CAS3.0/`uname`/lib -L/sw5/rdg/lib/Debug/`platname` -L/boreas/CAS3.0/`uname`/lib -o example main.o example.o -lOpenGl -lTKV3d -lTKV2d -lTKService -lTKFeat -lTKOffset -lTKFillet -lTKHLR -lTKBool -lTKPrim -lTKTopAlgo -lTKGeomAlgo -lTKBRep -lTKGeomBase -lTKG3d -lTKG2d -lTKMath -lTKernel -lrp -lrg -lr3d -lrz -lru -lXtras -lXbae -lXpm -lGLU -lGLw -lGL -lXm -lXt -lXext -lX11 -lm anubis::/boreas/rbo/examp (142)% example /boreas/rbo/Config/ Segmentation fault (core dumped) anubis::/boreas/rbo/examp (143)% rm core anubis::/boreas/rbo/examp (144)% ladebug example Welcome to the Ladebug Debugger Version 4.0-43 ------------------ object file name: example Reading symbolic information ...done (ladebug) stop in main [#1: stop in void main(int, char**) ] (ladebug) run /boreas/rbo/Config Thread received signal SEGV stopped at [UnknownProcedure23FromFile11 0x3ff8019e4e8] (ladebug) where >0 0x3ff8019e4e8 in UnknownProcedure23FromFile11(0x3ffbdcedd8c, 0x3fffea74d78, 0x14004b008, 0x0, 0x3ff8202fc40, 0x11ffff6a8) DebugInformationStrippedFromFile11 #1 0x3ff80114908 in __tis_mutex_lock(0x14004b008, 0x0, 0x3ff8202fc40, 0x11ffff6a8, 0x3ff80114e8c, 0x0) DebugInformationStrippedFromFile742 #2 0x3ff80114e88 in __cma_tis_mutex_lock(0x3ff8202fc40, 0x11ffff6a8, 0x3ff80114e8c, 0x0, 0x3ff8202fc00, 0x14004b000) DebugInformationStrippedFromFile740 #3 0x3ff8202fbfc in __cxx_mutex_lock(0x3ff80114e8c, 0x0, 0x3ff8202fc00, 0x14004b000, 0x3ffbececeb8, 0x200000000) DebugInformationStrippedFromFile42 #4 0x3ffbececeb4 in UnknownProcedure34FromFile185(0x0, 0x100000000, 0x3ffff05de48, 0x3ffff05de98, 0x3ff80114dac, 0x3fffea5b770) DebugInformationStrippedFromFile185 #5 0x3ffbecec1c0 in Init(0x3ff80114dac, 0x3fffea5b770, 0x3ffbdcee4ac, 0x3fffea5b778, 0x3ffbdcee498, 0x3fffe986130) DebugInformationStrippedFromFile185 #6 0x3ffbdcee4a8 in __init_sti__cxxl_std_init_cpp_65f45f2a(0x3ffbdcee498, 0x3fffe986130, 0x3ffbdd2f43c, 0x2ff000260a0, 0x3ffc004b380, 0xfffffffffffffff8) DebugInformationStrippedFromFile508 #7 0x3ffbdd2f438 in /boreas/CAS3.0/OSF1/lib/libTKernel.so (ladebug) quit Sent via Deja.com http://www.deja.com/ Before you buy.