From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 1 18:58:13 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66B20106566C for ; Sun, 1 Feb 2009 18:58:13 +0000 (UTC) (envelope-from sepotvin@videotron.ca) Received: from zerofail.com (gatekeeper1.zerofail.com [208.71.11.38]) by mx1.freebsd.org (Postfix) with ESMTP id 077E48FC0A for ; Sun, 1 Feb 2009 18:58:12 +0000 (UTC) (envelope-from sepotvin@videotron.ca) Received: from telcobridges.com by freebsd.org (zerofail.com) (SecurityGateway 1.1.2) with SMTP id SG001466676.MSG for ; Sun, 01 Feb 2009 13:48:05 -0500 Received: from leia.telcobridges.com ([208.94.105.59]) by telcobridges.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 1 Feb 2009 13:48:08 -0500 Message-ID: <4985EE67.8090807@videotron.ca> Date: Sun, 01 Feb 2009 13:48:07 -0500 From: "Stephane E. Potvin" User-Agent: Thunderbird 2.0.0.19 (X11/20090127) MIME-Version: 1.0 To: vasanth raonaik References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: multipart/mixed; boundary="------------060609060307040009050607" X-OriginalArrivalTime: 01 Feb 2009 18:48:08.0018 (UTC) FILETIME=[9FA96320:01C9849D] X-SGHeloLookup-Result: hardfail smtp.helo=telcobridges.com (does not match 208.71.8.41) X-SGOP-RefID: str=0001.0A090208.4985EE68.00D2,ss=2,fgs=0 (_st=2 _vt=0 _iwf=0) Cc: freebsd-hackers@freebsd.org Subject: Re: telnetd[20170]: ttloop: peer died: Resource temporarily unavailable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2009 18:58:14 -0000 This is a multi-part message in MIME format. --------------060609060307040009050607 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 vasanth raonaik wrote: > Hello Hackers, > > I am seeing this message continuously in syslog for every 60 secs. what > could be the possible reasons for this error messages. Are you using an amd64 kernel? If so, you could try the attached patch. I've encountered a similar problem today (in my case the problem was with dbus) where select would fail due to a 64->32 bit truncation in the kernel. Steph -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmF7mAACgkQmdOXtTCX/ntNWACeJ9TYzbl9hW5aheJP/RtLm2J0 /aMAoIUHbBpsD1v6O30yXpuXkRZWaEfN =4JD4 -----END PGP SIGNATURE----- --------------060609060307040009050607 Content-Type: text/plain; name="lp64_select_fix.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lp64_select_fix.diff" Index: kern/sys_generic.c =================================================================== --- kern/sys_generic.c (revision 187983) +++ kern/sys_generic.c (working copy) @@ -903,7 +903,7 @@ * bit position in the fd_mask array. */ static __inline int -selflags(fd_mask **ibits, int idx, int bit) +selflags(fd_mask **ibits, int idx, fd_mask bit) { int flags; int msk; @@ -912,7 +912,7 @@ for (msk = 0; msk < 3; msk++) { if (ibits[msk] == NULL) continue; - if ((ibits[msk][idx] & (fd_mask)bit) == 0) + if ((ibits[msk][idx] & bit) == 0) continue; flags |= select_flags[msk]; } --------------060609060307040009050607 Content-Type: application/octet-stream; name="lp64_select_fix.diff.sig" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="lp64_select_fix.diff.sig" iEYEABECAAYFAkmF7mcACgkQmdOXtTCX/ntCdACdHHO7E2tRUXBPjFDZS+0ckuFSfFkAoM+t axjEFjy8wmmWrWmbR3qhqFMY --------------060609060307040009050607--