[omniORB] early program crash when omniORB linked as part of a .so

Slawomir Lisznianski slisznianski at asyncnet.com
Fri Jul 22 16:56:05 BST 2005


Hello,

We have a shared library that internally uses omniORB. When our shared
library is linked against shared omniORB libraries, everything works
fine. However, when we try to link our shared library with omniORB
static libraries (compiled as PIC), then the program that uses our
shared library crashes on startup:

Program terminated with signal 11, Segmentation fault.
#0  0x00f3d787 in pthread_mutex_lock () from /lib/tls/libpthread.so.0
#1  0x0035577f in pthread_mutex_lock () from /lib/tls/libc.so.6
#2  0x082adc02 in omni::TypeCode_collector::duplicateRef ()
#3  0x082a30c3 in omni::TypeCode_alias::TypeCode_alias ()
#4  0x0067833c in omni::check_static_data_is_initialised ()
#5  0x00679506 in global constructors keyed to _ZN5CORBA8TypeCodeD2Ev ()

Platform: Linux 2.4.21
Compiler: GNU g++ 3.2.3

How can one use statically-linked omniORB libraries as part of a shared
library?

Slawomir




More information about the omniORB-list mailing list