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

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Mar 10 15:16:23 CET 2011


Hi Chase,

Could you privately send me the entire log ?

Thanks and regards,
Bogdan

Chase Venters wrote:
> 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
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


-- 
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 28th February 2011
OpenSIPS solutions and "know-how"




More information about the Devel mailing list