From owner-freebsd-bugs@FreeBSD.ORG Wed Jul 4 22:30:16 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 40A061065676 for ; Wed, 4 Jul 2012 22:30:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1371E8FC15 for ; Wed, 4 Jul 2012 22:30:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q64MUFDG024308 for ; Wed, 4 Jul 2012 22:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q64MUFN8024305; Wed, 4 Jul 2012 22:30:15 GMT (envelope-from gnats) Date: Wed, 4 Jul 2012 22:30:15 GMT Message-Id: <201207042230.q64MUFN8024305@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Peter Jeremy Cc: Subject: Re: kern/169603: Possible r237738 libedit regression resizing windows in terminal programs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter Jeremy List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2012 22:30:16 -0000 The following reply was made to PR kern/169603; it has been noted by GNATS. From: Peter Jeremy To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org, David Shao Cc: Subject: Re: kern/169603: Possible r237738 libedit regression resizing windows in terminal programs Date: Thu, 5 Jul 2012 08:21:01 +1000 --aVD9QWMuhilNxW9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I am seeing a similar problem with 9-stable/amd64 (r237995) - sh(1) now exits if I change the window size (ssh'ing to the target system within an xterm). ktrace output looks like: 1766 sh GIO fd 2 wrote 2 bytes "# " 1766 sh RET write 2 1766 sh CALL ioctl(0,TIOCGETA,0x801020364) 1766 sh RET ioctl 0 1766 sh CALL ioctl(0,TIOCSETAW,0x801020338) 1766 sh RET ioctl 0 1766 sh CALL read(0,0x7fffffffda8f,0x1) 1766 sh RET read -1 errno 4 Interrupted system call 1766 sh PSIG SIGWINCH caught handler=3D0x417d10 mask=3D0x0 code=3D= 0x10006 1766 sh CALL sigreturn(0x7fffffffd600) 1766 sh RET sigreturn JUSTRETURN 1766 sh CALL ioctl(0,TIOCSETAW,0x80102030c) 1766 sh RET ioctl 0 1766 sh CALL setpgid(0,0x6e6) 1766 sh RET setpgid -1 errno 1 Operation not permitted 1766 sh CALL ioctl(0xa,TIOCSPGRP,0x7fffffffda74) 1766 sh RET ioctl 0 1766 sh CALL close(0xa) 1766 sh RET close 0 1766 sh CALL exit(0) Reverting r237738 (the MFC of r237448), as suggested by pfg@, fixes the problem. Unfortunately this is quite a large commit and I haven't looked into the specific change that breaks SIGWINCH handling. --=20 Peter Jeremy --aVD9QWMuhilNxW9f Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/0wc0ACgkQ/opHv/APuIfuPQCgkyndvzwlYXBsVF3N55+r1V/P 6pUAn326qQ1i9kI9HkbTHX1Z6mEL/XWv =62+O -----END PGP SIGNATURE----- --aVD9QWMuhilNxW9f--