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#74902: 31.0.50; Segfault when deleting frames Date: Mon, 16 Dec 2024 17:50:01 +0200 Message-ID: <861py7r5jq.fsf@gnu.org> References: <87frmoy5aq.fsf@stebalien.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="406"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74902@debbugs.gnu.org To: Steven Allen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 16:53:25 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 1tNDPQ-000AZz-Rl for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 16:53:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNDP7-0006Qj-F7; Mon, 16 Dec 2024 10:53:05 -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 1tNDP5-0006Q5-Nx for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 10:53:03 -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 1tNDP5-0004XM-G6 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 10:53:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=+5Bag5guJ7VdyCbJGKzfRzSyCzpGp9ZM1uIN155dASE=; b=fE9/mZUvCTofiYdVYwUXe0r4UAeAya41xyWJnQRmko9Lx/JIaFfWNLFdcOrEYI/eNyTQSEGAhDJLiE0E2RUH9L2oQ9B485xvKtCh+1zFK//R2VBFu73o3z3kLkm/7Lwb/M0DBnOCCvP2ofjA2v8iS5ChYx8AASnUGiSR87qjjk1W/pXOlHa/V0Ni/fSBGphWuYoOL2kigMTBeoLy9DOqymAIQF413JeeXadqU+es8p65eK4KFCC6BFOKZtrbPLLdplBJu8lSRIS4KqtQAM3W3HDm4Lo6tqQEJJNfRig7r3LmGdQ2jYkZmvSKd7N0YVGfIc/c1rWKRIhi1deYalOw7A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNDP4-0000pz-Ao for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 10:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 15:53:02 +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.17343643463143 (code B ref 74902); Mon, 16 Dec 2024 15:53:02 +0000 Original-Received: (at 74902) by debbugs.gnu.org; 16 Dec 2024 15:52:26 +0000 Original-Received: from localhost ([127.0.0.1]:55635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNDOT-0000ob-28 for submit@debbugs.gnu.org; Mon, 16 Dec 2024 10:52:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNDOP-0000oI-CA for 74902@debbugs.gnu.org; Mon, 16 Dec 2024 10:52:22 -0500 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 1tNDMD-0003u5-2M; Mon, 16 Dec 2024 10:50:05 -0500 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=+5Bag5guJ7VdyCbJGKzfRzSyCzpGp9ZM1uIN155dASE=; b=hlyTnRx0DbO1 oFPpHNXtiyoue71/scydyysaCXJd+CZo4Hm7dqYPnTGvmimw+qwFgNZBP7KdFxInFfP0F4xEb6ukH xskhM5YlxwuadqxJyDcmuPHtQ+AnFXuzYuJOXxRwz8QPGvUBktz3+TxAKZagQ03Uw3gnITyfvOYYt EF4KmK7Q5gbDyDxu3nm8jaA24JJ4LE4y+sCf/4Qk0R7y9ws0HVZ0aTD+KibkyuMT+yTZBzNGwf5aP y79m8xhLvBBpDtWg4+vMAmieKxr3RlC85zZKDIMSf7QuyXVF/WzBsu5ZlmkTAKTkXI9B9cZzfoXS9 C5jtynhFnPtzPfrAG23xvg==; In-Reply-To: <87frmoy5aq.fsf@stebalien.com> (bug-gnu-emacs@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:297175 Archived-At: > 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?