From owner-freebsd-ports@FreeBSD.ORG Tue Feb 15 11:04:51 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C078106564A; Tue, 15 Feb 2011 11:04:51 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id D77B48FC15; Tue, 15 Feb 2011 11:04:50 +0000 (UTC) Received: by qyk8 with SMTP id 8so1860111qyk.13 for ; Tue, 15 Feb 2011 03:04:49 -0800 (PST) Received: by 10.229.233.74 with SMTP id jx10mr3821349qcb.97.1297767889662; Tue, 15 Feb 2011 03:04:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.214.200 with HTTP; Tue, 15 Feb 2011 03:04:29 -0800 (PST) In-Reply-To: <86bp2d1wit.fsf@chateau.d.if> References: <86bp2d1wit.fsf@chateau.d.if> From: =?UTF-8?Q?Marius_N=C3=BCnnerich?= Date: Tue, 15 Feb 2011 12:04:29 +0100 Message-ID: To: Ashish SHUKLA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org Subject: Re: pdnsd leaking udp sockets X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2011 11:04:51 -0000 Hi Ashish, On Tue, Feb 15, 2011 at 10:23, Ashish SHUKLA wrote: > Hi Marius, > > Marius N=C3=BCnnerich writes: >> Hi Ashish, all, > >> I'm currently using pdnsd as a local dns cache. It seems to leak udp >> sockets. After an uptime of about 7 days it looks like this: > >> % sockstat -46 | grep pdnsd >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 3 =C2=A0tcp4 =C2=A0 127.0.= 0.1:53 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*:* >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 4 =C2=A0udp4 =C2=A0 127.0.= 0.1:53 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*:* >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 6 =C2=A0udp4 =C2=A0 *:* = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *:* >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 7 =C2=A0udp4 =C2=A0 *:* = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *:* >> [...] >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 140 udp4 =C2=A0*:* =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *:* >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 141 udp4 =C2=A0*:* =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *:* >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 142 udp4 =C2=A0*:* =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *:* >> % > >> It doesn't seem to do this on linux so I guess there is something >> different how we have to close a udp socket on freebsd? >> Any idea how to debug this? Anybody else seeing this? > > Thanks for reporting this. ATM, I'm not sure how to debug this, I've to l= ook > at its code base. Any details about the version of FreeBSD you're using, > related log messages (from dmesg or /var/log/messages) are welcome. dmesg and messages are clean. My FreeBSD ist 8.0-RELEASE/amd64. I took a look at the code too but couldn't see anything suspicious. I don't have time right now but one idea would be to add some dtrace probes to the source. > > I'll get back to you soon with my findings. > > Thanks > -- > Ashish SHUKLA > > =E2=80=9CI think I can safely say that nobody understands quantum mechani= cs.=E2=80=9D > (Richard Feynman, 1965) >