[omniORB] static library

tristan blunderer at gmail.com
Tue Mar 4 22:38:47 GMT 2008


Hello,
I've built an application using omniORB and while I'm generating dynamic ELF
everything is working fine.
The problem is when I generate a static binary for i386 cpu : there is a
SIGSEGV in function ORB_init.

here is the output from valgrind :


==5489== Thread 16:
==5489== Conditional jump or move depends on uninitialised value(s)
==5489==    at 0x84F988C: strlen (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x8310710: omniORB::logger::~logger() (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x836CCB6: omni::omniCodeSet::logCodeSets() (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x82F1D70: CORBA::ORB_init(int&, char**, char const*, char
const* (*) [2]) (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x812EB56: CEqpInterfaceImpl_v2::InitOrb()
(EqpInterface_v2.cpp:234)
==5489==    by 0x812F04E: CEqpInterfaceImpl_v2::Start(char const*,
ISecurityModule*) (EqpInterface_v2.cpp:305)
==5489==    by 0x810538D: CMsgCom::MsgComMain(CMsgCom*) (msgcom.cpp:581)
==5489==    by 0x825B429: cbth_handler(void*) (linuxthread.cpp:27)
==5489==    by 0x845C8D9: start_thread (pthread_create.c:296)
==5489==    by 0x850E31D: clone (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
omniORB: Native char code sets:.
omniORB: Transmission char code sets:.
omniORB: Native wide char code sets:.
==5489==
==5489== Conditional jump or move depends on uninitialised value(s)
==5489==    at 0x84F98D1: strlen (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x8310710: omniORB::logger::~logger() (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x836CEDC: omni::omniCodeSet::logCodeSets() (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x82F1D70: CORBA::ORB_init(int&, char**, char const*, char
const* (*) [2]) (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x812EB56: CEqpInterfaceImpl_v2::InitOrb()
(EqpInterface_v2.cpp:234)
==5489==    by 0x812F04E: CEqpInterfaceImpl_v2::Start(char const*,
ISecurityModule*) (EqpInterface_v2.cpp:305)
==5489==    by 0x810538D: CMsgCom::MsgComMain(CMsgCom*) (msgcom.cpp:581)
==5489==    by 0x825B429: cbth_handler(void*) (linuxthread.cpp:27)
==5489==    by 0x845C8D9: start_thread (pthread_create.c:296)
==5489==    by 0x850E31D: clone (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
omniORB: Transmission wide char code sets:.
==5489==
==5489== Invalid read of size 4
==5489==    at 0x83460B1: omni::omni_cdrStream_initialiser::attach() (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x82F1D7C: CORBA::ORB_init(int&, char**, char const*, char
const* (*) [2]) (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x812EB56: CEqpInterfaceImpl_v2::InitOrb()
(EqpInterface_v2.cpp:234)
==5489==    by 0x812F04E: CEqpInterfaceImpl_v2::Start(char const*,
ISecurityModule*) (EqpInterface_v2.cpp:305)
==5489==    by 0x810538D: CMsgCom::MsgComMain(CMsgCom*) (msgcom.cpp:581)
==5489==    by 0x825B429: cbth_handler(void*) (linuxthread.cpp:27)
==5489==    by 0x845C8D9: start_thread (pthread_create.c:296)
==5489==    by 0x850E31D: clone (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==  Address 0x4 is not stack'd, malloc'd or (recently) free'd
==5489==
==5489== Process terminating with default action of signal 11 (SIGSEGV)
==5489==  Access not within mapped region at address 0x4
==5489==    at 0x83460B1: omni::omni_cdrStream_initialiser::attach() (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x82F1D7C: CORBA::ORB_init(int&, char**, char const*, char
const* (*) [2]) (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==    by 0x812EB56: CEqpInterfaceImpl_v2::InitOrb()
(EqpInterface_v2.cpp:234)
==5489==    by 0x812F04E: CEqpInterfaceImpl_v2::Start(char const*,
ISecurityModule*) (EqpInterface_v2.cpp:305)
==5489==    by 0x810538D: CMsgCom::MsgComMain(CMsgCom*) (msgcom.cpp:581)
==5489==    by 0x825B429: cbth_handler(void*) (linuxthread.cpp:27)
==5489==    by 0x845C8D9: start_thread (pthread_create.c:296)
==5489==    by 0x850E31D: clone (in
/home/blunderer/Work/thales/ittem/ittem/v_ittem/ITTEM/Gau/Delivery/Linux/bin/ITTEM_GAU)
==5489==
==5489== ERROR SUMMARY: 83698 errors from 294 contexts (suppressed: 0 from
0)
==5489== malloc/free: in use at exit: 0 bytes in 0 blocks.
==5489== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==5489== For counts of detected errors, rerun with: -v
==5489== All heap blocks were freed -- no leaks are possible.


Does anybody know something about that?

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20080304/2ca368ae/attachment.htm


More information about the omniORB-list mailing list