Subject: bin/12614: new sort leaks fd's?
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ad@netbsd.org>
List: netbsd-bugs
Date: 04/11/2001 10:50:53
>Number:         12614
>Category:       bin
>Synopsis:       new sort leaks fd's?
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 11 03:51:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Doran
>Release:        NetBSD-1.5T
>Organization:
Pobalscoil Neasain
>Environment:
	
NetBSD mailhub.psn.ie 1.5T NetBSD 1.5T (PSN) #1: Tue Apr  3 18:31:10 IST
2001     root@alto.internal:/local/src/sys/arch/i386/compile/PSN i386

>Description:
	The new BSD licensed sort leaks fd's, or at least it appears to.
>How-To-Repeat:
	Generate a report using sqmgrlog (Squid log analyser). I can provide
	suitable logs upon request.

	GNU sort:

# sqmgrlog -v2
SQMGRLOG: Successfull report generated on /foo/2001Apr04-2001Apr11

	new sort:

# sqmgrlog -v2
sort: ftmp: mkstemp("/tmp/sort.002852ch"): Too many open files
sort: /foo/2001Apr04-2001Apr11/.htmp: No such file or directory
SQMGRLOG: (totday) Cannot open log file: /foo/2001Apr04-2001Apr11/.sort

>Fix:
	Jaromir.
>Release-Note:
>Audit-Trail:
>Unformatted: