Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 1998 01:47:10 +0300 (MSK)
From:      Dmitry Khrustalev <dima@bog.msu.su>
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/5961: dup2 wrapper in libc_r is incomplete
Message-ID:  <Pine.GSO.3.95.980310014355.8819B-100000@sunny.bog.msu.su>

next in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.95.980310014355.8819B-100000>