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 15:22:15 +0300 Message-ID: <83fs3675zc.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15881"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66151@debbugs.gnu.org To: Benjamin Schwehn , Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 22 14:23:17 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 1qjfBk-0003xF-GQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Sep 2023 14:23:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjfBN-0006Z5-Rd; Fri, 22 Sep 2023 08:22:53 -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 1qjfBM-0006Yi-FY for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 08:22: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 1qjfBM-0008NH-5O for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 08:22:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjfBW-00027G-9X for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 08:23: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 12:23: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.16953853578101 (code B ref 66151); Fri, 22 Sep 2023 12:23:02 +0000 Original-Received: (at 66151) by debbugs.gnu.org; 22 Sep 2023 12:22:37 +0000 Original-Received: from localhost ([127.0.0.1]:35505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjfB6-00026b-Jc for submit@debbugs.gnu.org; Fri, 22 Sep 2023 08:22:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjfB3-00026O-Ha for 66151@debbugs.gnu.org; Fri, 22 Sep 2023 08:22:35 -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 1qjfAm-0008DA-S0; Fri, 22 Sep 2023 08:22:17 -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=H76mDg1ynSQZMcQFnyHgSR2er36aSH0ElegWMNhMgTM=; b=CAqGKMyqqTWO kpI9NUZUMvteBQ13KByqURUWMiq4v8gsdnxwBf88hZEo7nP7d85WyNE0/Prv5TxDZMy7x8iUuK8BH OFfIg71nHM1TtWHXJe/KlKQPLJn0N8CPdXrK5f3/uwa7sbKsA2TrsKX2AgzHnHXOH/NmjAzm/1PtY 0CNxhlRFKlfJ9vo3uX2sGBns6HlKoOtvysydop4VO0wniLy0Mq2UR83tsSQx6EVYUrZ0X2vfFaRHk NDwjIm9loON3h3hGWmE1XOlv6ftosLpXRaa0lL392nee9MeWqETgLZPW09dJ2WbLGrs4LH04C2aEU k6EnufBke9r7Ck4Kqolcjw==; In-Reply-To: (message from Benjamin Schwehn on Fri, 22 Sep 2023 12:22:08 +0200) 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:271081 Archived-At: > From: Benjamin Schwehn > Date: Fri, 22 Sep 2023 12:22:08 +0200 > > Hi, > I have emacs daemon reproducibly crashing in this scenario: > > - emacs running as daemon via systemd user service > - running "emacsclient -nc" via ssh -X session > - stop X server on client machine or cut network connection between > client and server > - run emacsclient -nc again > > Result: > emacs window opens for about a second, then the daemon crashes. The > daemon then automatically restarts via the systemd service and once it > is up again, emacsclient works fine again. Does this happen with any emacsclient command in this situation? What if you don't use -c, for example, or use -t instead? >From this backtrace: > 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? Perhaps the server should exit gracefully in this case? 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?