[OpenSIPS-Devel] pkg_malloc leak with 1.6.3-tls (set_dst_uri/get_all_bodies/new_part)

Chase Venters chase at exceleron.com
Tue Mar 8 21:15:34 CET 2011


Greetings,
    I've been seeing a pkg_malloc leak in my production OpenSIPS
instances. I followed the memory debugging advice and built my own RPMs
with memory debugging, then obtained dumps after several days of
production traffic.
    The full memory dump is huge... I'd be happy to zip it up and put it
somewhere, but it seems to me that the bulk of allocated memory is
between these three functions / allocation sites:

2011-03-01T00:14:07-06:00 utm01     30980. N  address=0xbf7520
frag=0xbf74f0 size=16 used=1
2011-03-01T00:14:07-06:00 utm01             alloc'd from
parser/msg_parser.c: set_dst_uri(739)
2011-03-01T00:14:07-06:00 utm01         start check=f0f0f0f0, end check=
c0c0c0c0, abcdefed
2011-03-01T00:14:07-06:00 utm01     30981. N  address=0xbf7590
frag=0xbf7560 size=16 used=1
2011-03-01T00:14:07-06:00 utm01             alloc'd from
parser/msg_parser.c: set_dst_uri(739)
2011-03-01T00:14:07-06:00 utm01         start check=f0f0f0f0, end check=
c0c0c0c0, abcdefed
2011-03-01T00:14:07-06:00 utm01     30983. N  address=0xbf76a8
frag=0xbf7678 size=56 used=1
2011-03-01T00:14:07-06:00 utm01             alloc'd from
parser/parse_multipart.c: get_all_bodies(212)
2011-03-01T00:14:07-06:00 utm01         start check=f0f0f0f0, end check=
c0c0c0c0, abcdefed
2011-03-01T00:14:07-06:00 utm01     30984. N  address=0xbf7740
frag=0xbf7710 size=56 used=1
2011-03-01T00:14:07-06:00 utm01             alloc'd from
parser/parse_multipart.c: new_part(38)
2011-03-01T00:14:07-06:00 utm01         start check=f0f0f0f0, end check=
c0c0c0c0, abcdefed
2011-03-01T00:14:07-06:00 utm01     30991. N  address=0xbf7fa0
frag=0xbf7f70 size=56 used=1
2011-03-01T00:14:07-06:00 utm01             alloc'd from
parser/parse_multipart.c: new_part(38)
2011-03-01T00:14:07-06:00 utm01         start check=f0f0f0f0, end check=
c0c0c0c0, abcdefed
2011-03-01T00:14:07-06:00 utm01     30994. N  address=0xbf8358
frag=0xbf8328 size=56 used=1
2011-03-01T00:14:07-06:00 utm01             alloc'd from
parser/parse_multipart.c: new_part(38)
2011-03-01T00:14:07-06:00 utm01         start check=f0f0f0f0, end check=
c0c0c0c0, abcdefed

    I am attaching the template we use to generate our OpenSIPS route
scripts on our production servers. Note that we're not seeing a tm,
dialog or shm memory leak.

Thanks,
Chase
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: opensips.cfg.tt
URL: <http://lists.opensips.org/pipermail/devel/attachments/20110308/4ec405dc/attachment-0001.asc>


More information about the Devel mailing list