[omniORB] memory leak in omniNames with python

Mathieu de Naurois denauroi@in2p3.fr
Fri, 05 Oct 2001 16:52:32 +0200


Hi All,

My omniNames server is leaking memory when I list the content of a
context
from python.

This simple script demonstrates the problem:

-------------------------------
from omniORB import CORBA
import CosNaming
import sys

def update():
    print "testing"
    for k in range(100):
        l =3D rootContext.list(100)
        del l
    return 1

if __name__ =3D=3D '__main__':

    orb =3D CORBA.ORB_init(sys.argv, CORBA.ORB_ID)

rootContext=3Dorb.resolve_initial_references("NameService")._narrow(CosNa=
ming.NamingContext)

    for i in range(100):
        update()
----------------------

It seems every call to l =3D rootContext.list(100) consumes a little bit
memory, more or less proportional to
the number of contextes found.

It seems to occur only from Python.

Is that a known bug, or am I doing something wrong?

I'm using omniORB 3.0.4

Thanks.





--
Mathieu de Naurois
LPNHE - IN2P3 - CNRS - Universit=E9s Paris VI et Paris VII
4 place Jussieu
Tour 33 - Rez de chauss=E9e
75252 Paris Cedex 05
email: denauroi@in2p3.fr
tel : 01 44 27 23 24
fax : 01 44 27 46 38