From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: long-standing GTK bug Date: Tue, 11 May 2021 11:09:22 +0200 Message-ID: <878s4lab7h.fsf@gmail.com> References: <83zhbcg6s4.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> <8735uu4phq.fsf@gmail.com> 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="11057"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?Q?=C3=93scar?= Fuentes , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 11 11:16:46 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 1lgOVS-0002lp-8P for ged-emacs-devel@m.gmane-mx.org; Tue, 11 May 2021 11:16:46 +0200 Original-Received: from localhost ([::1]:41632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgOVR-0001qa-5B for ged-emacs-devel@m.gmane-mx.org; Tue, 11 May 2021 05:16:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgOOO-0007FK-Rw for emacs-devel@gnu.org; Tue, 11 May 2021 05:09:30 -0400 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:33651) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgOOM-0006IU-ET for emacs-devel@gnu.org; Tue, 11 May 2021 05:09:28 -0400 Original-Received: by mail-wm1-x331.google.com with SMTP id o26-20020a1c4d1a0000b0290146e1feccdaso827287wmh.0 for ; Tue, 11 May 2021 02:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=WiLxdavI+qGvyqLRzYQZB2RshHKPnH9YnO3iHsHkwV0=; b=cRttNDfQYhTFAUaG1Qq8D94P791K/i5meBRkzuo3/2USgFUQ5ruxGAK+Hd9oJ4MqlP uyHmtN485GBmLRJXskDfvc5XMkl5EL5Fj3Kesybh12ErgPBcdrkqStcHQCuEI69uvaWf kENTJHsVYYqCQMmbCpLtdo2dMyrbn63lu61x8D8B1SFvbeqJkc0fSYfSReKlym8+uUJX UpKTY9yb+5qAJATMcH1JHrrDdz9WD2x3+YsS0LLklODW8attw/f+B9O4MuQXm2PKLNdI xK1aRXulwGmK8COzIDePAae1fHMT+e1E40wiC9HWp+Se7naOU6JTiYkfAMhWCDETys05 3ytA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=WiLxdavI+qGvyqLRzYQZB2RshHKPnH9YnO3iHsHkwV0=; b=lzYXJNaK3B6WOVY1Q6bly9TrrIdLsj9M0DEAY0ppkQaJV2eTNO6tNeovuFPYpCGfle Nn9fO7Syu9iVCsESGbZw1JEFe6TAvWmS4eGR+RKI1wvAay3TvlLil7Erfzt1iakHLIoB QvB7EkBopDuLmdDzTy8YeCq+66KJ+an5EEu1I2+tYW0+xGn55XFJNomPgvqKPPKBKfCU 3qH7BLX7kxH484UY1IXYY7AntEy82QDefPHqeQ7Pge2xtLFF6/IZEpFPngI8dXo/a5vU RNzkRrh2NFNunOM+CuWZDQOqlvelT93rbwUTzS7ACtASD2LQRXfzHUdrY0dpFLhSmVKK Ekpw== X-Gm-Message-State: AOAM530x0IjBl8HGfNYsIDJT81mPxQsOwOJX36y+lgYoE8GCIOHgRAqF ATjZ4HTQNM1a2rRu2WHjmaaB7jrsZnw= X-Google-Smtp-Source: ABdhPJw9G/t37fF/f+UAZ/NDoO5hu9Dfb2JMgtYwy3a0FhbMI8NQD4Wk62jDgXrkqzCzIjEuE0odDg== X-Received: by 2002:a05:600c:4ca9:: with SMTP id g41mr4121647wmp.70.1620724163876; Tue, 11 May 2021 02:09:23 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id y5sm22944935wmj.25.2021.05.11.02.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 02:09:23 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: (Stefan Monnier's message of "Mon, 10 May 2021 11:00:08 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=rpluim@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:269150 Archived-At: >>>>> On Mon, 10 May 2021 11:00:08 -0400, Stefan Monnier said: Stefan> Robert Pluim [2021-05-10 16:45:05] wrote: >>>>>>> On Mon, 10 May 2021 10:40:20 -0400, Stefan Monnier said: Stefan> IIUC the difference (with the patch) is between stopping ssh vi= a `C-c` or Stefan> via `kill`. I wonder why this matters, and I think it's not at= all Stefan> obvious if an "abrupt" network disconnection would be more like= `C-c` or Stefan> more like `kill`. >> In the 'C-c' case Emacs has had a chance to clean up its internal >> state (with the patch applied). Stefan> Why? What does ssh do that is gentler? I assume it=CA=BCs just shutting down the X forwarding connection gracefully. Since that doesn=CA=BCt result in Emacs losing its existing local display connection, there=CA=BCs no crash. >> With 'kill' we=CA=BCre pulling the rug out from under GTK (see the >> backtrace several messages up-thread). Stefan> I suspect it then also depends on the `kill` signal. Stefan> In my WM (ctwm), I can also distinguish between `f.delete` and Stefan> `f.destroy` where the first sends something like a WM_DELETE re= quest to Stefan> the application (which Emacs treats via `handle-delete-frame`, = IIRC) Stefan> whereas `f.destroy` asks the X server to cut the connection AFA= IK. Stefan> Would `f.destroy` be more like the `C-c` or the `kill` case of = ssh? I suspect like 'kill'. Robert --=20