[omniORB] /echo/eg1 runs segmentation fault when linked with static library

jack dang jacdang at gmail.com
Thu Dec 7 10:35:46 GMT 2006


in the example directory omniORB-4.0.7/build/src/examples/echo, I simply

#      make
#      rm -f eg1
#      g++ -g -o eg1 -O2 -Wall -Wno-unused -fexceptions -fno-unit-at-a-time
-L../../../lib -L../../../../lib eg1.o ../../../stub/echoSK.o
/home/jack/omniORB-4.0.7/build/lib/libomniORB4.a
/home/jack/omniORB-4.0.7/build/lib/libomnithread.a
-lpthread
#      ./eg1
Segmentation fault

# gdb ./eg1
GNU gdb Red Hat Linux (6.3.0.0-1.122rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols
found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/jack/omniORB-4.0.7/build/src/examples/echo/eg1
Reading symbols from shared object read from target memory...(no debugging
symbols found)...done.
Loaded system supplied DSO at 0xab7000
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1208428880 (LWP 5767)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208428880 (LWP 5767)]
0x0809e6fb in omni::omni_cdrStream_initialiser::attach ()
(gdb) bt
#0  0x0809e6fb in omni::omni_cdrStream_initialiser::attach ()
#1  0x0804e9cd in CORBA::ORB_init ()
#2  0x08049ff3 in main ()
(gdb)



Is there any who has some idea on this, i will be so appreciated if anyone
could shed some light on this.
Thank in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20061207/e7de17a2/attachment.htm


More information about the omniORB-list mailing list