From owner-freebsd-bugs Mon Mar 9 14:50:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA20239 for freebsd-bugs-outgoing; Mon, 9 Mar 1998 14:50:32 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA20148; Mon, 9 Mar 1998 14:50:08 -0800 (PST) (envelope-from gnats) Received: from sunny.bog.msu.su (sunny.bog.msu.su [158.250.20.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA19363 for ; Mon, 9 Mar 1998 14:47:20 -0800 (PST) (envelope-from dima@bog.msu.su) Received: from localhost (dima@localhost) by sunny.bog.msu.su (8.8.8/8.8.8) with SMTP id BAA08872 for ; Tue, 10 Mar 1998 01:47:11 +0300 (MSK) (envelope-from dima@bog.msu.su) Message-Id: Date: Tue, 10 Mar 1998 01:47:10 +0300 (MSK) From: Dmitry Khrustalev To: freebsd-gnats-submit@FreeBSD.ORG Subject: bin/5961: dup2 wrapper in libc_r is incomplete Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5961 >Category: bin >Synopsis: dup2 wrapper in libc_r is incomplete >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 9 14:50:03 PST 1998 >Last-Modified: >Originator: Dmitry Khrustalev >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: perl5.004_62, cc -pthread >Description: Then dup2 is given closed newfd it will call _thread_fd_lock on closed file descriptor and fail. >How-To-Repeat: build multithreaded perl5, it will break due to inproper behavior of dup2 wrapper. >Fix: I'm not shure what is the proper test for closed fd condition. Maybe _thread_fd_table[fd] == NULL ? >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message