From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#74902: 31.0.50; Segfault when deleting frames Date: Tue, 07 Jan 2025 10:43:32 +0100 Message-ID: <874j2bj6wr.fsf@gmail.com> References: <87frmoy5aq.fsf@stebalien.com> <861py7r5jq.fsf@gnu.org> <87v7vjk3nl.fsf@stebalien.com> <87frmn5yu5.fsf@gmail.com> <865xn4t4z6.fsf@gnu.org> <87v7v3bden.fsf@stebalien.com> <86ldvzq8xa.fsf@gnu.org> <877c7fg6gn.fsf@stebalien.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2598"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 74902@debbugs.gnu.org To: Steven Allen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 07 10:44:19 2025 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 1tV68I-0000Xc-SN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jan 2025 10:44:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tV683-0000BR-U4; Tue, 07 Jan 2025 04:44:03 -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 1tV682-0000BG-Mo for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 04:44:02 -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 1tV682-0007L9-7v for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 04:44: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=GKeJaSR0RYfMF5TgLp1Xo2kvyD72ut5Wq4RfQ/+bFD8=; b=UaEW73l9PlSxeyRpJSMKrcKaxAd9ZM0UAOCS90Ois37CtbmppuEhlciZv3yVCy8RqfIv1TjdAyXIh1G555UKWecl9uzeIn+c4Dzc0WgJD4YYx+hVx7Fn7QNT2cs5xwgS1RjMts7WGlXNoARK3KrS8oQ8J4sLDpMPHU7/8p2euRNWthArH+Y/pwIuyegFvW8klzbLKTH0QbcRh3w37NFKSz5J7LdZbXkfyZBVWVhEuL/7V9L2zhP6qmA8zKykiuVLkmzWZ+cNpa3g6uQWmTnmskJO2Qj72drrHXvSKx11UZMYaAfZI9ppATd69K5Vi4jyvSHkU++Mmyh7TuxhexNkDQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tV681-0004cB-Rr for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 04:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jan 2025 09:44: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.173624303117712 (code B ref 74902); Tue, 07 Jan 2025 09:44:01 +0000 Original-Received: (at 74902) by debbugs.gnu.org; 7 Jan 2025 09:43:51 +0000 Original-Received: from localhost ([127.0.0.1]:41755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tV67m-0004bS-W0 for submit@debbugs.gnu.org; Tue, 07 Jan 2025 04:43:51 -0500 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:45377) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tV67g-0004b3-AZ for 74902@debbugs.gnu.org; Tue, 07 Jan 2025 04:43:45 -0500 Original-Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-38637614567so6950433f8f.3 for <74902@debbugs.gnu.org>; Tue, 07 Jan 2025 01:43:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736243014; x=1736847814; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=GKeJaSR0RYfMF5TgLp1Xo2kvyD72ut5Wq4RfQ/+bFD8=; b=Bqb/imeQmzV1aVEDd6vpsn8IpsUFN4Ft1QbHV6jJa0pmEr/oN0wSI6KAjewPYl3LFT ZLtM+uuKvdKIBhx+onNynTq/KFatkjD+vJdyFhl3InDtYWVn3vUOk970KRVDFL61eHyg LPmjVsb/1DKZ3BIcriZ+odGJTvPz1OA9xE/bnjn+flg270LuZss/8ibTzc49QSClqtkM FOEaAQ/UiIvi3+/+hnyMxdfs//KCnel54A8uFJ8b8UfoORCr5C/AVkqZQw8JprX88M9r 0a6Wacka54iElECz79m8SeOHY5ojijvEDnfst8HpJxXgDpST5Xfly+/Mtwhv+sj2kFZt ULaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736243014; x=1736847814; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GKeJaSR0RYfMF5TgLp1Xo2kvyD72ut5Wq4RfQ/+bFD8=; b=jhg/LxgHRxlOkAmtWBO4nCx9lXkdddeYjNfYGMKnV9bm3cjNOX36/NN2aQANhbt7ga PnRISnMB+lgVRIgKO6DfbxQI8TFSBNsACy/YOHN9zn3hJlsmpi9mlQfKAqOhLGCdU8dN QPJkQ0F5TLUQaHuJyc9km7lwCEFei//5nq9z55cLDk6qwRBmErHeZyVwaqaSr0VZzFBG 8NWCnOcIopFb/oGX4agZq1xBz07e9bVlI74HIUsG4zlz6JRgxkPkeIeUeWpLo0kjk3kq wlz35fqhgY1h7NGAhemy/UI7qBkfub2BVWG0C+YRulZZ41dI2jTQaU6VgwjIuwdaCU7o OJnQ== X-Forwarded-Encrypted: i=1; AJvYcCX00VI8NDbWSKyB9Hjr9BMvF73jb1RrjOrgUxC4d0u7Na6seZfX5JgHQBcOxYl/QONqSLDOPQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwsqkpZ1cuG7JRBqiXjxciTpxglptSJY8Olw1qNwTnAR7GlHtaS i50Dq8W5AqE4RAU2puiRqEGy8fKJrXhHal677blLwFLh8XkPCa8ncYm+tw== X-Gm-Gg: ASbGnculGKeJt7gVicikaDf3o2NnIx3RZIlgZ7V6O2iRQGSEcmrBA/HyfctzP98xpK+ Wk5cElpMjma8JYXnwf9YzeEu7U/dQaiTULND5g6C2ll8K+Q4rcz1yzzC1nf/g1blhuoeVKnGmqu xLBr+XGjkJAIn6CcWx/Et1FC7MpL+NDEBrMxkrinKOXMGvFqYTlHrPZAXp3EXSkPPdx2CinWZnm Raw9+uDOwMjpgg+x1/DX6oY7jLPyh8Qfwmo1bxhZEwb X-Google-Smtp-Source: AGHT+IH+pl+axC7Q8eYzj5jfUsJkW+st5lKj+Mz74rmfxZ/r8mvRRoWfOC7Z3AHXupouGzW6qkL8tA== X-Received: by 2002:a05:6000:1ac8:b0:385:f071:a1c9 with SMTP id ffacd0b85a97d-38a224049f1mr47976041f8f.50.1736243013287; Tue, 07 Jan 2025 01:43:33 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb51:4ac5:eaa5:bd5e:2940]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c847513sm50259665f8f.49.2025.01.07.01.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 01:43:32 -0800 (PST) In-Reply-To: <877c7fg6gn.fsf@stebalien.com> (Steven Allen's message of "Tue, 31 Dec 2024 08:31:04 -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:298713 Archived-At: >>>>> On Tue, 31 Dec 2024 08:31:04 -0800, Steven Allen said: Steven> Eli Zaretskii writes: >> Thanks. I guess we also need a FRAME_LIVE_P test in >> gui_consider_frame_title? Steven> I've attached a patch for that but note that it doesn't actually help in Steven> this situation because the frame isn't deleted until: Steven> https://git.savannah.gnu.org/cgit/emacs.git/tree/src/frame.c?h=2f1052d9b0de551dc3a463ed54e21c63517497ab#n2536 Steven> Whereas the crash happens here, 36 lines above: Steven> https://git.savannah.gnu.org/cgit/emacs.git/tree/src/frame.c?h=2f1052d9b0de551dc3a463ed54e21c63517497ab#n2500 gui_consider_frame_title looks at Vframe_list, so removing the to-be-deleted frame from it should be enough (unless this crash was with my patch applied?) Robert --