From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kevin Lin Newsgroups: gmane.emacs.bugs Subject: bug#58857: 28.2; Emacs on macOS seg faults when deleting fullscreen frame Date: Fri, 28 Oct 2022 10:59:16 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14341"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.10; emacs 28.2.50 To: 58857@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 29 07:19:01 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 1ooeFI-0003U7-Mk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Oct 2022 07:19:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooeEe-0008Sr-0P; Sat, 29 Oct 2022 01:18:20 -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 1oodDT-0006qQ-EG for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 00:13:03 -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 1oodDT-00065i-18 for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 00:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oodDS-00055n-Jl for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 00:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Lin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Oct 2022 04:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58857 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166701674619512 (code B ref -1); Sat, 29 Oct 2022 04:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2022 04:12:26 +0000 Original-Received: from localhost ([127.0.0.1]:34720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oodCq-00054b-Qg for submit@debbugs.gnu.org; Sat, 29 Oct 2022 00:12:26 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooTlX-00007Q-AN for submit@debbugs.gnu.org; Fri, 28 Oct 2022 14:07:36 -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 1ooTlX-0000NK-4R for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2022 14:07:35 -0400 Original-Received: from mail-dm6nam10on20622.outbound.protection.outlook.com ([2a01:111:f400:7e88::622] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooTlQ-0000JD-H0 for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2022 14:07:34 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KyrwjAUvW6EXCe/o5whTAtfaaEmhnvtINHVPwHHinBc2rcM7q3wZ7OBB6a8rbbvXq0MQFxSjDRcn2lm/sijdcXyGNPcg19CppJx7FGlUHXyn25bTNI7vC0iGwgvltHUPm7Tyd4ttHV3dUoh3lEUyJ9MAbgq8gDDYBlcsIddQGDw/hmHKwNfqqsKDiR2sFlQoT1oBme7CzQTU0Pb5RDHynZOe+jetZSg51E1ke2hOL5Ltn+Js0kpjJC1KrO4lCu8WBA4YPtozrw1PAMvBEdfFjWPdRjEwMCGigOLUIL0IuJmsTGC9EG8uw4LQcFUmlC5qMUJVG8dMJrtoNw0V10ewyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pGe2uA5z/uJnbF2DAiIItJAncMy3YrV+E/C0HsQMufo=; b=ndrUKxPkWQ8h0A2PlT0mcuZ/Bi++u2mA/dWuvWSyOKPVhn3YD4Fc/G1tVUsBp5XNwnLYCaUWzmDF5Q4yYUvHLHgoEs4IEb+BYJBtLuVR6p7ULGTM3axLnayzw0NS9odbzEbjRC8/q39KQF7bjCGJ6gyOvPCyC21CgUCqYexnDCwJl69kwU/uKraqW54cnukf+GniUk30VyHOVrvUYliCOWQy+ZhMOi0RNssWrRUiRBZ71e8bPJtmK+BTFryubml8u8iD/RS7sjMwpTRy5knXD6VkhruDP5Z9FKgmYd7TKBiRCBGL2wN+tsu8xLfJYtmv3+29lWYFfjoIM+kI58ryCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 18.7.68.33) smtp.rcpttodomain=gnu.org smtp.mailfrom=alum.mit.edu; dmarc=pass (p=none sp=none pct=100) action=none header.from=alum.mit.edu; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alum.mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pGe2uA5z/uJnbF2DAiIItJAncMy3YrV+E/C0HsQMufo=; b=Sgq25s4U6HpBzQZt13wlVqMjx71VpPY7/rLK+DXYotLO64K27VKvS0TnFJXyBBcRLF3PJn6thWMMX0mSdn1umkIwXU49qHbwjhONucDF80SBjp16vyr1l32VmthL3mNJrhXwvKIoy3gULmS6PSoC/TyN/xsQOyQD/dzZh8Yi4+0= Original-Received: from SA9PR13CA0147.namprd13.prod.outlook.com (2603:10b6:806:27::32) by BY5PR12MB5000.namprd12.prod.outlook.com (2603:10b6:a03:1d7::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15; Fri, 28 Oct 2022 18:02:18 +0000 Original-Received: from SN1NAM02FT0037.eop-nam02.prod.protection.outlook.com (2603:10b6:806:27:cafe::98) by SA9PR13CA0147.outlook.office365.com (2603:10b6:806:27::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.9 via Frontend Transport; Fri, 28 Oct 2022 18:02:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 18.7.68.33) smtp.mailfrom=alum.mit.edu; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=alum.mit.edu; Received-SPF: Pass (protection.outlook.com: domain of alum.mit.edu designates 18.7.68.33 as permitted sender) receiver=protection.outlook.com; client-ip=18.7.68.33; helo=outgoing-alum.mit.edu; pr=C Original-Received: from outgoing-alum.mit.edu (18.7.68.33) by SN1NAM02FT0037.mail.protection.outlook.com (10.97.4.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.16 via Frontend Transport; Fri, 28 Oct 2022 18:02:17 +0000 Original-Received: from godel.local (ip72-200-87-161.tc.ph.cox.net [72.200.87.161]) (authenticated bits=0) (User authenticated as kkylin@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.14.7/8.12.4) with ESMTP id 29SI2F8t013542 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 28 Oct 2022 14:02:16 -0400 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1NAM02FT0037:EE_|BY5PR12MB5000:EE_ X-MS-Office365-Filtering-Correlation-Id: c7e2c8a3-1403-4013-9e12-08dab90e8d83 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LpV186Ax74CizAEkf5ZLsu6ZAsgb7ypaH5a944TbhIwkudjkAdo5LAsrJR+Nv5EA98GWX75ENeV7Z0Cq4PUkb+9BnlAgw/7uwwW8iTv51l9G6jMbIFlSnoBUluYXXn8l6OyD4LfbkNdX4vFRZOpQXY5nL3VvJ5oAMKVv0WroY67J4e6xl7cJSfVGGgJ6C1Vk+rGx4477d+LHSCjBxMIE8am0lHKUdXSixdBxyEh6NY7/WJEXOj6bD70bqVzR+SiK6z7fQrPURBCsRkjuIxPHce8FNRPQ3/p57huWt2yaKE8ROd6rytReH3WZzqXhQUg7d/DIctZuefWkVMQ6jtKZgOzXPLaNpE62zYTsVxEfDmmB4P1FEg27fA+Kik9FRv2/J9UOtiWfVUzdC8jUeZNgLqkwH9U4nAtQfa8FGieH0GEeB/MIubWGYy+AxliLJe2bWN6vApViq45glv1E3O/ziLs8iscHHYaSqb7apkSMFz8EalIMqMRxnUmnciC8jTkwSsHwKdW/jFVyx6s5aAceY/XvzEnEIVVAII1qwPMu0hyAIuuT7nlZ0SAORCz4zrq9PC5MUgwxtkHOcyfjYEJRaW+inJAORV9hG0K6zQZRJJ+SATueiQH5ZE55D/CFQHzpxxWfgZNLgRJE3/Udrki20kPIfJJdVhX2cdALn4LAIVf9hy2fv1qT2pp6moyl25slYqW1TNe1Mi9R34hJFdjlFacJKM+iLdpPexIcZATSUJ17448duo7IXuXTkgmXv te1Oui59Fz149Zy6NlOYHEN5g== X-Forefront-Antispam-Report: CIP:18.7.68.33; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:outgoing-alum.mit.edu; PTR:outgoing-alum.mit.edu; CAT:NONE; SFS:(13230022)(39860400002)(346002)(136003)(396003)(376002)(451199015)(36840700001)(46966006)(41300700001)(356005)(7596003)(8676002)(2906002)(75432002)(86362001)(82740400003)(36860700001)(82310400005)(5660300002)(8936002)(40480700001)(186003)(336012)(83380400001)(47076005)(2616005)(956004)(6916009)(478600001)(70586007)(70206006)(966005)(26005)(41320700001)(316002)(786003); DIR:OUT; SFP:1101; X-OriginatorOrg: alum.mit.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2022 18:02:17.9365 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c7e2c8a3-1403-4013-9e12-08dab90e8d83 X-MS-Exchange-CrossTenant-Id: 3326b102-c043-408b-a990-b89e477d582f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3326b102-c043-408b-a990-b89e477d582f; Ip=[18.7.68.33]; Helo=[outgoing-alum.mit.edu] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0037.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB5000 Received-SPF: pass client-ip=2a01:111:f400:7e88::622; envelope-from=kkylin@alum.mit.edu; helo=NAM10-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_SPF_HELO=1, SPF_HELO_PASS=-0.001, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 29 Oct 2022 00:12:21 -0400 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:246481 Archived-At: Using stock Emacs 28.2 from https://emacsformacosx.com/: 1) $ /Applications/Emacs.app/Contents/MacOS/Emacs -Q 2) open a second frame by, e.g., C-X-5-2 3) make it fullscreen, e.g., by clicking the green title button 4) delete the fullscreened frame by, e.g., C-X-5-0 I don't know enough about ObjC or NS to isolate the issue in the ObjC source, but the following work-around works for me: (defun frame-turn-off-fullscreen (theframe) (if (eq 'fullboth (cdr (assq 'fullscreen (frame-parameters theframe)))) (set-frame-parameter theframe 'fullscreen nil))) (if (boundp 'ns-use-native-fullscreen) (add-to-list 'delete-frame-functions 'frame-turn-off-fullscreen)) I haven't tried this with Emacs in gdb, but do have macOS-generated crash logs I can send along upon request. Also, I'm running this on macOS 13 (Ventura), but this has happened to me since macOS 10.13 (High Sierra) with Emacs 27 (possibly even earlier). Reporting it only now because the work-around above has worked for me and I forgot about it. In GNU Emacs 28.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2022-09-12 built on builder10-14.lan Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.0 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 51043 7955) (symbols 48 6562 1) (strings 32 18364 2902) (string-bytes 1 612723) (vectors 16 13832) (vector-slots 8 191713 10825) (floats 8 21 39) (intervals 56 222 0) (buffers 992 11)) --