Date: Thu, 5 Jul 2012 08:21:01 +1000 From: Peter Jeremy <peter@rulingia.com> To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org, David Shao <davshao@gmail.com> Subject: Re: kern/169603: Possible r237738 libedit regression resizing windows in terminal programs Message-ID: <20120704222101.GB27624@server.rulingia.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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=0x417d10 mask=0x0 code=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.
--
Peter Jeremy
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iEYEARECAAYFAk/0wc0ACgkQ/opHv/APuIfuPQCgkyndvzwlYXBsVF3N55+r1V/P
6pUAn326qQ1i9kI9HkbTHX1Z6mEL/XWv
=62+O
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120704222101.GB27624>
