GNU bug report logs - #80077
31.0.50; Segmentation when setting ns-auto-hide-menu-bar

Previous Next

Package: emacs;

Reported by: Al Haji-Ali <abdo.haji.ali <at> gmail.com>

Date: Sat, 27 Dec 2025 18:22:03 UTC

Severity: normal

Found in version 31.0.50

To reply to this bug, email your comments to 80077 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#80077; Package emacs. (Sat, 27 Dec 2025 18:22:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Al Haji-Ali <abdo.haji.ali <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 27 Dec 2025 18:22:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Al Haji-Ali <abdo.haji.ali <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: martin rudalics <rudalics <at> gmx.at>,
 Stéphane Marks <shipmints <at> gmail.com>
Subject: 31.0.50; Segmentation when setting ns-auto-hide-menu-bar
Date: Sat, 27 Dec 2025 18:21:30 +0000
I experienced a segmentation fault while experimenting with the new
set-frame-size-and-position. To reproduce, define the following function
(in emacs -Q for example)

(defun my/test ()
  (interactive)
  ;; This line seems unnecessary, but makes the crash more consistent.
  (modify-frame-parameters nil `((undecorated . t)))
  (setq ns-auto-hide-menu-bar t)
  ;; (redisplay t) ;; Calling this function prevents the crash

  ;; This also causes a similar crash, as long
  ;; the width/height are too big for the work area
  ;;(set-frame-size nil 800 800 t)

  (set-frame-size-and-position nil 1.0 1.0 0.0 0.0))

Then press M-x my/test (if not called interactively, the crash doesn't happen).

I attach below the output of NSTrace right before the crash and a call
stack as report by macOS.

-- Al

In GNU Emacs 31.0.50 (build 7, aarch64-apple-darwin24.5.0, NS
 appkit-2575.60 Version 15.5 (Build 24F74)) of 2025-12-27 built on
 m2air.local
Repository revision: 7be4fe89fc6f0fdd8f79dd8e506efc8db0cd8b5b
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2575
System Description:  macOS 15.5

Configured using:
 'configure --without-native-compilation
 --prefix=/Users/al/Downloads/emacs/build-ns --with-mailutils
 --with-imagemagick --with-ns --enable-checking
 --enable-check-lisp-object-type 'CFLAGS=-g -O0 -DNSTRACE_ENABLED=1''

Configured features:
ACL GLIB GNUTLS IMAGEMAGICK LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS
PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP
XIM ZLIB

Important settings:
  value of $LANG: en_GB.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
  minibuffer-nonselected-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug lisp-mnt message mailcap yank-media puny
dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies
mm-encode mailabbrev gmm-utils mailheader sendmail mail-parse rfc2231
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date
subr-x cl-loaddefs cl-lib rmc iso-transl tooltip cconv 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 nadvice seq simple cl-generic
indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads kqueue cocoa ns lcms2
multi-tty make-network-process tty-child-frames emacs)

Memory information:
((conses 16 37549 9572) (symbols 48 5379 0) (strings 32 12202 1903)
 (string-bytes 1 296648) (vectors 16 10561)
 (vector-slots 8 114536 7599) (floats 8 21 3) (intervals 56 241 11)
 (buffers 1064 10))


---
* Output right before the crash:

nsterm.m  : 1836: [ 1361]  ns_set_undecorated
nsterm.m  : 9516: [ 1362]  | [EmacsWindow initWithEmacsFrame:fullscreen:screen:]
nsterm.m  :10149: [ 1363]  | | [EmacsWindow setAppearance]
nsterm.m  : 9693: [ 1364]  | | [EmacsWindow setParentChildRelationships]
nsterm.m  : 8738: [ 1365]  | | | [EmacsView updateCollectionBehavior]
nsterm.m  : 8730: [ 1366]  | | | | [EmacsView isFullscreen] ->> 0
nsterm.m  :10192: [ 1367]  | | [EmacsWindow setFrameTopLeftPoint:(X:437 Y:843)]
nsterm.m  : 8402: [ 1368]  | | | [EmacsView windowDidMove:]
nsterm.m  : 9595: [ 1369]  | +--- new frame: (X:437 Y:335)/(W:595 H:508)
nsterm.m  : 9804: [ 1370]  | [EmacsWindow makeKeyAndOrderFront:]
nsterm.m  : 8261: [ 1371]  | | [EmacsView windowDidResignKey:]
nsterm.m  : 1460: [ 1372]  | | | ns_frame_rehighlight
nsterm.m  : 3172: [ 1373]  | | | ns_draw_window_cursor (on = 1, cursor_type = 1)
nsterm.m  : 2240: [ 1374]  | | | ns_set_frame_alpha
nsterm.m  : 8241: [ 1375]  | | [EmacsView windowDidBecomeKey]
nsterm.m  : 1460: [ 1376]  | | | ns_frame_rehighlight
nsterm.m  : 4643: [ 1377]  | | | | ns_draw_glyph_string (hl = 0)
nsterm.m  : 3949: [ 1378]  | | | | | ns_maybe_dumpglyphs_background
nsterm.m  : 3172: [ 1379]  | | | | ns_draw_window_cursor (on = 1, cursor_type = 0)
nsterm.m  : 4643: [ 1380]  | | | | | ns_draw_glyph_string (hl = 2)
nsterm.m  : 3949: [ 1381]  | | | | | | ns_maybe_dumpglyphs_background
nsterm.m  : 2240: [ 1382]  | | | | ns_set_frame_alpha
nsterm.m  : 9978: [ 1383]  | | [EmacsWindow constrainFrameRect:(X:437 Y:335)/(W:595 H:508) toScreen:]
nsterm.m  : 9997: [ 1384]  | | +--- Screens have separate spaces
nsterm.m  : 9999: [ 1385]  | | +->> (X:437 Y:335)/(W:595 H:508)
nsterm.m  : 7037: [ 1386]  | | [EmacsView acceptsFirstResponder]
nsterm.m  : 7037: [ 1387]  | | [EmacsView acceptsFirstResponder]
nsterm.m  : 1794: [ 1388]  ns_set_window_size_and_position
nsterm.m  :10173: [ 1389]  | [EmacsWindow setFrame:(X:0 Y:137)/(W:1470 H:819) display:0]
nsterm.m  : 9978: [ 1390]  | | [EmacsWindow constrainFrameRect:(X:0 Y:137)/(W:1470 H:819) toScreen:]
nsterm.m  : 9997: [ 1391]  | | +--- Screens have separate spaces
nsterm.m  : 9999: [ 1392]  | | +->> (X:0 Y:100)/(W:1470 H:819)
nsterm.m  : 8200: [ 1393]  | | [EmacsView resizeWithOldSuperviewSize:]
nsterm.m  : 8303: [ 1394]  | | | [EmacsView setFrame:(X:0 Y:0)/(W:1470 H:819)]
nsterm.m  : 8211: [ 1395]  | | +--- New size: (W:1470 H:819)
nsterm.m  : 8303: [ 1396]  | | | [EmacsView setFrame:(X:0 Y:0)/(W:1470 H:819)]
Fatal error 11: Segmentation fault
[1]    89828 abort      ./src/emacs -Q 2>&1 |
       89829 done       tee output.txt

---
* Call trace from macOS:


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x19f189388 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x19f1c288c pthread_kill + 296
2   libsystem_c.dylib             	       0x19f093d04 raise + 32
3   emacs                         	       0x100d09dcc terminate_due_to_signal + 516 (emacs.c:480)
4   emacs                         	       0x100d51e50 emacs_abort + 20 (sysdep.c:2405)
5   emacs                         	       0x100fb8bdc ns_term_shutdown + 184 (nsterm.m:6084)
6   emacs                         	       0x100d0a3c0 shut_down_emacs + 628 (emacs.c:3169)
7   emacs                         	       0x100d09d50 terminate_due_to_signal + 392 (emacs.c:463)
8   emacs                         	       0x100d54b24 handle_fatal_signal + 28 (sysdep.c:1793)
9   emacs                         	       0x100d54bc0 deliver_thread_signal + 156 (sysdep.c:1785)
10  emacs                         	       0x100d5498c deliver_fatal_thread_signal + 32 (sysdep.c:1805)
11  emacs                         	       0x100d54c7c handle_sigsegv + 156 (sysdep.c:1943)
12  libsystem_platform.dylib      	       0x19f1fc624 _sigtramp + 56
13  QuartzCore                    	       0x1a8306d34 CA::Layer::property_did_change(CA::Transaction*, unsigned int) + 3320
14  QuartzCore                    	       0x1a8306d34 CA::Layer::property_did_change(CA::Transaction*, unsigned int) + 3320
15  QuartzCore                    	       0x1a8305f88 CA::Layer::end_change(CA::Transaction*, unsigned int, objc_object*, objc_object*) + 36
16  QuartzCore                    	       0x1a8308538 CA::Layer::set_bounds(CA::Rect const&, bool) + 484
17  QuartzCore                    	       0x1a8308328 -[CALayer setBounds:] + 132
18  AppKit                        	       0x1a3cfafec -[NSView _updateLayerGeometryFromView] + 412
19  AppKit                        	       0x1a31fea4c -[NSView setFrameSize:] + 780
20  AppKit                        	       0x1a320c2c4 -[NSView setFrame:] + 300
21  AppKit                        	       0x1a3a27ebc __36-[NSMenuBarRepresentation _doLayout]_block_invoke_3 + 404
22  AppKit                        	       0x1a3a2496c -[NSMenuBarRepresentation _forEachBackingViewDo:] + 180
23  AppKit                        	       0x1a3a267d4 __48-[NSMenuBarRepresentation layoutMenuBarIfNeeded]_block_invoke + 3980
24  AppKit                        	       0x1a3215070 NSPerformVisuallyAtomicChange + 108
25  AppKit                        	       0x1a3a25808 -[NSMenuBarRepresentation layoutMenuBarIfNeeded] + 248
26  AppKit                        	       0x1a3a256dc __40-[NSMenuBarRepresentation layoutMenuBar]_block_invoke + 40
27  AppKit                        	       0x1a3a28e10 ___NSMainRunLoopPerformBlockInModes_block_invoke + 44
28  CoreFoundation                	       0x19f2ad874 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
29  CoreFoundation                	       0x19f2ad784 __CFRunLoopDoBlocks + 352
30  CoreFoundation                	       0x19f2ac618 __CFRunLoopRun + 824
31  CoreFoundation                	       0x19f2abc58 CFRunLoopRunSpecific + 572
32  HIToolbox                     	       0x1aad4027c RunCurrentEventLoopInMode + 324
33  HIToolbox                     	       0x1aad4331c ReceiveNextEventCommon + 216
34  HIToolbox                     	       0x1aaece484 _BlockUntilNextEventMatchingListInModeWithFilter + 76
35  AppKit                        	       0x1a31d3ab4 _DPSNextEvent + 684
36  AppKit                        	       0x1a3b725b0 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
37  AppKit                        	       0x1a31c6c64 -[NSApplication run] + 480
38  emacs                         	       0x100f71500 -[EmacsApp run] + 448 (nsterm.m:6137)
39  emacs                         	       0x100fb0d2c ns_read_socket_1 + 1220 (nsterm.m:5010)
40  emacs                         	       0x100fa3e54 ns_read_socket + 40 (nsterm.m:5028)
41  emacs                         	       0x100d24ffc gobble_input + 216 (keyboard.c:8067)
42  emacs                         	       0x100d304d0 get_input_pending + 172 (keyboard.c:8023)
43  emacs                         	       0x100d1dee0 detect_input_pending_run_timers + 68 (keyboard.c:12009)
44  emacs                         	       0x100d19d10 read_char + 1780 (keyboard.c:2680)
45  emacs                         	       0x100d13e68 read_key_sequence + 2768 (keyboard.c:11183)
46  emacs                         	       0x100d11e44 command_loop_1 + 1544 (keyboard.c:1424)
47  emacs                         	       0x100e3a498 internal_condition_case + 140 (eval.c:1690)
48  emacs                         	       0x100d10038 command_loop_2 + 44 (keyboard.c:1163)
49  emacs                         	       0x100e39514 internal_catch + 80 (eval.c:1370)
50  emacs                         	       0x100d0fe58 command_loop + 360 (keyboard.c:1141)
51  emacs                         	       0x100d0fc04 recursive_edit_1 + 312 (keyboard.c:749)
52  emacs                         	       0x100d10c18 Frecursive_edit + 512 (keyboard.c:832)
53  emacs                         	       0x100d0c45c main + 8144 (emacs.c:2629)
54  dyld                          	       0x19ee22b98 start + 6076




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#80077; Package emacs. (Sat, 27 Dec 2025 18:48:02 GMT) Full text and rfc822 format available.

Message #8 received at 80077 <at> debbugs.gnu.org (full text, mbox):

From: Stéphane Marks <shipmints <at> gmail.com>
To: Al Haji-Ali <abdo.haji.ali <at> gmail.com>
Cc: martin rudalics <rudalics <at> gmx.at>, 80077 <at> debbugs.gnu.org
Subject: Re: bug#80077: 31.0.50;
 Segmentation when setting ns-auto-hide-menu-bar
Date: Sat, 27 Dec 2025 13:46:48 -0500
[Message part 1 (text/plain, inline)]
On Sat, Dec 27, 2025 at 1:22 PM Al Haji-Ali <abdo.haji.ali <at> gmail.com> wrote:

>
> I experienced a segmentation fault while experimenting with the new
> set-frame-size-and-position. To reproduce, define the following function
> (in emacs -Q for example)
>
> (defun my/test ()
>   (interactive)
>   ;; This line seems unnecessary, but makes the crash more consistent.
>   (modify-frame-parameters nil `((undecorated . t)))
>   (setq ns-auto-hide-menu-bar t)
>   ;; (redisplay t) ;; Calling this function prevents the crash
>
>   ;; This also causes a similar crash, as long
>   ;; the width/height are too big for the work area
>   ;;(set-frame-size nil 800 800 t)
>
>   (set-frame-size-and-position nil 1.0 1.0 0.0 0.0))
>
> Then press M-x my/test (if not called interactively, the crash doesn't
> happen).
>
> I attach below the output of NSTrace right before the crash and a call
> stack as report by macOS.
>
> -- Al
>
> In GNU Emacs 31.0.50 (build 7, aarch64-apple-darwin24.5.0, NS
>  appkit-2575.60 Version 15.5 (Build 24F74)) of 2025-12-27 built on
>  m2air.local
> Repository revision: 7be4fe89fc6f0fdd8f79dd8e506efc8db0cd8b5b
> Repository branch: master
> Windowing system distributor 'Apple', version 10.3.2575
> System Description:  macOS 15.5
>
> Configured using:
>  'configure --without-native-compilation
>  --prefix=/Users/al/Downloads/emacs/build-ns --with-mailutils
>  --with-imagemagick --with-ns --enable-checking
>  --enable-check-lisp-object-type 'CFLAGS=-g -O0 -DNSTRACE_ENABLED=1''
>
> Configured features:
> ACL GLIB GNUTLS IMAGEMAGICK LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS
> PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP
> XIM ZLIB
>
> Important settings:
>   value of $LANG: en_GB.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
>   minibuffer-nonselected-mode: t
>   minibuffer-regexp-mode: t
>   line-number-mode: t
>   indent-tabs-mode: t
>   transient-mark-mode: t
>   auto-composition-mode: t
>   auto-encryption-mode: t
>   auto-compression-mode: t
>
> Load-path shadows:
> None found.
>
> Features:
> (shadow sort mail-extr emacsbug lisp-mnt message mailcap yank-media puny
> dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
> rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies
> mm-encode mailabbrev gmm-utils mailheader sendmail mail-parse rfc2231
> rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date
> subr-x cl-loaddefs cl-lib rmc iso-transl tooltip cconv 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 nadvice seq simple cl-generic
> indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs
> theme-loaddefs faces cus-face macroexp files window text-properties
> overlay sha1 md5 base64 format env code-pages mule custom widget keymap
> hashtable-print-readable backquote threads kqueue cocoa ns lcms2
> multi-tty make-network-process tty-child-frames emacs)
>
> Memory information:
> ((conses 16 37549 9572) (symbols 48 5379 0) (strings 32 12202 1903)
>  (string-bytes 1 296648) (vectors 16 10561)
>  (vector-slots 8 114536 7599) (floats 8 21 3) (intervals 56 241 11)
>  (buffers 1064 10))
>
>
> ---
> * Output right before the crash:
>
> nsterm.m  : 1836: [ 1361]  ns_set_undecorated
> nsterm.m  : 9516: [ 1362]  | [EmacsWindow
> initWithEmacsFrame:fullscreen:screen:]
> nsterm.m  :10149: [ 1363]  | | [EmacsWindow setAppearance]
> nsterm.m  : 9693: [ 1364]  | | [EmacsWindow setParentChildRelationships]
> nsterm.m  : 8738: [ 1365]  | | | [EmacsView updateCollectionBehavior]
> nsterm.m  : 8730: [ 1366]  | | | | [EmacsView isFullscreen] ->> 0
> nsterm.m  :10192: [ 1367]  | | [EmacsWindow setFrameTopLeftPoint:(X:437
> Y:843)]
> nsterm.m  : 8402: [ 1368]  | | | [EmacsView windowDidMove:]
> nsterm.m  : 9595: [ 1369]  | +--- new frame: (X:437 Y:335)/(W:595 H:508)
> nsterm.m  : 9804: [ 1370]  | [EmacsWindow makeKeyAndOrderFront:]
> nsterm.m  : 8261: [ 1371]  | | [EmacsView windowDidResignKey:]
> nsterm.m  : 1460: [ 1372]  | | | ns_frame_rehighlight
> nsterm.m  : 3172: [ 1373]  | | | ns_draw_window_cursor (on = 1,
> cursor_type = 1)
> nsterm.m  : 2240: [ 1374]  | | | ns_set_frame_alpha
> nsterm.m  : 8241: [ 1375]  | | [EmacsView windowDidBecomeKey]
> nsterm.m  : 1460: [ 1376]  | | | ns_frame_rehighlight
> nsterm.m  : 4643: [ 1377]  | | | | ns_draw_glyph_string (hl = 0)
> nsterm.m  : 3949: [ 1378]  | | | | | ns_maybe_dumpglyphs_background
> nsterm.m  : 3172: [ 1379]  | | | | ns_draw_window_cursor (on = 1,
> cursor_type = 0)
> nsterm.m  : 4643: [ 1380]  | | | | | ns_draw_glyph_string (hl = 2)
> nsterm.m  : 3949: [ 1381]  | | | | | | ns_maybe_dumpglyphs_background
> nsterm.m  : 2240: [ 1382]  | | | | ns_set_frame_alpha
> nsterm.m  : 9978: [ 1383]  | | [EmacsWindow constrainFrameRect:(X:437
> Y:335)/(W:595 H:508) toScreen:]
> nsterm.m  : 9997: [ 1384]  | | +--- Screens have separate spaces
> nsterm.m  : 9999: [ 1385]  | | +->> (X:437 Y:335)/(W:595 H:508)
> nsterm.m  : 7037: [ 1386]  | | [EmacsView acceptsFirstResponder]
> nsterm.m  : 7037: [ 1387]  | | [EmacsView acceptsFirstResponder]
> nsterm.m  : 1794: [ 1388]  ns_set_window_size_and_position
> nsterm.m  :10173: [ 1389]  | [EmacsWindow setFrame:(X:0 Y:137)/(W:1470
> H:819) display:0]
> nsterm.m  : 9978: [ 1390]  | | [EmacsWindow constrainFrameRect:(X:0
> Y:137)/(W:1470 H:819) toScreen:]
> nsterm.m  : 9997: [ 1391]  | | +--- Screens have separate spaces
> nsterm.m  : 9999: [ 1392]  | | +->> (X:0 Y:100)/(W:1470 H:819)
> nsterm.m  : 8200: [ 1393]  | | [EmacsView resizeWithOldSuperviewSize:]
> nsterm.m  : 8303: [ 1394]  | | | [EmacsView setFrame:(X:0 Y:0)/(W:1470
> H:819)]
> nsterm.m  : 8211: [ 1395]  | | +--- New size: (W:1470 H:819)
> nsterm.m  : 8303: [ 1396]  | | | [EmacsView setFrame:(X:0 Y:0)/(W:1470
> H:819)]
> Fatal error 11: Segmentation fault
> [1]    89828 abort      ./src/emacs -Q 2>&1 |
>        89829 done       tee output.txt
>
> ---
> * Call trace from macOS:
>
>
> Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
> 0   libsystem_kernel.dylib                     0x19f189388 __pthread_kill
> + 8
> 1   libsystem_pthread.dylib                    0x19f1c288c pthread_kill +
> 296
> 2   libsystem_c.dylib                          0x19f093d04 raise + 32
> 3   emacs                                      0x100d09dcc
> terminate_due_to_signal + 516 (emacs.c:480)
> 4   emacs                                      0x100d51e50 emacs_abort +
> 20 (sysdep.c:2405)
> 5   emacs                                      0x100fb8bdc
> ns_term_shutdown + 184 (nsterm.m:6084)
> 6   emacs                                      0x100d0a3c0 shut_down_emacs
> + 628 (emacs.c:3169)
> 7   emacs                                      0x100d09d50
> terminate_due_to_signal + 392 (emacs.c:463)
> 8   emacs                                      0x100d54b24
> handle_fatal_signal + 28 (sysdep.c:1793)
> 9   emacs                                      0x100d54bc0
> deliver_thread_signal + 156 (sysdep.c:1785)
> 10  emacs                                      0x100d5498c
> deliver_fatal_thread_signal + 32 (sysdep.c:1805)
> 11  emacs                                      0x100d54c7c handle_sigsegv
> + 156 (sysdep.c:1943)
> 12  libsystem_platform.dylib                   0x19f1fc624 _sigtramp + 56
> 13  QuartzCore                                 0x1a8306d34
> CA::Layer::property_did_change(CA::Transaction*, unsigned int) + 3320
> 14  QuartzCore                                 0x1a8306d34
> CA::Layer::property_did_change(CA::Transaction*, unsigned int) + 3320
> 15  QuartzCore                                 0x1a8305f88
> CA::Layer::end_change(CA::Transaction*, unsigned int, objc_object*,
> objc_object*) + 36
> 16  QuartzCore                                 0x1a8308538
> CA::Layer::set_bounds(CA::Rect const&, bool) + 484
> 17  QuartzCore                                 0x1a8308328 -[CALayer
> setBounds:] + 132
> 18  AppKit                                     0x1a3cfafec -[NSView
> _updateLayerGeometryFromView] + 412
> 19  AppKit                                     0x1a31fea4c -[NSView
> setFrameSize:] + 780
> 20  AppKit                                     0x1a320c2c4 -[NSView
> setFrame:] + 300
> 21  AppKit                                     0x1a3a27ebc
> __36-[NSMenuBarRepresentation _doLayout]_block_invoke_3 + 404
> 22  AppKit                                     0x1a3a2496c
> -[NSMenuBarRepresentation _forEachBackingViewDo:] + 180
> 23  AppKit                                     0x1a3a267d4
> __48-[NSMenuBarRepresentation layoutMenuBarIfNeeded]_block_invoke + 3980
> 24  AppKit                                     0x1a3215070
> NSPerformVisuallyAtomicChange + 108
> 25  AppKit                                     0x1a3a25808
> -[NSMenuBarRepresentation layoutMenuBarIfNeeded] + 248
> 26  AppKit                                     0x1a3a256dc
> __40-[NSMenuBarRepresentation layoutMenuBar]_block_invoke + 40
> 27  AppKit                                     0x1a3a28e10
> ___NSMainRunLoopPerformBlockInModes_block_invoke + 44
> 28  CoreFoundation                             0x19f2ad874
> __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
> 29  CoreFoundation                             0x19f2ad784
> __CFRunLoopDoBlocks + 352
> 30  CoreFoundation                             0x19f2ac618 __CFRunLoopRun
> + 824
> 31  CoreFoundation                             0x19f2abc58
> CFRunLoopRunSpecific + 572
> 32  HIToolbox                                  0x1aad4027c
> RunCurrentEventLoopInMode + 324
> 33  HIToolbox                                  0x1aad4331c
> ReceiveNextEventCommon + 216
> 34  HIToolbox                                  0x1aaece484
> _BlockUntilNextEventMatchingListInModeWithFilter + 76
> 35  AppKit                                     0x1a31d3ab4 _DPSNextEvent +
> 684
> 36  AppKit                                     0x1a3b725b0
> -[NSApplication(NSEventRouting)
> _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
> 37  AppKit                                     0x1a31c6c64 -[NSApplication
> run] + 480
> 38  emacs                                      0x100f71500 -[EmacsApp run]
> + 448 (nsterm.m:6137)
> 39  emacs                                      0x100fb0d2c
> ns_read_socket_1 + 1220 (nsterm.m:5010)
> 40  emacs                                      0x100fa3e54 ns_read_socket
> + 40 (nsterm.m:5028)
> 41  emacs                                      0x100d24ffc gobble_input +
> 216 (keyboard.c:8067)
> 42  emacs                                      0x100d304d0
> get_input_pending + 172 (keyboard.c:8023)
> 43  emacs                                      0x100d1dee0
> detect_input_pending_run_timers + 68 (keyboard.c:12009)
> 44  emacs                                      0x100d19d10 read_char +
> 1780 (keyboard.c:2680)
> 45  emacs                                      0x100d13e68
> read_key_sequence + 2768 (keyboard.c:11183)
> 46  emacs                                      0x100d11e44 command_loop_1
> + 1544 (keyboard.c:1424)
> 47  emacs                                      0x100e3a498
> internal_condition_case + 140 (eval.c:1690)
> 48  emacs                                      0x100d10038 command_loop_2
> + 44 (keyboard.c:1163)
> 49  emacs                                      0x100e39514 internal_catch
> + 80 (eval.c:1370)
> 50  emacs                                      0x100d0fe58 command_loop +
> 360 (keyboard.c:1141)
> 51  emacs                                      0x100d0fc04
> recursive_edit_1 + 312 (keyboard.c:749)
> 52  emacs                                      0x100d10c18 Frecursive_edit
> + 512 (keyboard.c:832)
> 53  emacs                                      0x100d0c45c main + 8144
> (emacs.c:2629)
> 54  dyld                                       0x19ee22b98 start + 6076
>

This may be a clue:

2025-12-27 13:44:43.684510-0500 emacs[47797:223183366] It's not legal to
call -layoutSubtreeIfNeeded on a view which is already being laid out.  If
you are implementing the view's -layout method, you can call -[super
layout] instead. Break on void _NSDetectedLayoutRecursion(void) to debug.
This will be logged only once.  This may break in the future.

Something we'll have to suss out.
[Message part 2 (text/html, inline)]

This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.