pdnsd leaking udp sockets

Marius Nünnerich marius at nuenneri.ch
Tue Feb 15 11:04:51 UTC 2011


Hi Ashish,

On Tue, Feb 15, 2011 at 10:23, Ashish SHUKLA <ashish at freebsd.org> wrote:
> Hi Marius,
>
> Marius Nünnerich 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   pdnsd      19655 3  tcp4   127.0.0.1:53          *:*
>> nobody   pdnsd      19655 4  udp4   127.0.0.1:53          *:*
>> nobody   pdnsd      19655 6  udp4   *:*                   *:*
>> nobody   pdnsd      19655 7  udp4   *:*                   *:*
>> [...]
>> nobody   pdnsd      19655 140 udp4  *:*                   *:*
>> nobody   pdnsd      19655 141 udp4  *:*                   *:*
>> nobody   pdnsd      19655 142 udp4  *:*                   *:*
>> %
>
>> 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 look
> 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
>
> “I think I can safely say that nobody understands quantum mechanics.”
> (Richard Feynman, 1965)
>


More information about the freebsd-ports mailing list