[asterisk-bugs] [JIRA] (ASTERISK-23999) (Memory leak) Realtime peers are never unref

nicolasom (JIRA) noreply at issues.asterisk.org
Mon Jul 7 17:56:56 CDT 2014


nicolasom created ASTERISK-23999:
------------------------------------

             Summary: (Memory leak) Realtime peers are never unref
                 Key: ASTERISK-23999
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23999
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Channels/chan_sip/DatabaseSupport
    Affects Versions: 1.8.28.2
            Reporter: nicolasom
            Severity: Critical


I have more than 850,000 realtime peers in memory in less than 24 hours.

CLI> sip show objects
{noformat}-= Peer objects: 7 static, 851368 realtime, 1 autocreate =-{noformat}

In function build_peer, at line 28831, calling to ref_peer that is never unref_peer.

{code}
28829 	/* Startup regular pokes */
28830 	if (!devstate_only && enablepoke) {
28831 		ref_peer(peer, "schedule qualify");
28832 		sip_poke_peer(peer, 0);
28833 	}
{code}

If remove this code, the problem disappears.

sip.conf
{code}
[general]
port=5060
bindaddr=0.0.0.0
srvlookup=yes
disallow=all
allow=g726,alaw,ulaw,g729,speex,ilbc,g722,gsm
dtmfmode=rfc2833
rtupdate=yes
rtsavesysname=yes
allowguest=no
alwaysauthreject=yes
callerid=
allowsubscribe=no
use_q850_reason=yes
{code}

Realtime SIP Settings:
{noformat}
  Realtime Peers:         Yes
  Realtime Regs:          No
  Cache Friends:          No
  Update:                 Yes
  Ignore Reg. Expire:     No
  Save sys. name:         Yes
  Auto Clear:             120 (Disabled)
{noformat}




--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list