Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jul 2007 09:10:07 -0600 (MDT)
From:      Brad Huntting <huntting@glarp.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/114585: Portupgrade children have numerous bogus open files.
Message-ID:  <200707141510.l6EFA7FF013465@hunkular.glarp.com>
Resent-Message-ID: <200707141540.l6EFe2Dx022847@freefall.freebsd.org>

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

>Number:         114585
>Category:       ports
>Synopsis:       Portupgrade children have numerous bogus open files.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 14 15:40:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Brad Huntting
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
(minimal)
>Environment:
System: FreeBSD hunkular.glarp.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Sun Apr 22 23:45:09 MDT 2007 root@hunkular.glarp.com:/usr/src/sys/i386/compile/HUNKULAR i386


>Description:
	Child processes of portupgrade-devel-2.3.0_5 appear to have
	many open file descriptors (>50 in some cases) apprently
	inherited from portupgrade.

	Portupgrade should probably either set the close on exec
	(FD_CLOEXEC) flag when opening files like +CONTENT, or
	explicitly close all non-essential file descriptors after
	fork and before exec.

>How-To-Repeat:
	Upgrade a port with many dependencies.  While it's running,
	run 'fstat' in another window.  Observe the unnaturally
	large number of open file descriptors for processes like
	'make' and 'sh'.

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707141510.l6EFA7FF013465>