[omniORB] memory leak in omniORB-4.1.x

Serguei Kolos Serguei.Kolos at cern.ch
Mon Oct 29 11:21:29 GMT 2012


Hi Duncan

You are right. I have finally found that the memory leak
was in my code, so the omniORB is innocent. Sorry for
the noise.

Cheers,
Sergei

On 10/29/2012 11:42 AM, Duncan Grisby wrote:
> On Fri, 2012-10-26 at 15:36 +0200, Serguei Kolos wrote:
>
>> I believe I have found a memory leak in the omniORB-4.1.6 (which exists
>> also in the previous
>> versions).
> How do you observe the leak?
>
>> The giopServer class maintains the list of connectionState objects for
>> each opened connection,
>> but the issue is that objects are never removed from that list, even if
>> a connection is closed.
> The workers _are_ removed from the list. There are several places in
> giopServer.cc that call w->remove(). Those calls are removing workers
> from the list. If you are seeing a leak, it's a more subtle situation
> than just that the list is never emptied.
>
> That said, there is no current need for the code to keep track of the
> workers in that list, and the logic is unnecessarily complicated. The
> whole connection management approach could do with being refactored, not
> just this aspect of it.
>
> Cheers,
>
> Duncan.
>




More information about the omniORB-list mailing list