[omniORB] Help.!!!!! getting segmentation fault when running omniORB4 serve r as a task on linux-powerPC

Sheshi Sankineni Sheshi.Sankineni@cosinecom.com
Wed, 27 Mar 2002 17:19:45 -0800


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1D5F6.A518EDB0
Content-Type: text/plain;
	charset="iso-8859-1"

Hi All,

I downloaded omniORB4 and compiled with gcc 2.95.3 on linux-powerpc.

(gcc was downloaded gcc 2.95.3 and configured it as follows
./configure --prefix=/dvlp/ssankine/gcc/gcc-2.95.3 --enable-threads=posix 
--enable-languages=c,c++,objc --with-newlib --enable-shared=libgcc,libstdc++
and built it (doing make bootstrap) on linux-powerpc)

I then used this gcc to compile the the omniORB library on linux-powerpc.

The actual program where my ORB server (as a task) runs is compiled using
the cross compiler
(version 2.95.2) and used the newly compiled gcc's libraries from above
(libstdc++-libc6.2-2-2.10.0.0.so). When I try to contact this ORB server I
get a segmentation fault and my program aborts.

Here is the stack trace from dbg

omniORB: Server accepted connection from giop:tcp:172.xx.xx.xx:1710
[New Thread 107626 (LWP 32151)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 107626 (LWP 32151)]
0x0f5dce94 in omni_tracedmutex::lock () from
/dvlp/ssankine/omni-ppc/lib/libomniORB4.so.0
(gdb) bt
#0  0x0f5dce94 in omni_tracedmutex::lock ()
   from /dvlp/ssankine/omni-ppc/lib/libomniORB4.so.0
#1  0x0f680b6c in omniAsyncWorker::run ()
   from /dvlp/ssankine/omni-ppc/lib/libomniORB4.so.0
#2  0x0f47e244 in omni_thread_wrapper ()
   from /dvlp/ssankine/omni-ppc/lib/libomnithread.so.3
#3  0x0f715e84 in pthread_start_thread (arg=0x0) at manager.c:274
#4  0x0f715ec8 in pthread_start_thread_event (arg=0x727ffc00) at
manager.c:297
#5  0x0f3bb11c in clone () at soinit.c:64

I would really appreciate if you let me know what is the reason for this
segmentation fault.

Thanks for your help

-sheshi



------_=_NextPart_001_01C1D5F6.A518EDB0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>Help.!!!!! getting segmentation fault when running omniORB4 =
server as a task on linux-powerPC</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Courier New">Hi All,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">I downloaded omniORB4 and =
compiled with gcc 2.95.3 on linux-powerpc.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">(gcc was downloaded gcc 2.95.3 =
and configured it as follows</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">./configure =
--prefix=3D/dvlp/ssankine/gcc/gcc-2.95.3 --enable-threads=3Dposix =
</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">--enable-languages=3Dc,c++,objc =
--with-newlib --enable-shared=3Dlibgcc,libstdc++</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">and built it (doing make =
bootstrap) on linux-powerpc)</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">I then used this gcc to compile =
the the omniORB library on linux-powerpc.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">The actual program where my ORB =
server (as a task) runs is compiled using the cross compiler</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">(version 2.95.2) and used the =
newly compiled gcc's libraries from above =
(libstdc++-libc6.2-2-2.10.0.0.so). When I try to contact this ORB =
server I get a segmentation fault and my program aborts.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">Here is the stack trace from =
dbg</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">omniORB: Server accepted =
connection from giop:tcp:172.xx.xx.xx:1710</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">[New Thread 107626 (LWP =
32151)]</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">Program received signal SIGSEGV, =
Segmentation fault.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">[Switching to Thread 107626 =
(LWP 32151)]</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">0x0f5dce94 in =
omni_tracedmutex::lock () from =
/dvlp/ssankine/omni-ppc/lib/libomniORB4.so.0</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">(gdb) bt</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">#0&nbsp; 0x0f5dce94 in =
omni_tracedmutex::lock ()</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp;&nbsp; from =
/dvlp/ssankine/omni-ppc/lib/libomniORB4.so.0</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">#1&nbsp; 0x0f680b6c in =
omniAsyncWorker::run ()</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp;&nbsp; from =
/dvlp/ssankine/omni-ppc/lib/libomniORB4.so.0</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">#2&nbsp; 0x0f47e244 in =
omni_thread_wrapper ()</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp;&nbsp; from =
/dvlp/ssankine/omni-ppc/lib/libomnithread.so.3</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">#3&nbsp; 0x0f715e84 in =
pthread_start_thread (arg=3D0x0) at manager.c:274</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">#4&nbsp; 0x0f715ec8 in =
pthread_start_thread_event (arg=3D0x727ffc00) at manager.c:297</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">#5&nbsp; 0x0f3bb11c in clone () =
at soinit.c:64</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">I would really appreciate if you =
let me know what is the reason for this segmentation fault.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">Thanks for your help</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">-sheshi</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C1D5F6.A518EDB0--