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: Sun, 10 Sep 2023 20:40:49 +0200 Message-ID: References: <036BF52A-4EBC-4F33-8A52-7DF60F753A3D@gg32.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="338"; 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 Sun Sep 10 20:42:23 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 1qfPO2-000ASr-MG for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Sep 2023 20:42:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfPNl-00075Z-At; Sun, 10 Sep 2023 14:42:05 -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 1qfPNg-00074k-CQ for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 14:42: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 1qfPNg-0000xo-4d for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 14:42:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfPNi-0000XI-Df for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 14:42:02 -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: Sun, 10 Sep 2023 18:42: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.16943712661997 (code B ref 65843); Sun, 10 Sep 2023 18:42:02 +0000 Original-Received: (at 65843) by debbugs.gnu.org; 10 Sep 2023 18:41:06 +0000 Original-Received: from localhost ([127.0.0.1]:51294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfPMn-0000W9-Rh for submit@debbugs.gnu.org; Sun, 10 Sep 2023 14:41:06 -0400 Original-Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:62665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfPMj-0000VV-BQ for 65843@debbugs.gnu.org; Sun, 10 Sep 2023 14:41:05 -0400 Original-Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9a9d6b98845so912603866b.0 for <65843@debbugs.gnu.org>; Sun, 10 Sep 2023 11:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694371251; x=1694976051; darn=debbugs.gnu.org; h=content-transfer-encoding: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=YVP4nV6zW0ZQ153/RSlGHlG9BY61hjppw66GUgIw2Ck=; b=OegpL4mvX3H0Lyj3LcNBBNXfIKH7734gCZGY2NZWCpb3A/MN5QubEyL0Z06L/QJmtF zhxqbtyh7vvv+LwGOmM3LJ8zOITZ3GsYPdUCWKS86xl3Gut3ENpydD7s2ujS+LNgq1pv YQMw9c2D0zER+5AVLgbSVysd9Icli1ArF+NSKbegkWLzeIgv+Rf4cXUYqiOD+TmU3fZU nRU429bRpeBNWSFvZfoG899YEPHnTV034Tmb+NoQByhIKo+w4wDOVD+xeWkcS0K0V7J1 t4kLfj7zpZufN1quMlI/xPg+XcrOaAgL3c/SrFFsV9Pgv8lEA66pnt6VaZyqjMyxRBRn 7Cbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694371251; x=1694976051; h=content-transfer-encoding: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=YVP4nV6zW0ZQ153/RSlGHlG9BY61hjppw66GUgIw2Ck=; b=NO8zsewoVfz40Pm5Zu53rnW/6Gkqz0W2lZxN6OeiTkMKxz/w2CEp9V92pQj6PFEfcD m/mxulMx0sdqe1AkbB0I+9tULBKRezZYxKWiEiKEXM08LVgegxtviEmGg0ADJT9SqY1W m3u5RJSvuP10O4fC33jrIF9+Wz0lyDX6Z45gCtfTzX3Ji5lSwg8qcBT6jfqBebbaRPyT fzXJ2p6dK57b30zh1v9zGDslWlubYWjF6RsZMrnziZf1Qstw2MjjwDzGBmo9vQuSzqeo 0BkG7G2H4ws69MOmlb2hXFI2Be8YH+jNC68oiaW5iLoY+8xP7bwNx1LwXjBGdQcIdoMt /JNw== X-Gm-Message-State: AOJu0YxBpXqBSB9PEOwXlKpO20mQaF7dUtFcLs3r4oiVldoqWhMagEmx QAWagsCoi+i+pKGj5Z02Bv4OyPsZjvQE6A== X-Google-Smtp-Source: AGHT+IFAyuw/p7EKX8Ih4fAqPmbWuzPyC0y1ZXcahUV32fOODXy/8bEnhZGhr0yV6ELJ4d+SH61Rcw== X-Received: by 2002:a17:906:8a4a:b0:9a2:143e:a070 with SMTP id gx10-20020a1709068a4a00b009a2143ea070mr11068952ejc.20.1694371250959; Sun, 10 Sep 2023 11:40:50 -0700 (PDT) Original-Received: from Pro.fritz.box (pd9e3610e.dip0.t-ipconnect.de. [217.227.97.14]) by smtp.gmail.com with ESMTPSA id op5-20020a170906bce500b00992ea405a79sm4154794ejb.166.2023.09.10.11.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Sep 2023 11:40:50 -0700 (PDT) In-Reply-To: (Alan Third's message of "Sun, 10 Sep 2023 18:09:59 +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:269994 Archived-At: Alan Third writes: > On Sun, Sep 10, 2023 at 05:37:17PM +0200, Gerd M=C3=B6llmann wrote: >> Christian Tanzer writes: >>=20 >> > Weirder and weirder =E2=80=A6 >>=20 >> Wait a moment... I just got this >>=20 >> [emacs-29] gerd@Mini 2023-09-10 17:24=20 >> ~/emacs/29/src/ > ~/emacs/29/src/emacs -Q --eval '(desktop-read "~/bug-s= owieso")'=20 >> objc[88769]: autorelease pool page 0x11b4a5000 corrupted >> magic 0x00000000 0x00000000 0x00000000 0x00000000 >> should be 0xa1a1a1a1 0x4f545541 0x454c4552 0x21455341 >> pthread 0x201892080 >> should be 0x201892080 >>=20 >> 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? Process 70647 stopped * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D EXC_BAD_ACC= ESS (code=3D1, address=3D0x1ec70) frame #0: 0x00000001a6475c20 libobjc.A.dylib`objc_msgSend + 32 libobjc.A.dylib`objc_msgSend: -> 0x1a6475c20 <+32>: ldr x10, [x16, #0x10] 0x1a6475c24 <+36>: lsr x11, x10, #48 0x1a6475c28 <+40>: and x10, x10, #0xffffffffffff 0x1a6475c2c <+44>: and w12, w1, w11 (lldb) bt * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D EXC_BAD_ACC= ESS (code=3D1, address=3D0x1ec70) frame #0: 0x00000001a6475c20 libobjc.A.dylib`objc_msgSend + 32 * frame #1: 0x00000001aa2f4420 AppKit`-[NSWindow _reallyDoOrderWindowOutR= elativeTo:] + 608 frame #2: 0x00000001aa2f4728 AppKit`-[NSWindow _reallyDoOrderWindow:] += 80 frame #3: 0x00000001aa2fd5f0 AppKit`-[NSWindow(NSWindow_Theme) _finishM= inimizeToDock] + 188 frame #4: 0x00000001a9c42f84 AppKit`_NSCGSDockMessageReceive + 460 frame #5: 0x00000001b01646a8 HIToolbox`DockCallback(unsigned int, unsig= ned int, void*, void*) + 1528 frame #6: 0x00000001ac0793f0 HIServices`_DCXTransactionComplete + 56 frame #7: 0x00000001ac07938c HIServices`_XTransactionComplete + 60 frame #8: 0x00000001ac06a52c HIServices`mshMIGPerform + 204 frame #9: 0x00000001a68eebcc CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_= TO_A_SOURCE1_PERFORM_FUNCTION__ + 60 frame #10: 0x00000001a68eeaec CoreFoundation`__CFRunLoopDoSource1 + 520 frame #11: 0x00000001a68ed4cc CoreFoundation`__CFRunLoopRun + 2240 frame #12: 0x00000001a68ec4b8 CoreFoundation`CFRunLoopRunSpecific + 612 frame #13: 0x00000001ac07930c HIServices`waitForTransaction + 196 frame #14: 0x00000001aa2f5aa8 AppKit`minimizeItems + 120 frame #15: 0x00000001aa2fcce4 AppKit`-[NSWindow(NSWindow_Theme) _regula= rMinimizeToDock] + 60 frame #16: 0x00000001aa2fcd24 AppKit`-[NSWindow(NSWindow_Theme) _minimi= zeToDockBypassingWindowManager] + 36 frame #17: 0x00000001aa478f3c AppKit`__75-[NSWMWindowCoordinator client= WindowManager:windowMiniaturizationResponse:]_block_invoke + 424 frame #18: 0x00000001aa47959c AppKit`___NSMainRunLoopPerformBlockInMode= s_block_invoke + 44 frame #19: 0x00000001a68ee1d4 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT= _TO_A_BLOCK__ + 28 frame #20: 0x00000001a68ee0e8 CoreFoundation`__CFRunLoopDoBlocks + 364 frame #21: 0x00000001a68ecf38 CoreFoundation`__CFRunLoopRun + 812 frame #22: 0x00000001a68ec4b8 CoreFoundation`CFRunLoopRunSpecific + 612 frame #23: 0x00000001b013edf0 HIToolbox`RunCurrentEventLoopInMode + 292 frame #24: 0x00000001b013eaa8 HIToolbox`ReceiveNextEventCommon + 260 frame #25: 0x00000001b013e984 HIToolbox`_BlockUntilNextEventMatchingLis= tInModeWithFilter + 76 frame #26: 0x00000001a9b1397c AppKit`_DPSNextEvent + 636 frame #27: 0x00000001a9b12b18 AppKit`-[NSApplication(NSEvent) _nextEven= tMatchingEventMask:untilDate:inMode:dequeue:] + 716 frame #28: 0x000000010052e0d4 emacs`ns_send_appdefined(value=3D-1) at n= sterm.m:4569:24 [opt] frame #29: 0x000000010053e8e4 emacs`-[EmacsView resizeWithOldSuperviewS= ize:](self=3D, _cmd=3D, oldSize=3D) = at nsterm.m:7799:3 [opt] frame #30: 0x00000001a9b5b05c AppKit`-[NSView resizeSubviewsWithOldSize= :] + 360 frame #31: 0x00000001a9b3f53c AppKit`-[NSView setFrameSize:] + 1136 frame #32: 0x00000001a9b59670 AppKit`-[NSWindow _oldPlaceWindow:fromSer= ver:] + 612 frame #33: 0x00000001a9b586f8 AppKit`-[NSWindow _setFrameCommon:display= :fromServer:] + 1832 frame #34: 0x00000001005488b4 emacs`-[EmacsWindow setFrame:display:](se= lf=3D, _cmd=3D, windowFrame=3D, disp= layViews=3D) at nsterm.m:9722:3 [opt] frame #35: 0x0000000100548a90 emacs`-[EmacsWindow setFrame:display:anim= ate:](self=3D, _cmd=3D, windowFrame=3D, displayViews=3D, performAnimation=3D) at nste= rm.m:9733:3 [opt] frame #36: 0x00000001a9bf7bd4 AppKit`-[NSThemeFrame _growWindowReshapeC= ontentAndToolbarView:withOldToolbarFrameSize:animate:] + 928 frame #37: 0x00000001a9bf7664 AppKit`-[NSThemeFrame _reshapeContentAndT= oolbarView:withOldToolbarFrameSize:resizeWindow:animate:] + 200 frame #38: 0x00000001a9bdd11c AppKit`-[NSThemeFrame _showHideToolbar:re= sizeWindow:animate:] + 196 frame #39: 0x00000001a9bcf0cc AppKit`-[NSWindow _showToolbar:animate:] = + 140 frame #40: 0x00000001a9bcf00c AppKit`-[NSToolbar _show:animate:] + 80 frame #41: 0x00000001a9bcef98 AppKit`-[NSToolbar _toggleShown:animate:]= + 88 frame #42: 0x00000001a9bcc798 AppKit`-[NSWindow setToolbar:] + 396 frame #43: 0x0000000100546154 emacs`-[EmacsWindow createToolbar:](self= =3D0x00000001065cb500, _cmd=3D, f=3D0x0000000122dd3ff0) at nst= erm.m:9206:3 [opt] frame #44: 0x000000010053fedc emacs`-[EmacsView initFrameFromEmacs:](se= lf=3D0x000000010859d880, _cmd=3D, f=3D0x0000000122dd3ff0) at n= sterm.m:7945:3 [opt] frame #45: 0x0000000100564764 emacs`Fx_create_frame(parms=3D0x000000010= 6b98723) at nsfns.m:1485:3 [opt] frame #46: 0x00000001003baea8 emacs`funcall_subr(subr=3D0x00000001006d1= 000, numargs=3D, args=3D) at eval.c:3034:15 [opt] frame #47: 0x0000000100466be0 emacs`exec_byte_code(fun=3D,= args_template=3D, nargs=3D, args=3D= ) at bytecode.c:809:14 [opt] frame #48: 0x00000001003bbca8 emacs`funcall_lambda [inlined] fetch_and_= exec_byte_code(fun=3D0x0000000107218df5, args_template=3D257, nargs=3D1, ar= gs=3D0x0000000108604de8) at eval.c:3081:10 [opt] frame #49: 0x00000001003bbc7c emacs`funcall_lambda(fun=3D,= nargs=3D, arg_vector=3D) at eval.c:3153:9 [opt] frame #50: 0x00000001003ba9fc emacs`funcall_general(fun=3D= , numargs=3D, args=3D) at lisp.h:0:10 [opt] [arti= ficial] frame #51: 0x00000001003b0eec emacs`Ffuncall(nargs=3D, arg= s=3D) at eval.c:2995:21 [opt] frame #52: 0x00000001003b800c emacs`Fapply(nargs=3D2, args=3D0x00000001= 08604de0) at eval.c:0 [opt] frame #53: 0x00000001003bac84 emacs`funcall_subr(subr=3D0x00000001006c5= 180, numargs=3D, args=3D) at eval.c:3059:9 [opt] frame #54: 0x0000000100466be0 emacs`exec_byte_code(fun=3D,= args_template=3D, nargs=3D, args=3D= ) at bytecode.c:809:14 [opt] frame #55: 0x00000001003bbca8 emacs`funcall_lambda [inlined] fetch_and_= exec_byte_code(fun=3D0x000000011744dbc5, args_template=3D512, nargs=3D1, ar= gs=3D0x000000016fdfdf60) at eval.c:3081:10 [opt] frame #56: 0x00000001003bbc7c emacs`funcall_lambda(fun=3D,= nargs=3D, arg_vector=3D) at eval.c:3153:9 [opt] frame #57: 0x00000001003b79f0 emacs`apply_lambda(fun=3D, a= rgs=3D, count=3D) at eval.c:3103:9 [opt] frame #58: 0x00000001003a9800 emacs`eval_sub(form=3D) at e= val.c:2545:12 [opt] frame #59: 0x00000001003b7414 emacs`Feval(form=3D0x0000000106b26753, le= xical=3D) at eval.c:2361:28 [opt] frame #60: 0x00000001003bad84 emacs`funcall_subr(subr=3D0x00000001006c5= 120, numargs=3D, args=3D) at eval.c:3036:15 [opt] frame #61: 0x0000000100466be0 emacs`exec_byte_code(fun=3D,= args_template=3D, nargs=3D, args=3D= ) at bytecode.c:809:14 [opt] frame #62: 0x00000001003bbca8 emacs`funcall_lambda [inlined] fetch_and_= exec_byte_code(fun=3D0x000000010700eecd, args_template=3D0, nargs=3D0, args= =3D0x000000016fdfe700) at eval.c:3081:10 [opt] frame #63: 0x00000001003bbc7c emacs`funcall_lambda(fun=3D,= nargs=3D, arg_vector=3D) at eval.c:3153:9 [opt] frame #64: 0x00000001003b79f0 emacs`apply_lambda(fun=3D, a= rgs=3D, count=3D) at eval.c:3103:9 [opt] frame #65: 0x00000001003a9800 emacs`eval_sub(form=3D) at e= val.c:2545:12 [opt] frame #66: 0x00000001003b7414 emacs`Feval(form=3D0x00000001077ea123, le= xical=3D) at eval.c:2361:28 [opt] frame #67: 0x000000010028c5f0 emacs`top_level_2 at keyboard.c:1142:10 [= opt] [artificial] frame #68: 0x00000001003b3718 emacs`internal_condition_case(bfun=3D(ema= cs`top_level_2 at keyboard.c:1141), handlers=3D, hfun=3D(emacs= `cmd_error at keyboard.c:936)) at eval.c:1474:25 [opt] frame #69: 0x000000010028c568 emacs`top_level_1(ignore=3D0x000000000000= 0000) at keyboard.c:1150:5 [opt] frame #70: 0x00000001003b20d0 emacs`internal_catch(tag=3D0x000000000000= eee0, func=3D(emacs`top_level_1 at keyboard.c:1147), arg=3D0x00000000000000= 00) at eval.c:1197:25 [opt] frame #71: 0x000000010025e12c emacs`command_loop at keyboard.c:1110:2 [= opt] frame #72: 0x000000010025de18 emacs`recursive_edit_1 at keyboard.c:720:= 9 [opt] frame #73: 0x000000010025e620 emacs`Frecursive_edit at keyboard.c:803:3= [opt] frame #74: 0x000000010025bb74 emacs`main(argc=3D, argv=3D<= unavailable>) at emacs.c:2521:3 [opt] frame #75: 0x00000001a64b7f28 dyld`start + 2236 (lldb) command script import ~/emacs/29/etc/emacs_lldb.py Emacs debugging support has been installed. (lldb) xbacktrace (unsigned char *) data =3D 0x000000010064bc60 "x-create-frame" (unsigned char *) data =3D 0x00000001078da060 "x-create-frame-with-faces" PVEC_COMPILED (unsigned char *) data =3D 0x000000010062e7c0 "apply" (unsigned char *) data =3D 0x00000001078da16d "frame-creation-function" (unsigned char *) data =3D 0x00000001078da3ca "make-frame" (unsigned char *) data =3D 0x00000001078ea70d "make-frame-on-display" (unsigned char *) data =3D 0x0000000117c261b0 "frameset--restore-frame" (unsigned char *) data =3D 0x000000010793e6bc "frameset-restore" (unsigned char *) data =3D 0x0000000117c2ab10 "desktop-restore-frameset" (unsigned char *) data =3D 0x0000000107859f5b "desktop-read" (unsigned char *) data =3D 0x00000001006316e0 "eval" (unsigned char *) data =3D 0x00000001078aefb9 "command-line-1" (unsigned char *) data =3D 0x00000001078b0910 "command-line" (unsigned char *) data =3D 0x00000001078b1860 "normal-top-level"