From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 1 03:10:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BAD7BC7B for ; Mon, 1 Jul 2013 03:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 88EB41929 for ; Mon, 1 Jul 2013 03:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r613A0MT071928 for ; Mon, 1 Jul 2013 03:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r613A0VG071927; Mon, 1 Jul 2013 03:10:00 GMT (envelope-from gnats) Resent-Date: Mon, 1 Jul 2013 03:10:00 GMT Resent-Message-Id: <201307010310.r613A0VG071927@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, Grant Watson Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C7D88C25 for ; Mon, 1 Jul 2013 03:07:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id BAE9018FF for ; Mon, 1 Jul 2013 03:07:52 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6137qNw054947 for ; Mon, 1 Jul 2013 03:07:52 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6137quZ054938; Mon, 1 Jul 2013 03:07:52 GMT (envelope-from nobody) Message-Id: <201307010307.r6137quZ054938@oldred.freebsd.org> Date: Mon, 1 Jul 2013 03:07:52 GMT From: Grant Watson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/180146: /bin/sh: Early SIGWINCH can end process X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jul 2013 03:10:00 -0000 >Number: 180146 >Category: bin >Synopsis: /bin/sh: Early SIGWINCH can end process >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 01 03:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Grant Watson >Release: 9.1-RELEASE >Organization: >Environment: FreeBSD awesome-bsd 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: There appears to be a race condition in /bin/sh where receiving SIGWINCH too early will cause the process to end. Bugs ports/178194 and ports/178651, which I filed, are occurrences of this bug. >How-To-Repeat: Way to Reproduce #1: Install termit and paste the following into ~/.config/termit/rc.lua: defaults = { showScrollbar = false, hideMenubar = true } setOptions(defaults) Then run "termit -e /bin/sh". Running "termit -e 'truss -o shlog.txt /bin/sh'" does not surpress the bug for me. Way to Reproduce #2: Install the awesome window manager, create a user whose shell is /bin/sh, and ensure that this user does not have a ~/.config/awesome/rc.lua file that would override the default configuration. Log in as this user. Left click the box in the upper-right corner of the screen to switch to a tiling layout. Press super+return (that is, windows+return) four or five times; each time an xterm should open. Many will close, but one or two may remain open. Running "truss xterm -e /bin/sh" does not surpress the bug for me, but running truss between xterm and sh does. >Fix: >Release-Note: >Audit-Trail: >Unformatted: