Comment 0 for bug 816287

Revision history for this message
giv (gavrikov-igor) wrote : Asterisk UDP socket leak

root@bird:/etc/asterisk# lsb_release -rd
Description: Ubuntu 10.04.3 LTS
Release: 10.04

root@bird:/etc/asterisk# apt-cache policy asterisk
asterisk:
  Installed: 1:1.6.2.5-0ubuntu1.4
  Candidate: 1:1.6.2.5-0ubuntu1.4
  Version table:
 *** 1:1.6.2.5-0ubuntu1.4 0
        500 http://ru.archive.ubuntu.com/ubuntu/ lucid-updates/universe Packages
        500 http://security.ubuntu.com/ubuntu/ lucid-security/universe Packages
        100 /var/lib/dpkg/status
     1:1.6.2.5-0ubuntu1 0
        500 http://ru.archive.ubuntu.com/ubuntu/ lucid/universe Packages

root@bird:/etc/asterisk# uname -a
Linux bird 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux

root@bird:/etc/asterisk# asterisk -r -x "core show version"
Asterisk 1.6.2.5-0ubuntu1.4 built by buildd @ yellow on a x86_64 running Linux on 2011-07-12 21:40:24 UTC

root@bird:/etc/asterisk# ls -lt /proc/`cat /var/run/asterisk/asterisk.pid`/fd/ | wc -l
334

root@bird:/etc/asterisk# lsof -i | grep UDP | wc -l
312

root@bird:/etc/asterisk# asterisk -r -x "core show channels"
Channel Location State Application(Data)
SIP/6039-00000128 (None) Up AppDial((Outgoing Line))
SIP/3422403720-00000 3422403740@ulink:9 Up Dial(SIP/6039,2,Tt)
SIP/7006-00000126 (None) Up AppDial((Outgoing Line))
SIP/3422403720-00000 3422403720@ulink:1 Up Dial(SIP/7001&SIP/7002&SIP/700
4 active channels
3 active calls
171 calls processed

root@bird:/etc/asterisk# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 20
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: asterisk 1:1.6.2.5-0ubuntu1.4
ProcVersionSignature: Ubuntu 2.6.32-21.32-server 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-server x86_64
Architecture: amd64
Date: Tue Jul 26 13:41:47 2011
ExecutablePath: /usr/sbin/asterisk
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
ProcEnviron:
 PATH=(custom, no user)
 SHELL=/bin/sh
SourcePackage: asterisk