[omniORB] Python 2, FreeBSD 4, omniORBpy, core dump

Ng Pheng Siong ngps@post1.com
Mon, 12 Feb 2001 22:26:05 +0800


Hi,

I'm trying out omniORBpy on FreeBSD 4.0 with Python 2.0 and am getting 
core dumps with the echo server example:

$ omniNames -logdir `pwd`

$ omniidl -bpython example_echo.idl

$ python example_echo_nssrv.py 
Segmentation fault (core dumped)


Gdb reports:

#0  0x282e986c in omniRemoteIdentity::dispatch ()
   from /usr/local/pkg/omniORB/lib/x86_freebsd_4.0/libomniORB3.so.0
(gdb) bt
#0  0x282e986c in omniRemoteIdentity::dispatch ()
   from /usr/local/pkg/omniORB/lib/x86_freebsd_4.0/libomniORB3.so.0
#1  0x282e65d6 in omniObjRef::_invoke () from /usr/local/pkg/omniORB/lib/x86_freebsd_4.0/libomniORB3.so.0
#2  0x28263509 in omniPy::newTwin () from /usr/local/pkg/omniORB/lib/x86_freebsd_4.0/_omnipymodule.so
#3  0x805aca0 in call_builtin (func=0x81816d0, arg=0x810c10c, kw=0x0) at ceval.c:2650
#4  0x805ab3c in PyEval_CallObjectWithKeywords (func=0x81816d0, arg=0x810c10c, kw=0x0) at ceval.c:2618
#5  0x8059410 in eval_code2 (co=0x81ce980, globals=0x8188b8c, locals=0x0, args=0x80fb93c, argcount=2, 
    kws=0x80fb944, kwcount=0, defs=0x0, defcount=0, owner=0x81d028c) at ceval.c:1951
#6  0x8058fc4 in eval_code2 (co=0x8139180, globals=0x810510c, locals=0x810510c, args=0x0, argcount=0, 
    kws=0x0, kwcount=0, defs=0x0, defcount=0, owner=0x0) at ceval.c:1850
#7  0x80553b0 in PyEval_EvalCode (co=0x8139180, globals=0x810510c, locals=0x810510c) at ceval.c:319
#8  0x80719a8 in run_node (n=0x8100d40, filename=0xbfbffae3 "example_echo_nssrv.py", globals=0x810510c, 
    locals=0x810510c) at pythonrun.c:886
#9  0x807194d in run_err_node (n=0x8100d40, filename=0xbfbffae3 "example_echo_nssrv.py", globals=0x810510c, 
    locals=0x810510c) at pythonrun.c:874
#10 0x8071918 in PyRun_FileEx (fp=0x28190fc0, filename=0xbfbffae3 "example_echo_nssrv.py", start=257, 
    globals=0x810510c, locals=0x810510c, closeit=1) at pythonrun.c:866
#11 0x8070d61 in PyRun_SimpleFileEx (fp=0x28190fc0, filename=0xbfbffae3 "example_echo_nssrv.py", closeit=1)
    at pythonrun.c:579
#12 0x8070878 in PyRun_AnyFileEx (fp=0x28190fc0, filename=0xbfbffae3 "example_echo_nssrv.py", closeit=1)
    at pythonrun.c:459
#13 0x8051357 in Py_Main (argc=2, argv=0xbfbff9e8) at main.c:289
#14 0x8050d16 in main (argc=2, argv=0xbfbff9e8) at python.c:10
#15 0x8050c99 in _start ()


If I step thru the server using the Python debugger, it works!

Is there any magic incantation needed for FreeBSD? 

Hints appreciated. Cheers.


-- 
Ng Pheng Siong <ngps@post1.com> * http://www.post1.com/home/ngps