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#58857: 28.2; Emacs on macOS seg faults when deleting fullscreen frame Date: Sat, 29 Oct 2022 11:04:51 +0300 Message-ID: <83czabhx7g.fsf@gnu.org> References: <83wn8ji162.fsf@gnu.org> <83leozhyvw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28229"; mail-complaints-to="usenet@ciao.gmane.io" Cc: kkylin@alum.mit.edu, 58857@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 29 10:07:12 2022 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 1oogs3-0007B5-K2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Oct 2022 10:07:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oogrd-00047P-1v; Sat, 29 Oct 2022 04:06:46 -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 1oogqw-00044c-HL for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 04:06:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oogqw-0008Fp-7H for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 04:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oogqv-0007CE-Pv for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 04:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Oct 2022 08:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58857 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 58857-submit@debbugs.gnu.org id=B58857.166703071027596 (code B ref 58857); Sat, 29 Oct 2022 08:06:01 +0000 Original-Received: (at 58857) by debbugs.gnu.org; 29 Oct 2022 08:05:10 +0000 Original-Received: from localhost ([127.0.0.1]:34931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oogq6-0007B2-58 for submit@debbugs.gnu.org; Sat, 29 Oct 2022 04:05:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oogq1-0007AQ-HC for 58857@debbugs.gnu.org; Sat, 29 Oct 2022 04:05:09 -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 1oogpv-0007uS-Bn; Sat, 29 Oct 2022 04:04:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=RL9SIcGZZ52YEHfwiKASaHMrhASXbHMdv3mdur1Vt+I=; b=rY3mb5ZvP9NfqJM7lDIz HCZM4+59Zc4XJvv61n/1V+gQDYpkpvUetwDofZRN2/b192PFe+LrHeRfH6nHoiIP08ZxHB4aFDcIu vaGCbB5ePukOqlbbP6BCWgBNsJmza8WXCaQE1/BrZT6Bgmvu/hsOmJ8SHhn8u3efe7UWBBGSNnKw8 jHNn7yQAQmhHZPXBfCemm5u4wQnOaGprI8mAkOrPdyVQQ390535PqfQu6pM4oJWHHzDodMAEDjQHk cU+9fBVavn9s+9nebNI5zB2NwHbw2ZmNgI2bh15Y8akUK2m+tY5g4I1bhNnu7iYdxwANAy2wd9bpN REOZL0e8yma+jw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oogpp-0001As-K7; Sat, 29 Oct 2022 04:04:56 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Sat, 29 Oct 2022 09:36:11 +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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246503 Archived-At: > From: Gerd Möllmann > Cc: kkylin@alum.mit.edu, 58857@debbugs.gnu.org > Date: Sat, 29 Oct 2022 09:36:11 +0200 > > Eli Zaretskii writes: > > >> From: Gerd Möllmann > >> (lldb) p emacsframe > >> (frame *) $64 = 0x000000012d811600 > >> (lldb) p emacsframe->output_data > >> (output_data) $63 = { > >> tty = nil > >> x = nil > >> w32 = nil > >> ns = nil > >> pgtk = nil > >> haiku = nil > >> } > > > > So you are saying the NS-specific code that is run when Emacs is idle > > somehow references a frame that was deleted? > > I interpret the backtrace as saying that it's handling an event > (AppKit`-[NSApplication(NSEvent) > _nextEventMatchingEventMask:untilDate:inMode:dequeue:]), and the GUI > frame has been deleted. > > Don't know about the idle part. Look down the backtrace: this stuff was invoked from read_key_sequence inside the command loop. delete-frame is nowhere on the callstack, so I conclude that delete-frame already exited, and we are in the idle loop.