[omniORB] omniORBpy: segfault/bus errors using Any?
Duncan Grisby
dgrisby@uk.research.att.com
Wed, 15 Dec 1999 10:56:50 +0000
On Tuesday 14 December, Mark Borges wrote:
> I'm not sure if this is an obscure compiler/optimization bug, a
> misunderstanding of the Python mapping for Any on my part, or
> something else entirely different.
It's an omniORBpy bug! Here's a patch. It will appear in CVS
overnight.
Cheers,
Duncan.
RCS file: /project/omni/cvsroot/omniORBpy/modules/omnipy/pyTypeCode.cc,v
retrieving revision 1.5
diff -u -r1.5 pyTypeCode.cc
--- pyTypeCode.cc 1999/09/24 09:22:02 1.5
+++ pyTypeCode.cc 1999/12/15 10:51:48
@@ -371,7 +371,7 @@
PyObject* mems = PyTuple_GET_ITEM(d_o, 3); assert(PyTuple_Check(mems));
PyObject* mem;
- int cnt = PyTuple_GET_SIZE(t_o);
+ int cnt = PyTuple_GET_SIZE(mems);
for (int i=0; i<cnt; i++) {
mem = PyTuple_GET_ITEM(mems, i); assert(PyInstance_Check(mem));
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --