From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#65843: 28.2; Too many iconified frames in .emacs.desktop -> crash (macOS) Date: Mon, 11 Sep 2023 06:07:56 +0200 Message-ID: References: <036BF52A-4EBC-4F33-8A52-7DF60F753A3D@gg32.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="22720"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65843@debbugs.gnu.org, Christian Tanzer To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 11 06:09:37 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 1qfYEy-0005h5-Ty for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Sep 2023 06:09:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfYEb-0005kt-PR; Mon, 11 Sep 2023 00:09:14 -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 1qfYEM-0005Kk-34 for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 00:09:00 -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 1qfYEL-0002oe-RH for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 00:08:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfYEP-00058Q-Kk for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 00:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Sep 2023 04:09:01 +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.169440529419681 (code B ref 65843); Mon, 11 Sep 2023 04:09:01 +0000 Original-Received: (at 65843) by debbugs.gnu.org; 11 Sep 2023 04:08:14 +0000 Original-Received: from localhost ([127.0.0.1]:51762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfYDe-00057N-2p for submit@debbugs.gnu.org; Mon, 11 Sep 2023 00:08:14 -0400 Original-Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]:44537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfYDY-000576-Lp for 65843@debbugs.gnu.org; Mon, 11 Sep 2023 00:08:12 -0400 Original-Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-99c136ee106so489700666b.1 for <65843@debbugs.gnu.org>; Sun, 10 Sep 2023 21:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694405279; x=1695010079; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=o4TrKOh7qJDWvPdbyhv03NWWlTglz+lvh6pwRowtJkk=; b=qPxvOxGgDPYt+q/e56yJ9ElyIHbc9LZmR2uHJmeucG9eoGpq5P6AHLxT+6uU/4P4F8 ES7drjyzQpnbJF74F5FskgxpedZUm4Pbvh4PoH8mwGH8ihMMV4N7rgcxyDZzXJYYrvz6 zArV14GK4V/Q4k+yfqJlN0GXIypGz57p3zjjFoejRWIo1BqvqO5ILi+mUlnbDHzJx30D 0fETpz8x/zpnWjvntSk5wAKuwk7VSwrYYrxODRvGyopopne4Zy4f0/uk7JzkAzXyBd5n il83HUhv5/TG/y1IIFqJrlmCY7JuiGfI2kQWTw0kAAA6IhleDeQfYDrbWt+MICpPQ5oK diSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694405279; x=1695010079; h=mime-version:user-agent: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=o4TrKOh7qJDWvPdbyhv03NWWlTglz+lvh6pwRowtJkk=; b=aNgmZWbNGPOYpEkbjM6GN0myc0a0NnoDuIdhcfMbcVkYlqy6094ZoeWVp+mbJ7Ug0i D6h4oUlShimpPBUv0nmET9Mbmgou+zfzPlW2cn7eNhBVX/YT41bJggtbSquwmuLTJViH ZNlTPvMWL8OCLIvrhBneCly9CRIcwnOqRj+EzXpH7Jn2JLQgvj1brvTDnw1x1kwK3NL4 SmMAJSEf4RTo90d5Vt0cMfzABWnE3FtKa7b5/MtJBMk3OFtyOnN1o62hhQsSfYIccFk0 abOJVmqPhcbs9zXUgZv+eXeqWIlhANZo19cSw2IJcxzhjy8bWA8j8Ngyiyuujzx6k6TC F+Ng== X-Gm-Message-State: AOJu0YyMWRko1br7CI+5wj4VKNYFA+glGTP1rXVvGKDfOtkEA/OpKV+J w/pmeHtob6/VcxUgzZTbrygU4eU39dJiuw== X-Google-Smtp-Source: AGHT+IERwrKLyXVzC5VHW4B7jeCHRmsLOzFJCFyN0IVyf2eADMMTjI4j2zZlY4NsHWnBn8uG5g+RQw== X-Received: by 2002:a17:906:1da9:b0:9a1:d2ef:3e3b with SMTP id u9-20020a1709061da900b009a1d2ef3e3bmr7010398ejh.38.1694405278343; Sun, 10 Sep 2023 21:07:58 -0700 (PDT) Original-Received: from Pro.fritz.box (pd9e366ce.dip0.t-ipconnect.de. [217.227.102.206]) by smtp.gmail.com with ESMTPSA id y5-20020a170906070500b0099bcbaa242asm4668802ejb.9.2023.09.10.21.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Sep 2023 21:07:57 -0700 (PDT) In-Reply-To: (Alan Third's message of "Sun, 10 Sep 2023 20:54:50 +0100") 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:270022 Archived-At: Alan Third writes: > Is this the same error as above, with the corrupt autorelease pool? Probably not, one being an ABRT, and one a SEGV. Or maybe they are, if the underlying cause is the same. It's all pretty strange. Maybe it's a timing thing? I mean, ignoring the possibility of an optimization bug for a moment, the fact that optimization flags that make Emacs slower make the bug disappear. Or the fact that it takes a "random" number of runs to make it happen. And that it doesn't happen at all on my old Macbook, which is 2x or so slower than my M1 Mac mini. I wouldn't be surprised if Christian had an even faster CPU, so that he sees the bug more reliably. Out of curiosity, Christian, what CPU do you have? >> 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. > Thanks, I'll try that. diff --git a/src/nsterm.m b/src/nsterm.m index c809c0b824a..2cb508b5328 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4560,6 +4560,7 @@ Function modeled after x_draw_glyph_string_box (). the [NXApp run] main loop after having processed all events queued at this moment. */ +#if 0 #ifdef NS_IMPL_COCOA if (! send_appdefined) { @@ -4572,6 +4573,7 @@ in certain situations (rapid incoming events). dequeue:NO]; if (! appev) send_appdefined = YES; } +#endif #endif if (send_appdefined) > I still suspect that if we have a corrupt autorelease pool, the > problem will be somewhere entirely different... Yeah. Strange thing is that ASAN doesn't kick in. Hm. Maybe Apple has something for debugging such situations? I guess it's worth googling.