From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66151: 29.1.50; daemon crashing after X forwarding disconnects Date: Fri, 22 Sep 2023 21:12:49 +0800 Message-ID: <87ediqpd0u.fsf@yahoo.com> References: <83fs3675zc.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38741"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66151@debbugs.gnu.org, Benjamin Schwehn To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 22 15:14:13 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 1qjfz2-0009wB-Uq for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Sep 2023 15:14:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjfyk-0004t4-Cb; Fri, 22 Sep 2023 09:13: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 1qjfyi-0004oq-Bj for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 09:13:52 -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 1qjfyh-00042z-Uo for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 09:13:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjfyr-0006BH-Vl for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 09:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Sep 2023 13:14:01 +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.169538840323709 (code B ref 66151); Fri, 22 Sep 2023 13:14:01 +0000 Original-Received: (at 66151) by debbugs.gnu.org; 22 Sep 2023 13:13:23 +0000 Original-Received: from localhost ([127.0.0.1]:35642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjfyF-0006AL-Bd for submit@debbugs.gnu.org; Fri, 22 Sep 2023 09:13:23 -0400 Original-Received: from sonic308-56.consmr.mail.ne1.yahoo.com ([66.163.187.31]:40905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjfyB-0006A5-T8 for 66151@debbugs.gnu.org; Fri, 22 Sep 2023 09:13:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695388383; bh=/Z3+/J/ypvPVKt8dlabn86UAmenjfQoDB27n/tvxaCE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=XRdNzAwQPyGbMAgJE8cCaX9/MvN12Uu2n0BTkUNk7nj77bn2UIXWcUxZdtDDAn1oQp0D4YDC9ekp2lx0+unoAtnj8C0GX1+xSx0u6oHdrVEsyN0ksLIrEKQlqj2z+ocpEupSibirwWDFVppY8F+iLJ/yDCshhdmo4KBJg8swvU+jaqjcl8cbJ028G+0f2ZZ5gz/lDZXdD0GIjmmyDpg0bdIp7dAHBlBpsOsBxed/rXGg6mT4VAanTbDKB3lI63pH1FJ7nuBPCNofFmj7aVb3nS83l8TvXg+XFDdi1CgPDQO/0ckR5IxJVvCddykqo2sFOukWg86UV1EVc0qEoqjTMw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695388383; bh=1funfyCKX8EOLSqxunSS6htfCUfVvFYz6WpLzL+tXRk=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=H3q9syrB02++rb5jH9EO87bSaW9nx/N0Fmjy8utW5KFm9KB4KBInTKt2VFBBC8g1QjzLaw5JKsAsZuTNaRfMG8JGlbhQ3OMVYAtwnTmO8PLvFcuVwpf52MIMS3lANNPFGWpx3PjG2XH6wVcVjgo0vnPoKfl8l+q+CIG56GQ/CEtQbHqT7JdNaV/nuSWxomcB63gCM6uehThLRvv+DWw3PCbAfP9v0YbkMrfZSgnnTJ92HkTKvWujjCowmwj0gdXuG6b0BeoYvUezzde6/d/aF5oIRuAeiZ96RLH3kvSApz/sYExka/QzJvQk3Yb5GgldaS1kYPpJzmO7Z2IsNo4eEw== X-YMail-OSG: 8yhdqE8VM1m.WPLqBYb3u_fICZQJzaVlAAecFzN5rqBLfNMjjASdZ_Myu5LDXlE g.iPn5JRZKH0QlK3P.E3D0ZEdeisa3XHGdwFDWuqqbq_Pj3D.MlPAXvjjetWyfqehN3QK3zsDOqJ 4FlDwTTlVKeTJtEFVtVMOa7KPCUOki_caPTdDJSTZEFm3Xss88JalRvpU_x6RlIsJB85P5wTcMFG l03pefNfvBjuXRZBIEIW9GOdJV8C8EPrgdW37ynqVfVf_uxSLVrt7nw3Xu7mIF6iso1lp.zzTi2Q k4_rnNXWwF5P.UsAdthvN4hi70B9hF5h9Xju.xX6Xli4nJObCi0QOf0jcNem0AoKqYibVF254ja. zFGdFX8D0YfY4AnLjfRus3p3NWdIeDgni7CrDCbsNFmateGEy_JDod4wmtsaQLPBTRPJ1_tCc4nb wZ_5YcnjttkyOWVqwNudLnHUaEjMAFOt6zbigkm6amtBpGwfuiSp4LW88.R8b.OUlbSDHM3fhjY4 M9APTT7RhPN4sXhfE85MLFN5SqiS7NBs6LOFP6R27B_gH2xoR9P9VQkAhqBO8Xvzz3wC14_pzaCn JXNITRsc_e3C8iQ2fSLQ8evJ3.9UTHcAdwiBxuc.cKOZfjuGLcPRjEzkd6GooMuTD5aRZo8_yuvA mhpxWWIXpsPo9s0MJhwg.PBujP6xNJjuIe4017CTnNOAShY_a3Yiu1LH77OoHqfzPeCFOHfHe7Tm SLqWn3wntpZooHDJR_uySWw_i93hdo86HBbQq5xARlWcWNGSHAsfLPpIB3EDpFIGu59l5uHxAiFJ bnpRES9AhW4dh3D7_fYP.qQigXmlGO83doAam7gsDe X-Sonic-MF: X-Sonic-ID: e52e80fe-cf90-48fe-8a9e-b3da851c6294 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Fri, 22 Sep 2023 13:13:03 +0000 Original-Received: by hermes--production-sg3-55c667b499-jt2w5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ccae232e50f0864fe19053dd2b1a4d0f; Fri, 22 Sep 2023 13:12:56 +0000 (UTC) In-Reply-To: <83fs3675zc.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 22 Sep 2023 15:22:15 +0300") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:271092 Archived-At: 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. > 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.