[OpenSIPS-Devel] Memory leak in DR module, I think

Liviu Chircu liviu at opensips.org
Fri Dec 16 09:42:18 EST 2016


That's right on the spot, John! It seems this issue had been caught a 
long time ago, but, unfortunately, the fix did not make its way into 2.1 
until now, as I just backported it.

Thank you for all the help!

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 16.12.2016 16:11, John Quick wrote:
> For attention of Liviu Chircu,
>
> Thanks for your help with diagnosing memory leaks. I think I have now found
> the culprit. The smoking gun!
>
> I kept increasing the syslog rate limiting value until it reached 40000
> burst. This was still not enough, but I can see the one that is frequent and
> it fits with the symptoms too.
> Here is a small sample from the end of the dump:
>
> 2016-12-16 13:59:30      13335. N  address=0x7f4be90020d8
> frag=0x7f4be90020a8 size=64 used=1
> 2016-12-16 13:59:30              alloc'd from drouting.c:
> route2_carrier(3046)
> 2016-12-16 13:59:30          start check=f0f0f0f0f0f0f0f0, end check=
> c0c0c0c0c0c0c0c0, abcdefedabcdefed
> 2016-12-16 13:59:30      13336. N  address=0x7f4be9002178
> frag=0x7f4be9002148 size=48 used=1
> 2016-12-16 13:59:30              alloc'd from drouting.c:
> route2_carrier(3046)
> 2016-12-16 13:59:30          start check=f0f0f0f0f0f0f0f0, end check=
> c0c0c0c0c0c0c0c0, abcdefedabcdefed
> 2016-12-16 13:59:30      13337. N  address=0x7f4be9002208
> frag=0x7f4be90021d8 size=40 used=1
> 2016-12-16 13:59:30              alloc'd from drouting.c:
> route2_carrier(3046)
> 2016-12-16 13:59:30          start check=f0f0f0f0f0f0f0f0, end check=
> c0c0c0c0c0c0c0c0, abcdefedabcdefed
>
> I use the DR module to select a route for calls through this proxy. The
> memory leak is fastest when there are lots of calls during the day, then it
> is slow at night.
> OpenSIPS Version 2.1.4
>
> John Quick
> Smartvox Limited
> Web: www.smartvox.co.uk
>
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel




More information about the Devel mailing list