From owner-freebsd-hackers@FreeBSD.ORG Fri May 30 09:24:41 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 28F2437B401; Fri, 30 May 2003 09:24:41 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 726FC43F75; Fri, 30 May 2003 09:24:40 -0700 (PDT) (envelope-from eischen@pcnet.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h4UGOdNc006123; Fri, 30 May 2003 12:24:39 -0400 (EDT) Date: Fri, 30 May 2003 12:24:39 -0400 (EDT) From: Daniel Eischen To: Enache Adrian In-Reply-To: <20030530160723.GB872@ratsnest.hole> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Daniel Eischen cc: Sergey Starosek cc: hackers@freebsd.org 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:24:41 -0000 On Fri, 30 May 2003, Enache Adrian wrote: > 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 Yes, and PR 49087 also. If someone (Ruslan?) wants to commit them, go ahead. They are probably applicable to -stable also. -- Dan Eischen