[Kamailio-Devel] [ openser-Bugs-2066292 ] Memory leak in presence module

SourceForge.net noreply at sourceforge.net
Fri Aug 22 04:26:00 CEST 2008


Bugs item #2066292, was opened at 2008-08-22 02:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2066292&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Memory leak in presence module

Initial Comment:
Version 1.3.2

Openser's SHM utilization continues to rise over time.  After a day or so run with 3500+ registered endpoints some of which are subscribing to various events, the load is removed from the server for a number of hours and with memory debuging turned on, openser is stopped.

The Memory status (SHM) contains many thousands of:

 alloc'd from hash.c: mem_copy_subs_noc(230) 

line 230 of modules/presence/hash.c:

dest->contact.s= (char*)shm_malloc(s->contact.len* sizeof(char));


Looking through the code, in modules/presence/subscribe.c around line 1461 I find:

shm_free(del_s);

shouldn't there be something like this before it?

if (del_s->contact.s) {
    shm_free(del_s->contact.s);
}


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2066292&group_id=139143



More information about the Devel mailing list