[omniORB] Segmentation Fault on AIX

Gary D. Duzan gdd0@gte.com
Mon, 26 Feb 2001 09:26:20 -0500


In Message <9AF728C3B988D411B3F000805F0DD5C307933F@swserv3.lisec.com> ,
   Andreas Eglseer - Entwicklung <andreas.eglseer@lisec.com> wrote:

=>Hi omniORB'ers
=>
=>I have a problem running one of our programs on an AIX 4.3.3 ( xlC 5.0 ),
=>which runs well under Linux.
=>
=>I've tried to get rid of that by debugging the prog., but I found no reason,
=>why a memory corruption,
=>should occur.
=>
=>So I rewrote the 2nd example I got with the omniORB tarball ( see the
=>attachment ), and there
=>( I think ) the same problem occured.
=>It is a recursive call of a function ( max: 10000 ), normally this is no
=>problem, it is also no problem whitin the prog.,
=>as long as the ORB is not initialised, but when I call it over a corba
=>function, it crashes after 1200 and a few calls.

   Well, I don't know why the ORB would make a big difference, but
I do have an idea why AIX might be a problem. The ABI standard for
AIX defines that stack frames be a fairly large fixed size, so I
wouldn't be at all surprised if you are hitting the stack size
limit. Try raising the stack limit ("ulimit -s ###" on ksh, "unlimit
stacksize" on csh) and see if things get any better. I'd also
suggest trying to reframe your code iteratively instead of recursively.
If you really need that sort of recursion, you might consider
imbedding a Scheme interpreter or something of the sort.

					Gary Duzan
					Verizon Laboratories