[omniORB] SIGSEGV in marshalPyObjectWChar

Joel Wagner Joel.Wagner at veritas.com
Tue Apr 20 11:57:19 BST 2004


Tried changing the wchar array initialization from:
 

m.MediaLabel = u'x'  * 65
m.MediaDescription = u'y'  * 257
m.Barcode =  u'z'  * 33
 

To:
 


m.MediaLabel = [ u'x' ] * 65
m.MediaDescription = [ u'y' ] * 257
m.Barcode = [ u'z' ] * 33


 

omniORBpy stopped SIGSEGV'ing but looks like marshaling errors are occurring
when talking to a TAO server from an omniORBpy client

omniORB: throw MARSHAL from cs-UTF-16.cc:347 (YES,MARSHAL_InvalidWCharSize)


Here is more trace output.

 
omniORB: Invoke 'CreateMedia' on remote:
key<0x14010f005253543b2e844079bb0a000b000000010000000c000000>
omniORB: sendChunk: to giop:tcp:10.67.49.61:9999 1220 bytes
omniORB: 
4749 4f50 0102 0100 b804 0000 0e00 0000 GIOP............
0300 0000 0000 0000 1b00 0000 1401 0f00 ................
5253 543b 2e84 4079 bb0a 000b 0000 0001 RST;.. at y........
0000 000c 0000 0001 0c00 0000 4372 6561 ............Crea
7465 4d65 6469 6100 0000 0000 4944 4c3a teMedia.....IDL:
0100 0000 0000 0000 0000 0000 0000 0000 ................
0000 0000 0000 0000 0000 0000 0000 0000 ................
0000 0000 0200 7802 0078 0200 7802 0078 ......x..x..x..x
0200 7802 0078 0200 7802 0078 0200 7802 ..x..x..x..x..x.
0078 0200 7802 0078 0200 7802 0078 0200 .x..x..x..x..x..
7802 0078 0200 7802 0078 0200 7802 0078 x..x..x..x..x..x
0200 7802 0078 0200 7802 0078 0200 7802 ..x..x..x..x..x.
0078 0200 7802 0078 0200 7802 0078 0200 .x..x..x..x..x..
7802 0078 0200 7802 0078 0200 7802 0078 x..x..x..x..x..x
0200 7802 0078 0200 7802 0078 0200 7802 ..x..x..x..x..x.
0078 0200 7802 0078 0200 7802 0078 0200 .x..x..x..x..x..
7802 0078 0200 7802 0078 0200 7802 0078 x..x..x..x..x..x
0200 7802 0078 0200 7802 0078 0200 7802 ..x..x..x..x..x.
0078 0200 7802 0078 0200 7802 0078 0200 .x..x..x..x..x..
7802 0078 0200 7802 0079 0200 7902 0079 x..x..x..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7a02 007a y..y..y..y..z..z
0200 7a02 007a 0200 7a02 007a 0200 7a02 ..z..z..z..z..z.
007a 0200 7a02 007a 0200 7a02 007a 0200 .z..z..z..z..z..
7a02 007a 0200 7a02 007a 0200 7a02 007a z..z..z..z..z..z
0200 7a02 007a 0200 7a02 007a 0200 7a02 ..z..z..z..z..z.
007a 0200 7a02 007a 0200 7a02 007a 0200 .z..z..z..z..z..
7a02 007a 0200 7a02 007a 0200 7a18 4740 z..z..z..z..z.G@
0000 0000 0000 0000 0000 0000 0000 0000 ................
0000 0000 0000 0000 0000 0000 0000 0000 ................
0000 0000                               ....
omniORB: inputMessage: from giop:tcp:10.67.49.61:9999 808 bytes
omniORB: 
4749 4f50 0102 0101 1c03 0000 0e00 0000 GIOP............
0000 0000 0000 0000 0000 0000 0100 0000 ................
0000 0000 0000 0000 0345 0b9f dca7 0000 .........E......
e833 03d3 d5bf 7d4f 0000 0000 0000 0000 .3....}O........
0200 7802 0078 0200 7802 0078 0200 7802 ..x..x..x..x..x.
0078 0200 7802 0078 0200 7802 0078 0200 .x..x..x..x..x..
7802 0078 0200 7802 0078 0200 7802 0078 x..x..x..x..x..x
0200 7802 0078 0200 7802 0078 0200 7802 ..x..x..x..x..x.
0078 0200 7802 0078 0200 7802 0078 0200 .x..x..x..x..x..
7802 0078 0200 7802 0078 0200 7802 0078 x..x..x..x..x..x
0200 7802 0078 0200 7802 0078 0200 7802 ..x..x..x..x..x.
0078 0200 7802 0078 0200 7802 0078 0200 .x..x..x..x..x..
7802 0078 0200 7802 0078 0200 7802 0078 x..x..x..x..x..x
0200 7802 0078 0200 7802 0078 0200 7802 ..x..x..x..x..x.
0078 0200 7802 0078 0200 7802 0078 0200 .x..x..x..x..x..
7802 0078 0200 7802 0078 0200 7802 0078 x..x..x..x..x..x
0200 7802 0079 0200 7902 0079 0200 7902 ..x..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 7902 0079 0200 7902 0079 y..y..y..y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079 0200 7902 0079 0200 .y..y..y..y..y..
7902 0079 0200 cdcd 0079 0200 7902 0079 y..y.....y..y..y
0200 7902 0079 0200 7902 0079 0200 7902 ..y..y..y..y..y.
0079 0200 7902 0079                     .y..y..y
omniORB: throw MARSHAL from cs-UTF-16.cc:347 (YES,MARSHAL_InvalidWCharSize)
omniORB: Unexpected error encountered in talking to the server
giop:tcp:10.67.49.61:9999 . The connection is closed immediately.
omniORB: Client connection refcount = 0
omniORB: Client close connection to giop:tcp:10.67.49.61:9999


  _____  

From: Joel Wagner 
Sent: Monday, April 19, 2004 3:30 PM
To: 'omniorb-list at omniorb-support.com'
Subject: [omniORB] SIGSEGV in marshalPyObjectWChar



While using omniORB-4.0.3 and omniORBpy-2.3 on a Linux RHAS 2.1 machine I'm
experiencing a crash in the marshalling code of omniORBpy.  Any suggestions
on how to get through this problem would be greatly appreciated.

Thanks, 

Joel 


Here is an excerpt from the Python script that causes the problem. 

	m = V.M.Create_Args 
m.Key = 0 
m.Label = u'x' * 65 
resp, out = session.Create([m], 0) 

Here is the corresponding IDL: 

	struct Create_Args 
{ 
    long                                    Key; 
    wchar                                  Label[  65]; 
} ; 

	typedef sequence<Create_Args> Create_Args_Seq ; 

	unsigned long Create( inout Create_Args_Seq Arguments, in unsigned
long Flags) ; 


Here is the stack trace: 



omniORB: Invoke 'Create' on remote:
key<0x14010f005253542f1e84405b9a0500110000000100000012000000> 

Program received signal SIGSEGV, Segmentation fault. 
[Switching to Thread 1024 (LWP 29875)] 
0x402d3548 in marshalPyObjectWChar () from
/sdks/omniORB-4.0.3/Linux/lib/python2.3/site-packages/_omnipymodule.so 
(gdb) where 
#0  0x402d3548 in marshalPyObjectWChar () from
/sdks/omniORB-4.0.3/Linux/lib/python2.3/site-packages/_omnipymodule.so 
#1  0x402d2f9a in marshalPyObjectArray () from
/sdks/omniORB-4.0.3/Linux/lib/python2.3/site-packages/_omnipymodule.so 
#2  0x402cfdf3 in marshalPyObjectStruct () from
/sdks/omniORB-4.0.3/Linux/lib/python2.3/site-packages/_omnipymodule.so 
#3  0x402d1871 in marshalPyObjectSequence () from
/sdks/omniORB-4.0.3/Linux/lib/python2.3/site-packages/_omnipymodule.so

#4  0x402d3042 in marshalPyObjectAlias () from
/sdks/omniORB-4.0.3/Linux/lib/python2.3/site-packages/_omnipymodule.so 
#5  0x402c2830 in omniPy::Py_omniCallDescriptor::marshalArguments () 
   from
/sdks/omniORB-4.0.3/Linux/lib/python2.3/site-packages/_omnipymodule.so 
#6  0x403df98b in omni::GIOP_C::InitialiseRequest () from
/sdks/omniORB-4.0.3/Linux/lib/libomniORB4.so.0 
#7  0x403c7ee7 in omniRemoteIdentity::dispatch () from
/sdks/omniORB-4.0.3/Linux/lib/libomniORB4.so.0 
#8  0x403aacec in omniObjRef::_invoke () from
/sdks/omniORB-4.0.3/Linux/lib/libomniORB4.so.0 
#9  0x402b6fae in omnipy_invoke () from
/sdks/omniORB-4.0.3/Linux/lib/python2.3/site-packages/_omnipymodule.so 
#10 0x080e4ac1 in PyCFunction_Call (func=0x4026392c, arg=0x401f4a2c, kw=0x0)
at Objects/methodobject.c:108 
#11 0x080a6f92 in call_function (pp_stack=0xbffeb24c, oparg=4) at
Python/ceval.c:3439 
#12 0x080a5647 in eval_frame (f=0x816af4c) at Python/ceval.c:2116 
#13 0x080a65d3 in PyEval_EvalCodeEx (co=0x404f6f60, globals=0x4050f02c,
locals=0x0, args=0x814be98, argcount=3, 
    kws=0x814bea4, kwcount=0, defs=0x0, defcount=0, closure=0x0) at
Python/ceval.c:2663 
#14 0x080a8abb in fast_function (func=0x40510cdc, pp_stack=0xbffeb3ec, n=3,
na=3, nk=0) at Python/ceval.c:3532 
#15 0x080a7016 in call_function (pp_stack=0xbffeb3ec, oparg=2) at
Python/ceval.c:3458 
#16 0x080a5647 in eval_frame (f=0x814bd4c) at Python/ceval.c:2116 
#17 0x080a65d3 in PyEval_EvalCodeEx (co=0x401ed6a0, globals=0x401bc79c,
locals=0x401bc79c, args=0x0, argcount=0, kws=0x0, 

    kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2663 
#18 0x080a8956 in PyEval_EvalCode (co=0x401ed6a0, globals=0x401bc79c,
locals=0x401bc79c) at Python/ceval.c:542 
#19 0x080c4f75 in run_node (n=0x401a4350, filename=0xbffed12b "create_m",
globals=0x401bc79c, locals=0x401bc79c, 
    flags=0xbffeb56c) at Python/pythonrun.c:1239 
#20 0x080c3945 in PyRun_SimpleFileExFlags (fp=0x8121788, filename=0xbffed12b
"create_m", closeit=1, 
    flags=0xbffeb56c) at Python/pythonrun.c:836 
#21 0x08054e8e in Py_Main (argc=4, argv=0xbffeb624) at Modules/main.c:418 
#22 0x40082657 in __libc_start_main (main=0x80547a0 <main>, argc=4,
ubp_av=0xbffeb624, init=0x8053af0 <_init>, 
    fini=0x80e6de0 <_fini>, rtld_fini=0x4000dcd4 <_dl_fini>,
stack_end=0xbffeb61c) at ../sysdeps/generic/libc-start.c:129

(gdb) 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20040420/52d36272/attachment-0001.htm


More information about the omniORB-list mailing list