[asterisk-bugs] [JIRA] (ASTERISK-22945) Memory leak in chan_sip.c with realtime autoclear

ibercom (JIRA) noreply at issues.asterisk.org
Fri Dec 6 07:21:04 CST 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ibercom updated ASTERISK-22945:
-------------------------------

    Description: 
I have 2 servers with SIP realtime config and asterisk 1.8 and 11 each one.

Server 1.8 have about 2000 register peers without obvious problems.

Server 11 have about 20 register peers and chan_sip.c is constantly leaking memory with each call to the other peers.

The SIP realtime config is the same:

rtcachefriends=yes
rtsavesysname=yes
rtupdate=yes
rtautoclear=yes		<< I think than here is the problem
ignoreregexpire=yes

When Server 11 look for some peer (not register peer) in sippeers table, it works with this info. Another (+1) static (realtime?) object. When the registration expires, memory leak. You can look for the same peer after some time and asterisk allocates memory again and it isn't freed.

I have attached cli-command.txt which shows the asterisk's state with only 112 calls processed.


  was:
I have 2 servers with SIP realtime config and asterisk 1.8 and 11 each one.

Server 1.8 have about 2000 register peers without obvious problems.

Server 11 have about 20 register peers and chan_sip.c is constantly leaking memory with each call to the other peers.

The SIP realtime config is the same:

rtcachefriends=yes
rtsavesysname=yes
rtupdate=yes
rtautoclear=yes		<< I think than here is the problem
ignoreregexpire=yes

When Server 11 look for some peer (not register peer) in sippeers table, it works with this info. Another (+1) static (realtime?) object. When the registration expires, memory leak. You can look for the same peer after some time and asterisk allocates memory again and it isn't freed.

I have attached cli-command.txt which shows the asterisk's state with only 112 calls processed.

The files memory-summary.txt and memory-allocations show asterisk's state with a lot of calls processed.


    
> Memory leak in chan_sip.c with realtime autoclear
> -------------------------------------------------
>
>                 Key: ASTERISK-22945
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22945
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General
>    Affects Versions: 11.6.0
>            Reporter: ibercom
>         Attachments: cli-command.txt
>
>
> I have 2 servers with SIP realtime config and asterisk 1.8 and 11 each one.
> Server 1.8 have about 2000 register peers without obvious problems.
> Server 11 have about 20 register peers and chan_sip.c is constantly leaking memory with each call to the other peers.
> The SIP realtime config is the same:
> rtcachefriends=yes
> rtsavesysname=yes
> rtupdate=yes
> rtautoclear=yes		<< I think than here is the problem
> ignoreregexpire=yes
> When Server 11 look for some peer (not register peer) in sippeers table, it works with this info. Another (+1) static (realtime?) object. When the registration expires, memory leak. You can look for the same peer after some time and asterisk allocates memory again and it isn't freed.
> I have attached cli-command.txt which shows the asterisk's state with only 112 calls processed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list