From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: andres.ramirez Newsgroups: gmane.emacs.devel Subject: long-standing GTK bug (was: Log out hanging after X-forwarded emacsclient) Date: Tue, 12 May 2020 06:57:16 +0000 Message-ID: <86ftc5hc8j.fsf@gmail.com> References: <83zhbcg6s4.fsf@gnu.org> <87r1wng2ki.fsf@linaro.org> <83o8rrenn1.fsf@gnu.org> <87blnr6uck.fsf@tullinup.koldfront.dk> <87wo5kumkn.fsf_-_@tullinup.koldfront.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="72613"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Adam =?utf-8?B?U2rDg8K4Z3Jlbg==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 12 08:58:25 2020 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 1jYOrw-000Ikk-Eo for ged-emacs-devel@m.gmane-mx.org; Tue, 12 May 2020 08:58:24 +0200 Original-Received: from localhost ([::1]:46154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYOrv-0002zJ-GB for ged-emacs-devel@m.gmane-mx.org; Tue, 12 May 2020 02:58:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYOqv-0001RM-Mh for emacs-devel@gnu.org; Tue, 12 May 2020 02:57:22 -0400 Original-Received: from mail-vs1-f50.google.com ([209.85.217.50]:45477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYOqv-0004pe-18 for emacs-devel@gnu.org; Tue, 12 May 2020 02:57:21 -0400 Original-Received: by mail-vs1-f50.google.com with SMTP id e10so7184269vsp.12 for ; Mon, 11 May 2020 23:57:20 -0700 (PDT) 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:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=zB08ZEF0ibsM8dAVQfpcErZ5hkRPEnQne8XNN9zaE0Y=; b=jx8jDjZDrY8td9hq/7cunW7vFnVIk5oLGl8nRa180vX8Ae5pz/Lfgn/JeAIJynBAus KYiwJMKk0CdpP77iRpV52i3gaC4lXESRTl6LsM6s1F2Ib3aXQu7x8eknzdzSdPCIc9j8 6if67nhBJAaFzerU4zKl9teYhpIbzqF8pFLRKqwD+bFr5Ku/Qjw2dvlWQ72YPXrn1oK1 QfacwgrekSOPnTb0MZv5039J0qJBU4UGBnomUJYvZXFk+3LBr81kB/8RA+9yE96iku3X Dc0nldbIhLPniAjFn7v8jkG18bHQyjXgOqaKlSqxldh31w7iAVX+i1SmsZNt/5W0m5ml LHKA== X-Gm-Message-State: AGi0Pub2mYM3B6WyxEo3T1NajcMWrA+tXntKxZI5sjWZoR3MmKHi3orz PcpOqI1HnxcLN+NDj0Axt7FIrwjf X-Google-Smtp-Source: APiQypKzK5DAb5FGuyT1+bYGdRtltbgOO0YOKHItyilRoFiHWAwnsUJ3LKEMaCvuRLfGIMunVGgkwQ== X-Received: by 2002:a05:6102:153:: with SMTP id a19mr15229647vsr.101.1589266639671; Mon, 11 May 2020 23:57:19 -0700 (PDT) Original-Received: from sacsa.n800.arm.processor.yandex.fm ([190.236.255.201]) by smtp.gmail.com with ESMTPSA id w64sm9225101vke.46.2020.05.11.23.57.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 23:57:19 -0700 (PDT) In-Reply-To: <87wo5kumkn.fsf_-_@tullinup.koldfront.dk> Received-SPF: pass client-ip=209.85.217.50; envelope-from=rrandresf@gmail.com; helo=mail-vs1-f50.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 02:57:20 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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:249944 Archived-At: Hi Adam. >>>>> "Adam" =3D=3D Adam Sj=C3=83=C2=B8gren via \"Emacs development discuss= ions writes: [...] Adam> The reason is found in src/frame.c: Which hints leads You from xterm.c to frame.c? [...] Adam> However, I can't reproduce the problem when I build Emacs Adam> with Lucid. Closing all frames on a remote display doesn't Adam> result in a crash with Lucid - and the prompt/ssh isn't Adam> hanging with L2152-2153 removed. Next time I compile emacs. I am going to remove above lines for giving it more testing. I use lucid toolkit. Adam> So a step towards fixing the GTK problem is to figure out Adam> whether the "workaround" in src/frame.c is still needed for Adam> Lucid and Motif. I think the above could just improve user experience when using lucid toolking combined with X-forwarding. Adam> Ah, I've now read through the bugs referenced in the Adam> comment, and it sounds like the problem that was handled by Adam> adding this doesn't happen every time. When Adam> x_delete_terminal() gets called much less, the described Adam> crashes are less likely to happen. I have skimmed also the bugs referenced there. A lot of info and situations. All of that cases would need retest. [...] Adam> Hm, ok. I just thought I would follow up on my question. Nice job. This bug affects a lot of emacs users. on 2016 I digged a little bit on this bug aka "long-standing GTK bug". I still have my notes from 2016. I even sketched a plan (I have never fullfilled): Those were my conclusions from 2016: --8<---------------cut here---------------start------------->8--- compile same source code for lucid, gtk, and nextstep remove the abort calls {after checking all bug reports} repeat that old gtk bug on gtk and nexstep {question is nextstep is immune = as lucid} research how was included the lucid port {get the git hash; why gtk is diff= erent from lucid} the mac port could be useful? {macport suffers the same issue as gtk when u= sed with x-forwarding} --8<---------------cut here---------------end--------------->8--- Now on 2020. I would add to that list retest all cases found on frame.c according to your email. Best Regards