From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 11 07:30:28 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6667A16A4CE for ; Mon, 11 Oct 2004 07:30:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBA6543D31 for ; Mon, 11 Oct 2004 07:30:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i9B7URXE054302 for ; Mon, 11 Oct 2004 07:30:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9B7URCe054301; Mon, 11 Oct 2004 07:30:27 GMT (envelope-from gnats) Resent-Date: Mon, 11 Oct 2004 07:30:27 GMT Resent-Message-Id: <200410110730.i9B7URCe054301@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michiel Boland Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2330116A4CE for ; Mon, 11 Oct 2004 07:21:45 +0000 (GMT) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17EC043D3F for ; Mon, 11 Oct 2004 07:21:44 +0000 (GMT) (envelope-from michiel@boland.org) Received: from xs6.xs4all.nl (xs6.xs4all.nl [194.109.21.6]) by smtp-vbr9.xs4all.nl (8.12.11/8.12.11) with ESMTP id i9B7LgYC011115 for ; Mon, 11 Oct 2004 09:21:43 +0200 (CEST) (envelope-from michiel@boland.org) Received: from xs6.xs4all.nl (boland37@localhost.xs4all.nl [127.0.0.1]) by xs6.xs4all.nl (8.12.10/8.12.10) with ESMTP id i9B7LgXC079119 for ; Mon, 11 Oct 2004 09:21:42 +0200 (CEST) (envelope-from michiel@boland.org) Received: (from boland37@localhost) by xs6.xs4all.nl (8.12.10/8.12.9/Submit) id i9B7LgWj079118 for FreeBSD-gnats-submit@freebsd.org; Mon, 11 Oct 2004 09:21:42 +0200 (CEST) (envelope-from michiel@boland.org) Message-Id: <200410110721.i9B7LgWj079118@xs6.xs4all.nl> Date: Mon, 11 Oct 2004 09:21:42 +0200 (CEST) From: Michiel Boland To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/72501: script(1) loops after EOF is read X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 07:30:28 -0000 >Number: 72501 >Category: bin >Synopsis: script(1) loops after EOF is read >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 11 07:30:27 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Michiel Boland >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD leefnet.office.internl.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Sat Oct 9 15:53:21 CEST 2004 root@leefnet.office.internl.net:/usr/obj/usr/src/sys/LEEFNET i386 >Description: The script(1) program loops and consumes all CPU after it reads EOF from standard input. >How-To-Repeat: Start an xterm. In the xterm, become another user (actually, 'su - $USER' is sufficient) Type 'script'. Delete the xterm window. >Fix: Quick fix: back out rev 1.24 of src/usr.bin/script/script.c. Better: find out why writing zero-length bytes to a pty controller does not generate EOF on the pty slave. (This is what the commit message for 1.24 of script.c claims will happen.) >Release-Note: >Audit-Trail: >Unformatted: