ports/114585: Portupgrade children have numerous bogus open files.
Brad Huntting
huntting at glarp.com
Sat Jul 14 15:40:02 UTC 2007
>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 at 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:
More information about the freebsd-ports-bugs
mailing list