From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66151: 29.1.50; daemon crashing after X forwarding disconnects Date: Fri, 22 Sep 2023 16:16:48 +0300 Message-ID: <83ttrm5ovz.fsf@gnu.org> References: <83fs3675zc.fsf@gnu.org> <87ediqpd0u.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12373"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66151@debbugs.gnu.org, bschwehn@gmail.com To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 22 15:17:09 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qjg1t-00035n-I7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Sep 2023 15:17:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjg1e-0006Ue-F0; Fri, 22 Sep 2023 09:16:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjg1d-0006Ps-6R for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 09:16:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjg1b-0004hY-St for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 09:16:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjg1m-0006G9-Bm for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 09:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Sep 2023 13:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66151 X-GNU-PR-Package: emacs Original-Received: via spool by 66151-submit@debbugs.gnu.org id=B66151.169538862124051 (code B ref 66151); Fri, 22 Sep 2023 13:17:02 +0000 Original-Received: (at 66151) by debbugs.gnu.org; 22 Sep 2023 13:17:01 +0000 Original-Received: from localhost ([127.0.0.1]:35647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjg1l-0006Fr-3P for submit@debbugs.gnu.org; Fri, 22 Sep 2023 09:17:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjg1g-0006Fb-KZ for 66151@debbugs.gnu.org; Fri, 22 Sep 2023 09:16:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjg1P-0004gR-Hy; Fri, 22 Sep 2023 09:16:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=t2tl/VIThpBckPXhuolpGS6w5RnspUhzwYSy2qoMgvA=; b=li0B7aSgCH6W gnDzLd8O5Wjn6E8KkY1g1ckpx6LeaZcUf4QQm5L0Qxwk9EHQBzFDEbswGA5Q2na/FcHh7KRx+oqd2 /sEF/Q0pHZwADxamhUPm2j6AiMjusDkdKgi7u4HmTpaqjq2OHsbnn0SAHHA+FeNsk10LvldUhMJ+2 Slcguvsy+W0t0NRVf4C0BCQwbJ9mQyrES/IRiy8KJeJSgdnTjX9t+EBv+E0dQf2dM9xyVvhOJzqmH R+NRZuhZD5a8HPsLmnYkd+KEpQXyTMHVYYdtbFSLUp6/rIb12hgjP2dXsAq8mW0N0XOyC+AoTGAtF UpJrdlFXSLSsIled8kFoqw==; In-Reply-To: <87ediqpd0u.fsf@yahoo.com> (message from Po Lu on Fri, 22 Sep 2023 21:12:49 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271093 Archived-At: > From: Po Lu > Cc: Benjamin Schwehn , 66151@debbugs.gnu.org > Date: Fri, 22 Sep 2023 21:12:49 +0800 > > Eli Zaretskii writes: > > >> deliver_thread_signal.constprop.0 at > >> /home/ben/install/emacs/emacs/src/sysdep.c:1765 > >> ?? ??:0 > >> make_lisp_ptr at /home/ben/install/emacs/emacs/src/lisp.h:1364 > >> (inlined by) realize_default_face at > >> /home/ben/install/emacs/emacs/src/xfaces.c:5802 > >> (inlined by) realize_basic_faces at > >> /home/ben/install/emacs/emacs/src/xfaces.c:5736 > > > > The segfault seems to be caused by the frame's output_data.x being > > NULL or invalid. Po Lu, is this caused by stopping the server or > > cutting the network connection between client and server? If so, is > > there any remedy? > > The cause is the network connection being cut. If a display disconnect > transpires while Emacs is operating on live frames connected to that > display, Emacs will crash, as the Xlib error handler deletes such frames > promptly. There are no simple solutions or means of circumventing this > problem. I think in this case there were no live frames connected to the display, only the initial (non-GUI) daemon frame. Benjamin, is that true? > > Btw, I don't quite understand this part: > > > >> recompute_basic_faces at /home/ben/install/emacs/emacs/src/xfaces.c:682 > >> (inlined by) recompute_basic_faces at > >> /home/ben/install/emacs/emacs/src/xfaces.c:677 > >> (inlined by) free_realized_fontsets at > >> /home/ben/install/emacs/emacs/src/fontset.c:1345 > >> Fset_fontset_font at /home/ben/install/emacs/emacs/src/fontset.c:1696 > > > > Why do we need to call set-fontset-font here? What kind of > > emacsclient command line causes this? > > I don't know, but the answer to that question might yield some > information that could concievably be used to avoid the set of > circumstances which precipitated this particular crash. Yes, which is why I asked Benjamin to try to provide that information ;-)