Date: Tue, 6 Dec 2005 10:20:54 +1030 (CST) From: "Daniel J. O'Connor" <darius@dons.net.au> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/90002: env spins chewing CPU in some circumstances Message-ID: <200512052350.jB5Nosxo016045@midget.dons.net.au> Resent-Message-ID: <200512060000.jB600LdP042690@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 90002 >Category: bin >Synopsis: env spins chewing CPU in some circumstances >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 06 00:00:18 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Daniel J. O'Connor >Release: FreeBSD 6.0-RELEASE amd64 >Organization: >Environment: FreeBSD cain.gsoft.com.au 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Wed Nov 2 19:07:38 UTC 2005 root@rat.samsco.home:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The env program has some regressions in 6.0 when used as a script interpreter. In some cases it will spin in a tight loop consuming CPU. >How-To-Repeat: [cain 10:15] ~ >cat ./testscript #!/usr/bin/env FOO=BAR /bin/sh echo FOO in $FOO In 6.0 amd64, and -current i386 it exhibits the failure above. In i386 5.4 it works. I believe it is a problem with 6.0 onwards and not architecture specific but I don't have enough test machines to be sure. It appears to be going in a strange loop allocating and freeing memory as the size fluctuates between 1.2Mb and 380kb. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512052350.jB5Nosxo016045>