From owner-freebsd-stable@FreeBSD.ORG Fri Oct 14 20:50:35 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1D4A106566C for ; Fri, 14 Oct 2011 20:50:35 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id 949CA8FC1A for ; Fri, 14 Oct 2011 20:50:35 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 50DABB37AA; Fri, 14 Oct 2011 22:50:34 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Stefan Bethke In-Reply-To: <20111014120336.GB31718@stack.nl> Date: Fri, 14 Oct 2011 22:50:32 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <08C7028B-10E1-4855-B007-D2257216F077@lassitu.de> References: <20110918045413.GA63773@DataIX.net> <20110918053901.GA31617@icarus.home.lan> <86d3eydsmf.fsf@kopusha.home.net> <20111008002707.GA76128@swelter.hanley.stade.co.uk> <20111012222535.GB79291@swelter.hanley.stade.co.uk> <20111014120336.GB31718@stack.nl> To: Jilles Tjoelker X-Mailer: Apple Mail (2.1251.1) Cc: "freebsd-stable@freebsd.org" , Mikolaj Golub Subject: Re: /usr/bin/script eating 100% cpu with portupgrade and xargs X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2011 20:50:35 -0000 Am 14.10.2011 um 14:03 schrieb Jilles Tjoelker: > On Wed, Oct 12, 2011 at 11:25:35PM +0100, Adrian Wontroba wrote: >> On Sat, Oct 08, 2011 at 01:27:07AM +0100, Adrian Wontroba wrote: >>> I won't be in a position to create a simpler test case, raise a PR = or >>> try patches till Tuesday evening (UK) at the earliest. >=20 >> So far I have been unable to reproduce the problem with portupgrade = (and >> will probably move to portmaster). >=20 >> I have however found a different but possibly related problem with = the >> new version of script in RELENG_8, for which I have raised this PR: >=20 >> misc/161526: script outputs corrupt if input is not from a terminal >=20 >> Blast, should of course been bin/ >=20 > The extra ^D\b\b are the EOF character being echoed. These EOF > characters are being generated by the new script(1) to pass through = the > EOF condition on stdin. >=20 > One fix would be to change the termios settings temporarily to disable > the echoing but this may cause problems if the application is changing > termios settings concurrently and generally feels bad. >=20 > It may be best to remove writing EOF characters, perhaps adding an > option to enable it again if there is a concrete use case for it. I finally figured out why my ports aren't updating anymore: when running = portupgrade -a --batch from cron, stdin is /dev/null, and that produces = the gobs of ^D in the output, as well as the script file that = portupgrade creates. What's worse is that the upgrade never completes. You can easily see this for yourself: # portupgrade -a --batch Fon +49 151 14070811