[omniORB] omniORB 4 crashes on cleanup

Teemu Torma tot@trema.com
Thu Nov 7 17:28:00 2002


--------------Boundary-00=_Z5V76W9MEX6K47NGPKI0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

omniORB 4 crashes on cleanup when exiting, because the default=20
constructor for omniOrbPOA does not initialize pd_oidPrefix and thus=20
tries to free an invalid pointer when the nil poa is destroyed.

Teemu

--------------Boundary-00=_Z5V76W9MEX6K47NGPKI0
Content-Type: text/x-diff;
  charset="us-ascii";
  name="poa-ctor.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="poa-ctor.patch"

Index: src/lib/omniORB/orbcore/poa.cc
===================================================================
RCS file: /trema/cvs/fk/tools/omniorb/src/lib/omniORB/orbcore/poa.cc,v
retrieving revision 1.1.1.7
retrieving revision 1.2
diff -c -u -r1.1.1.7 -r1.2
--- src/lib/omniORB/orbcore/poa.cc	1 Nov 2002 16:03:02 -0000	1.1.1.7
+++ src/lib/omniORB/orbcore/poa.cc	7 Nov 2002 17:19:16 -0000	1.2
@@ -2022,7 +2022,8 @@
     pd_poaIdSize(0),
     pd_deathSignal(&pd_lock),
     pd_oidIndex(0),
-    pd_activeObjList(0)
+    pd_activeObjList(0),
+    pd_oidPrefix(0)
 {
 }
 

--------------Boundary-00=_Z5V76W9MEX6K47NGPKI0--