[SR-Users] Memory leak

marius zbihlei marius.zbihlei at 1and1.ro
Wed Sep 22 17:39:13 CEST 2010


On 09/22/2010 06:21 PM, marius zbihlei wrote:
> On 09/22/2010 06:08 PM, Klaus Darilion wrote:
>    
>> Am 22.09.2010 15:31, schrieb Santiago Soares:
>>
>>      
>>> Thank's for the answers.
>>> Based on your explanation, I think that the problem is an external library.
>>> The kamailio process is taking all the system memory.
>>> When the system runs out of memory, it kills kamailio.
>>> But how can I find out what is the library?
>>>
>>>        
>> This means that either the library is buggy, or the library is used
>> wrongly (e.g. not releasing buffers ...). Let's take a look at your modules:
>>
>> loadmodule "maxfwd.so"
>> loadmodule "exec.so"
>> loadmodule "tm.so"
>> loadmodule "sl.so"
>> loadmodule "dispatcher.so"
>> loadmodule "textops.so"
>> loadmodule "xlog.so"
>> loadmodule "mi_fifo.so"
>> loadmodule "pv.so"
>>
>> I think they do not use any external libraries
>>
>> loadmodule "regex.so"
>>
>> This one uses libpcre. Maybe there is a problem with the regular
>> expressions?
>>
>>
>>      
>    

Hello again,

There seems to be a  memory leak in w_pcre_match . I have fixed it in 
commit 61f4d7f. Please compile with this patch and test (applied to git 
kamailio_3.0 branch)

Marius
> Hello
> I have some suggestions
>
>       # excessively long display name
>           if (!pcre_match("$fn","^.{0,62}$$")) {
>                   sl_send_reply("403", "Forbidden - Display Name Max Size
> Exceeded");
>                   exit;
>           };
>
>
> this will be much better handled by a transformation
>
> if ( $(fn{s.len})>  62 ) {...}
>
> Make this change and see if you still have problems with OOM Killer
>
> Marius
>
>    
>> regards
>> Klaus
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>>      
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>    



More information about the sr-users mailing list