From owner-freebsd-stable@FreeBSD.ORG Thu Jul 5 23:29:59 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6725D1065670 for ; Thu, 5 Jul 2012 23:29:59 +0000 (UTC) (envelope-from pfg@freebsd.org) Received: from nm12-vm0.bullet.mail.sp2.yahoo.com (nm12-vm0.bullet.mail.sp2.yahoo.com [98.139.91.242]) by mx1.freebsd.org (Postfix) with SMTP id 39F368FC0C for ; Thu, 5 Jul 2012 23:29:59 +0000 (UTC) Received: from [98.139.91.68] by nm12.bullet.mail.sp2.yahoo.com with NNFMP; 05 Jul 2012 23:29:53 -0000 Received: from [98.139.91.10] by tm8.bullet.mail.sp2.yahoo.com with NNFMP; 05 Jul 2012 23:29:53 -0000 Received: from [127.0.0.1] by omp1010.mail.sp2.yahoo.com with NNFMP; 05 Jul 2012 23:29:53 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 250768.4733.bm@omp1010.mail.sp2.yahoo.com Received: (qmail 58515 invoked by uid 60001); 5 Jul 2012 23:29:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1341530992; bh=3kwqVj7iZr/cZdanb5Oyq2sWt5UcONNoHugQbSbWoD0=; h=X-YMail-OSG:Received:X-RocketYMMF:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=IHzvntmz+/rSNA/W1lNycQuQcGtJSLsJpWwMXSyWsH9Y4bZk9EsD9rBH/mqR04782fq47zDJpiAVYprwazVbkCTF7Qeo2h3Oi8j0YaUAJ67axJ/vctkByOx0trtmxDbemg0tHYksABbQCqRtTE4FHNRK/5a+23HyQYVZSGv7AO0= X-YMail-OSG: lt7IbV0VM1mNYMhSXMZ3hrJC5VELi.gRRw51AnDh5xIDRRi uEPsx0gflpPaTNB4rusxhpG8AeoD7uRytkEJkywizx0hs8CEd53s3jveegFO z9.yF84T5C57_NPMDnUD890zBvRCeJ5FyeZhnvlzI3LhACZN8CZokeHWJGew AnPYsRMRbS77cgeINyoqk27wSa4YZ3PElE1uCCsKvpJdoCZ7sjmG1i5TwI62 _.OO1p_9_fhpF5q_SFpPLFdyaUl5b63UXK247.Ptk5g5rq4kIaXXe3fNIkxG _Ssbmye2KV4jghuc7wv7TiDCbHHwr8hBsGcfEDwuifP.QdAhqSK4LMQS1Vc2 7lHBBnyfzoyjUiulcFG_ChitejtmMO.50R1JSPVsOutbvUMbrVqjQhcKvrRp TZa9f2JzaaKF53jSUDu5cmeXEHcpJRtTBIUiOtMdFfAHDi3zsjCDXz__4WHS N8yyLur1R5SI3hMb5daTgkSS6peINxExtqysXWw93QtX4HZbTZaXcxMhLLZC d6bIj6UOKWXkAZ7CMnA5SALzN_jqRBkyTileFbUHSouej2jVu Received: from [200.118.157.7] by web113511.mail.gq1.yahoo.com via HTTP; Thu, 05 Jul 2012 16:29:52 PDT X-RocketYMMF: giffunip X-Mailer: YahooMailClassic/15.0.8 YahooMailWebService/0.8.120.356233 Message-ID: <1341530992.43915.YahooMailClassic@web113511.mail.gq1.yahoo.com> Date: Thu, 5 Jul 2012 16:29:52 -0700 (PDT) From: Pedro Giffuni To: Brandon Gooch , Peter Jeremy In-Reply-To: <20120705223952.GD85696@server.rulingia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: David Shao , freebsd-stable@freebsd.org, Jilles Tjoelker Subject: Re: sh(1) exiting on SIGWINCH X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pfg@freebsd.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2012 23:29:59 -0000 Hello guys;=0A=0A--- Gio 5/7/12, Peter Jeremy ha scrit= to:=0A=0A> Brandon Gooch wrote:=0A> >Seems th= at the window resize is somehow causing sh(1) to receive an=0A> >EOF while = the shell is sitting at the prompt, which results in the=0A> >shell exiting= ; haven't dug too deeply into the source yet, but can you=0A> >try to run /= bin/sh with the '-I' (that's capital letter 'i') and it=0A> >the shell shou= ldn't exit (but it will bark at you with a 'Use "exit"=0A> >to leave shell.= ' message on each resize.=0A> =0A> Interesting.=A0 I hadn't tried '-I' but = now also see=0A> that.=0A> =0A> >I'm CC'ing jilles@ for any potential insig= ht into the behavior of=0A> >sh(1) (and perhaps this updated libedit snapsh= ot).=0A> =0A> I would also welcome any insights jilles@ can offer.=0A> =0A>= pfg@ (who shepherded the libedit update into the tree), David Shao=0A> (or= iginator of kern/169603) and I have been investigating=0A> fixes to libedit= but do not have a solution yet.=A0 There is a=0A> possibility that sh(1) i= s relying on bugs in the old libedit.=0A> =0A> At this stage, it seems like= ly that the libedit update=0A> (r237738) will be reverted for 9.1-RELEASE.= =0A> =0A=0AI am trying hard to identify the specific changes from=0ANetBSD = that caused the issue. The problem is known to=0Ahappen in the latest versi= on of the upstream sources=0Atoo but I don't want to revert all the patch i= f I can=0Aavoid it because it is becoming increasingly difficult=0Aupdate l= ibedit and we need some of the new features.=0A=0AIt seems like David Shao'= s issue is different but so=0Afar I am aware that the issue was introduced = in the=0Achanges associated with read.c=0A=0Ahttp://cvsweb.netbsd.org/bsdwe= b.cgi/src/lib/libedit/read.c=0A=0ANetBSD fixed the SIGWINCH issue in revisi= ons 1.55, 1.56=0Aand 1.57 of that file but it was caused by revision 1.43= =0A=0Athe EOF issue seems to be caused by Revision 1.49 =0A=0AI still have = to play more with this.=0A=0APedro.