From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: long-standing GTK bug Date: Mon, 10 May 2021 10:40:20 -0400 Message-ID: References: <83zhbcg6s4.fsf@gnu.org> <87r1wng2ki.fsf@linaro.org> <83o8rrenn1.fsf@gnu.org> <87blnr6uck.fsf@tullinup.koldfront.dk> <87wo5kumkn.fsf_-_@tullinup.koldfront.dk> <86ftc5hc8j.fsf@gmail.com> <87d079io10.fsf@tullinup.koldfront.dk> <87ftbyokll.fsf@tullinup.koldfront.dk> <83a71c71id.fsf@gnu.org> <83sgf356sy.fsf@gnu.org> <87o8dl8mv1.fsf@tullinup.koldfront.dk> <87fsyw42yg.fsf@gmail.com> <87r1igx7pd.fsf@tullinup.koldfront.dk> <87bl9j3q53.fsf@gmail.com> <878s4mq566.fsf@tullinup.koldfront.dk> <877dk64usa.fsf@gmail.com> <87zgx2ohtq.fsf@tullinup.koldfront.dk> <87k0o6k76w.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18705"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: =?windows-1252?Q?=D3scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 10 16:41:07 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lg75m-0004eg-9N for ged-emacs-devel@m.gmane-mx.org; Mon, 10 May 2021 16:41:06 +0200 Original-Received: from localhost ([::1]:53326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lg75l-00076t-3o for ged-emacs-devel@m.gmane-mx.org; Mon, 10 May 2021 10:41:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lg758-0006Lp-Ex for emacs-devel@gnu.org; Mon, 10 May 2021 10:40:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:13563) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lg756-0001Ia-BX for emacs-devel@gnu.org; Mon, 10 May 2021 10:40:25 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C66EA8089C; Mon, 10 May 2021 10:40:22 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 7E00C8009E; Mon, 10 May 2021 10:40:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1620657621; bh=z0qYhXDSFlwVjHtS2+NQjP8+HZpUdUfmfMbZmC9gscw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=fHxMRSmMkWKd9kKa9KURSW2fsvB59UebuK4wxLzEc7WAZ+bnlRhGBnXbBS+FBoAtJ +PZo0lav+73aDz1TUHLjR2oWYic8d8lYADdyv8M7vPsbBc690yGUMdU4OrGpdZ6tHc +p8qLbVI04pePSK0LpWmfuQucHfnWECerxzPwKQJjizZ49NzI0lzdYFEFcvMhZ4KgK AyaBA7vH5K5FPtQuBOeBu7lXbEwdCwVde1ffeMZ7Fih80hB2onHwg+oIswx9fzr1eC jiC7JJRa2WH52s9XmnCQhLkv9qXb/c/o7+bG0+hbWIsPuHC06CVamvil+wfa1wZO1V 8u1cVPypE0iPw== Original-Received: from alfajor (76-10-140-76.dsl.teksavvy.com [76.10.140.76]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3A418120330; Mon, 10 May 2021 10:40:21 -0400 (EDT) In-Reply-To: <87k0o6k76w.fsf@telefonica.net> (=?windows-1252?Q?=22=D3scar?= Fuentes"'s message of "Mon, 10 May 2021 16:13:43 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269119 Archived-At: =C3=93scar Fuentes [2021-05-10 16:13:43] wrote: > Adam Sj=C3=B8gren writes: >> Robert writes: >> >>> I think we=CA=BCre testing different things. I=CA=BCm doing: >>> >>> 1. On A: start emacs, run a server >>> 2. On B: ssh -X A, emacsclient -c >>> 3. On B: kill the ssh process >>> 4. Emacs crashes >> >> Yes, indeed we are. I am diverging: >> >> 3. On B: close the emacsclient frame >> 4. On B: exit ssh >> 5. Emacs survives. >> >> Without the patch, after (my) step 4 the prompt isn't returned until you >> press ^C in the shell, and when you do press ^C, Emacs crashes. > > IIUC your patch solves the problem when the network connection is > reliable, but Emacs still crashes if there is an abrupt disconnection. IIUC the difference (with the patch) is between stopping ssh via `C-c` or via `kill`. I wonder why this matters, and I think it's not at all obvious if an "abrupt" network disconnection would be more like `C-c` or more like `kill`. Stefan