djbdns
[Top] [All Lists]

Re: Too many open files tinydns?

To:
Subject: Re: Too many open files tinydns?
From: "Cap Casady" <casady@acm.org>
Date: Sat, 18 Nov 2006 10:37:20 cst
Cc: dns@list.cr.yp.to
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-djbdns@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list dns@list.cr.yp.to
In-reply-to: <12c201c709c9$0f82b810$6701a8c0@ndciwkst01>; from "Shaun" at Nov 16, 2006 1:47 pm
Mailing-list: contact dns-help@list.cr.yp.to; run by ezmlm
Mbox-line: From casady Sat Nov 18 10:37:20 2006 remote from 2
Sender: casady@cap.ccc
In the original code if cdb_read encountered an error it returned an
error code and the calling function exited without closing the cdb data file
resulting in an fd leak.
The error could be a corrupted file or a file system error.

> 
> Is this a bug that's been reported/open for a while or is this somthing i 
> just discovered?  This version of djbdns has been out for a long time now, i 
> would think it would have been discovered a long time ago, expecially since 
> when it starts happening tinydns stops responding to requests!
> 
> Vincent yes please send me the patch and if you submitted a bug some where 
> can you forword me that url too for tracking.
> 
> ~Shaun
> ----- Original Message ----- 
> From: "Vincent Labrecque" <vnc@hush.ai>
> To: "Shaun" <mailinglists@unix-scripts.com>
> Sent: Thursday, November 16, 2006 9:02 AM
> Subject: Re: Too many open files tinydns?
> 
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> >
> >
> > On Wed, 15 Nov 2006 20:20:27 -0500 Shaun <mailinglists@unix-
> > scripts.com> wrote:
> >>diff on the source shows it's the same... also after i restarted
> >>tinydns now
> >>a lsof |grep data.cdb doesnt even show up at all which is weird...
> >
> > I have a patch for the fd leak, which i will submit to djb for
> > integration.  If you care to take a look at it and run it ask me
> > and I'll send it to you.
> >
> > - -vincent
> > -----BEGIN PGP SIGNATURE-----
> > Note: This signature can be verified at https://www.hushtools.com/verify
> > Version: Hush 2.5
> >
> > wpwEAQECAAYFAkVcmZQACgkQsBV9fcPttKC/qwQAjPkuUuTnvuxsTuQEdB+CV359981R
> > llbnMiIPlVSdosBWvcQIpIKSjHNpdXv0VwgndEpHLRvBfBYev0WZpofAVk0iBMC+QojT
> > BBBt/3EXEXDMI+hxYgViK2mGitrxsy7JaZHoLCNHXFUKbmOE3i+/pCBhx40fJquGSOcK
> > m8vMYNM=
> > =C9SR
> > -----END PGP SIGNATURE-----
> >
> >
> > 
> 
> 



<Prev in Thread] Current Thread [Next in Thread>