From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#65843: 28.2; Too many iconified frames in .emacs.desktop -> crash (macOS) Date: Sun, 10 Sep 2023 20:54:50 +0100 Message-ID: References: <036BF52A-4EBC-4F33-8A52-7DF60F753A3D@gg32.com> 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="35150"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65843@debbugs.gnu.org, Christian Tanzer 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 Sun Sep 10 21:56:15 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 1qfQXX-0008tO-0O for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Sep 2023 21:56:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfQXJ-00061q-RD; Sun, 10 Sep 2023 15:56:01 -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 1qfQXH-00061a-Hw for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 15:55:59 -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 1qfQXH-0005BO-9t for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 15:55:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfQXK-0007mY-Jb for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 15:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Sep 2023 19:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65843 X-GNU-PR-Package: emacs Original-Received: via spool by 65843-submit@debbugs.gnu.org id=B65843.169437570929851 (code B ref 65843); Sun, 10 Sep 2023 19:56:02 +0000 Original-Received: (at 65843) by debbugs.gnu.org; 10 Sep 2023 19:55:09 +0000 Original-Received: from localhost ([127.0.0.1]:51386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfQWS-0007lP-H3 for submit@debbugs.gnu.org; Sun, 10 Sep 2023 15:55:08 -0400 Original-Received: from dane.soverin.net ([2a10:de80:1:4092:b9e9:2295:0:1]:41139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfQWN-0007kh-Ro for 65843@debbugs.gnu.org; Sun, 10 Sep 2023 15:55:07 -0400 Original-Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4RkLCw0kxczyRq; Sun, 10 Sep 2023 19:54:52 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4RkLCv37WhzLq; Sun, 10 Sep 2023 19:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1694375692; bh=rCtlMEXaVXyiNu6BzofTG0pthMWhL4bc83xs5WCdCXE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HOtfK7CMVQfSQ6tr+bX0l/W58ClRY7bF1h5aIphmFykZUwLd/QkUB+l29vxdPokme hGSbgtfqQh4rhU4RffTmNmAkQNl4/rGvITVuOElaESWRZ2dQ/BMS+UZo0F1Hn3FlsE XBV4z1uoRTTB2D2MXyXMyiFa7VQ6XSees0NX3tpObIsPBAZVHWsrStFJGYPZb6oNP+ 5iCcMzRnhyBlMvfMdkSpQrSSI3bYytCzGSrdBGbNfazluD6JnJDHtPsy1nKp5TPcA3 oMz/HkwW7GOub0N1V+L0ImfeEH5SZ0rcALgo0SswyX9xVfbatlMdD6fomRhq0urMdX FgqAue5vNvB5g== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96) (envelope-from ) id 1qfQWA-001Tf6-0y; Sun, 10 Sep 2023 20:54:50 +0100 X-Soverin-Authenticated: true Mail-Followup-To: Alan Third , Gerd =?UTF-8?Q?M=C3=B6llmann?= , Christian Tanzer , 65843@debbugs.gnu.org Content-Disposition: inline In-Reply-To: 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:270006 Archived-At: On Sun, Sep 10, 2023 at 08:40:49PM +0200, Gerd Möllmann wrote: > Alan Third writes: > > > On Sun, Sep 10, 2023 at 05:37:17PM +0200, Gerd Möllmann wrote: > >> Christian Tanzer writes: > >> > >> > Weirder and weirder … > >> > >> Wait a moment... I just got this > >> > >> [emacs-29] gerd@Mini 2023-09-10 17:24 > >> ~/emacs/29/src/ > ~/emacs/29/src/emacs -Q --eval '(desktop-read "~/bug-sowieso")' > >> objc[88769]: autorelease pool page 0x11b4a5000 corrupted > >> magic 0x00000000 0x00000000 0x00000000 0x00000000 > >> should be 0xa1a1a1a1 0x4f545541 0x454c4552 0x21455341 > >> pthread 0x201892080 > >> should be 0x201892080 > >> > >> Fatal error 6: Aborted > > > > I've a vague memory that I've seen something like this before and it > > was a runaway loop corrupting the heap... > > Sometimes one just has to be lucky enough :-). > This is with the "-g -O2" build. > > Does this tell you anything? Is this the same error as above, with the corrupt autorelease pool? > frame #27: 0x00000001a9b12b18 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716 > frame #28: 0x000000010052e0d4 emacs`ns_send_appdefined(value=-1) at nsterm.m:4569:24 [opt] This is an interesting little bit of code with a comment saying it's been added to cover for what sounds like a bug in macOS 10.10... Perhaps it's worth removing it and seeing if that helps. The code's around nsterm.m line 4569, and the whole #ifdef'd section should be removed. I still suspect that if we have a corrupt autorelease pool, the problem will be somewhere entirely different... -- Alan Third