From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steven Allen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74902: 31.0.50; Segfault when deleting frames Date: Mon, 16 Dec 2024 08:12:46 -0800 Message-ID: <87v7vjk3nl.fsf@stebalien.com> References: <87frmoy5aq.fsf@stebalien.com> <861py7r5jq.fsf@gnu.org> Reply-To: Steven Allen Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4374"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74902@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 17:13:27 2024 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 1tNDin-0000vl-Cd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 17:13:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNDiV-0006s6-Ug; Mon, 16 Dec 2024 11:13:08 -0500 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 1tNDiR-0006m2-7U for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 11:13:04 -0500 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 1tNDiQ-00071A-Q4 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 11:13:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=0FlzJ7cHVqaMNZpQ6MbDSB6RaODZ94RixwJw51rvP5g=; b=HNUGygyy6Dshmi4ByF0RlLy1vGP3Oy8kCTYTBoklcwCRnIJ/pNy8t098DX4sZ7DuXtbleQu+UN/ZHB6nx18SJLI/h885HhFrJHM+iFKJVhalgn2HCYMTwyCTcuQWpy59rXEQRu8Z3qX13lIgEFxqGAJ9LA8ajONi1bkt6YAeky5CPj5BuzYajrwBoIEz3oHM0RmLa4dgZxVB2zgvIxrikWts+BOZ9ZZSkv7LQCIMDu1x8WcNDRxncQKlviWxDhRgWWiBWZOBiWXpkWuZm1Yw5BXzg0zq/KCALZNGW/BngcnmgrnMyHyps076wqkamJU4rUq7iSbDPSB81Hoapuozkg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNDiQ-00023o-1C for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 11:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Steven Allen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 16:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74902 X-GNU-PR-Package: emacs Original-Received: via spool by 74902-submit@debbugs.gnu.org id=B74902.17343655777899 (code B ref 74902); Mon, 16 Dec 2024 16:13:01 +0000 Original-Received: (at 74902) by debbugs.gnu.org; 16 Dec 2024 16:12:57 +0000 Original-Received: from localhost ([127.0.0.1]:55693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNDiL-00023K-0Z for submit@debbugs.gnu.org; Mon, 16 Dec 2024 11:12:57 -0500 Original-Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]:50803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNDiI-00022u-8w for 74902@debbugs.gnu.org; Mon, 16 Dec 2024 11:12:55 -0500 Original-Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfout.stl.internal (Postfix) with ESMTP id 94F5F1140193; Mon, 16 Dec 2024 11:12:48 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Mon, 16 Dec 2024 11:12:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1734365568; x= 1734451968; bh=0FlzJ7cHVqaMNZpQ6MbDSB6RaODZ94RixwJw51rvP5g=; b=l etArXB4Qpd2IdUv4ddXh71aq6c6GCooyg/9hwmJqUW90pW43R/jyRtb4svjFkEwO /+rU2xgr9NdJwGUi2vG44ySqVPv/O2w3jNSSC/Z2lhlPpICCb7W6NoPy0uG0yYLf TSvAPrmKanLDgVdG3RNmtP/QrTg2fozspkXagzZfUUszw0eNin+bNVISD7Ch21Ep jNBlyira7EBi4QrYGEF9XB4VU9V3FuBrxc5b/XQmidiU3WjW599UrxvthwTJxujk +3FetzAhUpxeBWHTSm/IjUVTIhp7knl+/CIBlBpMNqf8b6bZX8iGHH+nqx4RFNur LJPM5+kMvmOTHt9y5G7CQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1734365568; x=1734451968; bh=0FlzJ7cHVqaMNZpQ6MbDSB6RaODZ94RixwJ w51rvP5g=; b=Oq0uftZIL11WQg6KN5KwKrbkxmI5/s7dkOmcjhdk167Eygn8Raj Fx4duf/EPqAkWPX4o70hoVsvvvPYlZs1svZtp+XhMLAWtktgIs3b3QHliL4Kmete buMJ7y0cGRn3hcizAFj5AEZJKGUdcP2o6RIPphBrZx1ahVxwu8mcegC1/gqeOJyp e25WPGJTXXHvfubW7+lq0f1+izHSMQMCXudcDMzw+0sAneZpTUBkzgmP0pXRXVL7 dkHhX8w8UyesegNdiahtjaqvWiSYM6QQwgMKGOaDoS13CR012xQXrAn+BfICmNEF yzdgyVtrIQLgAOjg07OgiPzh+toBcS3l8HQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrleefgdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfh rhhomhepufhtvghvvghnucetlhhlvghnuceoshhtvghvvghnsehsthgvsggrlhhivghnrd gtohhmqeenucggtffrrghtthgvrhhnpedvkeehkeegleehheeggfduleektefhhffgueff teekgedtvdefuddutddtjeejvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehsthgvvhgvnhesshhtvggsrghlihgvnhdrtghomhdpnhgspghr tghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghlihiisehgnh hurdhorhhgpdhrtghpthhtohepjeegledtvdesuggvsggsuhhgshdrghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: ie8a146a7:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Dec 2024 11:12:47 -0500 (EST) In-Reply-To: <861py7r5jq.fsf@gnu.org> 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:297183 Archived-At: Eli Zaretskii writes: >> Date: Sun, 15 Dec 2024 14:01:17 -0800 >> From: Steven Allen via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> >> I use EXWM and, Emacs very occasionally seems to crash when closing >> floating windows. Specifically, it crashes when deleting the frame >> wrapping the floating window. Unfortunately, I don't have a great way to >> reproduce it with a minimal setup or to reproduce it reliably enough to >> grab a trace with GDB. >> >> As far as I can tell, this is because `delete-frame' calls `delq' (from >> C) which then handles a signal (not sure what signal) via the >> `FOR_EACH_TAIL' macro while deleting the frame. Unfortunately, that >> eventually calls `gobble_input' which operates on frames. >> >> >> Backtrace: >> >> /usr/bin/emacs(emacs_backtrace+0x4e) [0x61e77935447e] >> /usr/bin/emacs(terminate_due_to_signal+0xaf) [0x61e7791a4c5d] >> /usr/bin/emacs(+0x5e062) [0x61e7791a6062] >> /usr/lib/libc.so.6(+0x42150) [0x7e3a544dc150] >> /usr/bin/emacs(+0xeff78) [0x61e779237f78] >> /usr/bin/emacs(+0x19a564) [0x61e7792e2564] >> /usr/bin/emacs(+0x19a829) [0x61e7792e2829] >> /usr/bin/emacs(+0x1a1c58) [0x61e7792e9c58] >> /usr/bin/emacs(+0x1b0bb8) [0x61e7792f8bb8] >> /usr/bin/emacs(gobble_input+0x272) [0x61e77933f3a2] >> /usr/bin/emacs(probably_quit+0xc6) [0x61e7793ec666] >> /usr/bin/emacs(Fdelq+0xb6) [0x61e77940c196] >> /usr/bin/emacs(delete_frame+0x2d4) [0x61e7791d77b4] >> /usr/bin/emacs(Fdelete_frame+0x17) [0x61e7791d8a07] > > This is less useful than a backtrace could be. Can you run Emacs > under GDB, and when it crashes, type > > (gdb) thread apply all bt > > and post here everything GDB produces as result? Yeah, I agree. I'll do that if I can find a reliable way to reproduce it. At the moment it happens once every few months.