From owner-freebsd-hackers@FreeBSD.ORG Fri May 30 09:04:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C43537B401 for ; Fri, 30 May 2003 09:04:48 -0700 (PDT) Received: from mail.rdslink.ro (mail.rdslink.ro [193.231.236.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 8EC0043F93 for ; Fri, 30 May 2003 09:04:45 -0700 (PDT) (envelope-from enache@rdslink.ro) Received: (qmail 20625 invoked from network); 30 May 2003 16:08:43 -0000 Received: from unknown (HELO ratsnest.hole) (81.196.245.29) by mail.rdslink.ro with SMTP; 30 May 2003 16:08:43 -0000 Date: Fri, 30 May 2003 19:07:23 +0300 From: Enache Adrian To: Ruslan Ermilov Message-ID: <20030530160723.GB872@ratsnest.hole> References: <20030530143541.GB42349@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030530143541.GB42349@sunbay.com> User-Agent: Mutt/1.4i cc: Daniel Eischen cc: hackers@FreeBSD.org cc: Sergey Starosek cc: Yaroslav Levchenko Subject: Re: libc_r: threaded application could stuck in accept(2) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 16:04:48 -0000 On Fri, May 30, 2003 at 05:35:41PM +0300, Ruslan Ermilov wrote: > We had a bug in our threaded application that would mistakenly close > the descriptor 0, and this triggers a bug in libc_r which I will try > to describe below. ... > Some important notes: this bug is only applicable to descriptors > 0 - 2 (stdio set), and might have something to do with the code > in uthread_fd.c. If you remove two lines that free the descriptor > 0 in the attached test case, the bug won't manifest itself. please have a look at http://www.freebsd.org/cgi/query-pr.cgi?pr=51535 Regards, Adi