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

John Quick john.quick at smartvox.co.uk
Fri Dec 16 09:11:00 EST 2016


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





More information about the Devel mailing list