From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13464 invoked by alias); 12 Jun 2007 03:48:57 -0000 Received: (qmail 13453 invoked by uid 22791); 12 Jun 2007 03:48:57 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Jun 2007 03:48:55 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1HxxND-0004n1-00; Tue, 12 Jun 2007 05:48:51 +0200 Date: Tue, 12 Jun 2007 06:54:00 -0000 To: Tad Cc: eCos Disuss Message-ID: <20070612034851.GJ26816@lunn.ch> Mail-Followup-To: Tad , eCos Disuss References: <466DDDCF.1040506@ds3switch.com> <20070611230045.GI26816@lunn.ch> <466DE365.1090800@ds3switch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <466DE365.1090800@ds3switch.com> User-Agent: Mutt/1.5.13 (2006-08-11) From: Andrew Lunn X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Re: accept() FreeBSD hangs when out of resources X-SW-Source: 2007-06/txt/msg00120.txt.bz2 On Mon, Jun 11, 2007 at 04:05:57PM -0800, Tad wrote: > Andrew Lunn wrote: > >On Mon, Jun 11, 2007 at 03:42:07PM -0800, Tad wrote: > > > >>>>accept() won't return and won't timeout (>12hrs) when listen() > >>>>indicates a new connection, if out of sockets/file-descriptors and all > >>>>TCP connections are in ESTABLISHED state. > >>>> > >>>Where exactly is it blocked. Please could you provide a call stack. > > It's possible that the block is somewhere such as this "FIXME" code that > wasn't finished in sys/kern/sockio.c Yes, i already looked at this code. However this code is creating a new file descriptor. However the way eCos works is that the file descriptor has already been allocated and is passed into the function as a parameter. So i went back and looked at what called this function and where is the file descriptor allocated. That code does appear to correct handle insufficient resources. So, i really need more information, eg the test case, or a backtrace when the thread is blocked. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss