From unknown Fri Aug 08 15:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34762: 26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0. Resent-From: Caroptions Caroptions Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Mar 2019 21:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 34762@debbugs.gnu.org X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.15518205747745 (code B ref -1); Tue, 05 Mar 2019 21:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Mar 2019 21:16:14 +0000 Received: from localhost ([127.0.0.1]:33539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1HQ3-00020o-CK for submit@debbugs.gnu.org; Tue, 05 Mar 2019 16:16:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1Gzi-0007no-QI for submit@debbugs.gnu.org; Tue, 05 Mar 2019 15:49:00 -0500 Received: from lists.gnu.org ([209.51.188.17]:48167) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h1Gzd-0004fW-Fy for submit@debbugs.gnu.org; Tue, 05 Mar 2019 15:48:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1Gza-0004Va-TS for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2019 15:48:53 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, RECEIVED_FROM_WINDOWS_HOST autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1GzY-0004SN-AE for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2019 15:48:50 -0500 Received: from mail-oln040092010022.outbound.protection.outlook.com ([40.92.10.22]:1679 helo=NAM04-CO1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h1GzX-0004NK-Hs for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2019 15:48:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I206T1SjXJ1mpms3HU5ZAUSRKoPiX1VWoHQ50TXesQE=; b=qrJFEGoJJHjY4dNIrXG1WSEPrNWg2nZ2EDiiy/7aIDJ2S7VD/9lu0Gbsxh0dKtlnUo+VoBPqO7poM7aWy5ZLvLWmLrr29R3xYZNeY0c0Dqe/H00UARQctiQFCVNt6y0r4etYtSDzKDmV3QUVqCuuNIzFC/P9P1qmkR4TBZ6iisOzhdjlpUsG6ERHg9wlkv2lPpx4PFFEiEUuzCN9R5SZIvwT0U6XA8OFG/4gHVBiLeOq+yy/brSFhWpQysMh+vI8SIJaOGsjyy8VqvUIp73I4QXyW1tmbjfVoqpisXVjA7UGk2CCOzedO46uRWNWe+IrEfK0MdCeet/bfazTu7LyUg== Received: from BN3NAM04FT029.eop-NAM04.prod.protection.outlook.com (10.152.92.60) by BN3NAM04HT172.eop-NAM04.prod.protection.outlook.com (10.152.93.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11; Tue, 5 Mar 2019 20:48:44 +0000 Received: from BYAPR02MB5813.namprd02.prod.outlook.com (10.152.92.52) by BN3NAM04FT029.mail.protection.outlook.com (10.152.92.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11 via Frontend Transport; Tue, 5 Mar 2019 20:48:44 +0000 Received: from BYAPR02MB5813.namprd02.prod.outlook.com ([fe80::806e:6677:8bad:190f]) by BYAPR02MB5813.namprd02.prod.outlook.com ([fe80::806e:6677:8bad:190f%3]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 20:48:44 +0000 From: Caroptions Caroptions Thread-Topic: 26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0. Thread-Index: AQHU05StGnzIii49C0etVhwnikc8SQ== Date: Tue, 5 Mar 2019 20:48:44 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:385A3022E8A09F5EEB78B732DBE1947F0BE066D2F90298CDDBEF80C87D263770; UpperCasedChecksum:DBDD803E68A2A5FF4ED1AF2922E0CF68CB3F9D5E951B7FFF702CD4C345D5253D; SizeAsReceived:6700; Count:41 x-tmn: [klNlpXRw+KQNCewjPrLnBuBd6oHmbcEr] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031323274)(2017031324274)(1601125500)(1603101475)(1701031045); SRVR:BN3NAM04HT172; x-ms-traffictypediagnostic: BN3NAM04HT172: x-microsoft-antispam-message-info: YTGlPPFNRoYBG7A/QHC4dBZ1T3iykAFah1diolHG+V12dTwp4IlJQ4i8cLCUxyp1 Content-Type: multipart/alternative; boundary="_000_BYAPR02MB58132C354172FAFD9F089D69CF720BYAPR02MB5813namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: f063297c-73ab-4999-70d0-08d6a1abf544 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 20:48:44.5366 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM04HT172 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.10.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Mailman-Approved-At: Tue, 05 Mar 2019 16:16:10 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --_000_BYAPR02MB58132C354172FAFD9F089D69CF720BYAPR02MB5813namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Open any remote file over TRAMP (ssh), click any menu: objc[33826]: Invalid or prematurely-freed autorelease pool 0x10300a208. Process 33826 stopped * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D signal SIGA= BRT frame #0: 0x00007fff68a3801e libsystem_kernel.dylib`__abort_with_payloa= d + 10 libsystem_kernel.dylib`__abort_with_payload: -> 0x7fff68a3801e <+10>: jae 0x7fff68a38028 ; <+20> 0x7fff68a38020 <+12>: movq %rax, %rdi 0x7fff68a38023 <+15>: jmp 0x7fff68a1a3b7 ; cerror_nocance= l 0x7fff68a38028 <+20>: retq Target 0: (Emacs) stopped. Compiled: xcode 10.1, OSX Mojave branch: emacs-emacs-26.1.92 ./configure --with-ns --with-modules --with-wide-int --without-makeinfo --without-sound --without-x --without-dbus --without-gsettings --without-selinux --without-gconf --without-libotf --without-m17n-flt --disable-acl --with-file-notification=3Dkqueue --enable-checking=3D'yes,glyphs' --enable-check-lisp-object-type CFLAGS=3D'-O0 -g3' Backtrace: (lldb) bt all * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D signal SIGA= BRT * frame #0: 0x00007fff68a3801e libsystem_kernel.dylib`__abort_with_payloa= d + 10 frame #1: 0x00007fff68a33541 libsystem_kernel.dylib`abort_with_payload_= wrapper_internal + 82 frame #2: 0x00007fff68a334ef libsystem_kernel.dylib`abort_with_reason += 22 frame #3: 0x00007fff6781bd3d libobjc.A.dylib`_objc_fatalv(unsigned long= long, unsigned long long, char const*, __va_list_tag*) + 108 frame #4: 0x00007fff6781bbff libobjc.A.dylib`_objc_fatal(char const*, .= ..) + 127 frame #5: 0x00007fff6780e8a9 libobjc.A.dylib`(anonymous namespace)::Aut= oreleasePoolPage::pop(void*) + 957 frame #6: 0x00007fff3b5c8f32 CoreFoundation`_CFAutoreleasePoolPop + 22 frame #7: 0x00007fff3d961c4e Foundation`-[NSAutoreleasePool release] + = 144 frame #8: 0x000000010048700c Emacs`ns_update_menubar(f=3D0x000000010406= 2c30, deep_p=3Dtrue, submenu=3D0x0000000000000000) at nsmenu.m:462 frame #9: 0x000000010048705e Emacs`x_activate_menubar(f=3D0x00000001040= 62c30) at nsmenu.m:481 frame #10: 0x00000001001e0bbd Emacs`kbd_buffer_get_event(kbp=3D0x00007f= feefbfd8c0, used_mouse_menu=3D0x00007ffeefbfebff, end_time=3D0x000000000000= 0000) at keyboard.c:3955 frame #11: 0x00000001001dfa44 Emacs`read_event_from_main_queue(end_time= =3D0x0000000000000000, local_getcjmp=3D0x00007ffeefbfe580, used_mouse_menu= =3D0x00007ffeefbfebff) at keyboard.c:2153 frame #12: 0x00000001001ce0a9 Emacs`read_decoded_event_from_main_queue(= end_time=3D0x0000000000000000, local_getcjmp=3D0x00007ffeefbfe580, prev_eve= nt=3D(i =3D 0), used_mouse_menu=3D0x00007ffeefbfebff) at keyboard.c:2217 frame #13: 0x00000001001ca9af Emacs`read_char(commandflag=3D1, map=3D(i= =3D 4382275843), prev_event=3D(i =3D 0), used_mouse_menu=3D0x00007ffeefbfe= bff, end_time=3D0x0000000000000000) at keyboard.c:2808 frame #14: 0x00000001001c3d6a Emacs`read_key_sequence(keybuf=3D0x00007f= feefbff210, bufsize=3D30, prompt=3D(i =3D 0), dont_downcase_last=3Dfalse, c= an_return_switch_frame=3Dtrue, fix_current_buffer=3Dtrue, prevent_redisplay= =3Dfalse) at keyboard.c:9157 frame #15: 0x00000001001c23b6 Emacs`command_loop_1 at keyboard.c:1368 frame #16: 0x00000001002fd9cf Emacs`internal_condition_case(bfun=3D(Ema= cs`command_loop_1 at keyboard.c:1259), handlers=3D(i =3D 18720), hfun=3D(Em= acs`cmd_error at keyboard.c:938)) at eval.c:1336 frame #17: 0x00000001001def21 Emacs`command_loop_2(ignore=3D(i =3D 0)) = at keyboard.c:1110 frame #18: 0x00000001002fcbc8 Emacs`internal_catch(tag=3D(i =3D 48048),= func=3D(Emacs`command_loop_2 at keyboard.c:1106), arg=3D(i =3D 0)) at eval= .c:1101 frame #19: 0x00000001001c0f3d Emacs`command_loop at keyboard.c:1089 frame #20: 0x00000001001c0d57 Emacs`recursive_edit_1 at keyboard.c:695 frame #21: 0x00000001001c118a Emacs`Frecursive_edit at keyboard.c:766 frame #22: 0x00000001001be7d1 Emacs`main(argc=3D1, argv=3D0x00007ffeefb= ff988) at emacs.c:1717 frame #23: 0x00007fff688e0ed9 libdyld.dylib`start + 1 frame #24: 0x00007fff688e0ed9 libdyld.dylib`start + 1 thread #5 frame #0: 0x00007fff68a1bb6a libsystem_kernel.dylib`__workq_kernreturn = + 10 frame #1: 0x00000000000186a6 frame #2: 0x00007fff68ad3405 libsystem_pthread.dylib`start_wqthread + 1= 3 thread #6 frame #0: 0x00007fff68a1bb6a libsystem_kernel.dylib`__workq_kernreturn = + 10 frame #1: 0x00007fff68ad3630 libsystem_pthread.dylib`_pthread_wqthread = + 446 frame #2: 0x00007fff68ad3405 libsystem_pthread.dylib`start_wqthread + 1= 3 thread #7 frame #0: 0x00007fff68a215aa libsystem_kernel.dylib`__select + 10 frame #1: 0x0000000100457cad Emacs`-[EmacsApp fd_handler:](self=3D0x000= 000010306ea00, _cmd=3D"fd_handler:", unused=3D0x0000000000000000) at nsterm= .m:5851 frame #2: 0x00007fff3d970104 Foundation`__NSThread__start__ + 1218 frame #3: 0x00007fff68ad4305 libsystem_pthread.dylib`_pthread_body + 12= 6 frame #4: 0x00007fff68ad726f libsystem_pthread.dylib`_pthread_start + 7= 0 frame #5: 0x00007fff68ad3415 libsystem_pthread.dylib`thread_start + 13 thread #8, name =3D 'com.apple.NSEventThread' frame #0: 0x00007fff68a1a17a libsystem_kernel.dylib`mach_msg_trap + 10 frame #1: 0x00007fff68a1a6d0 libsystem_kernel.dylib`mach_msg + 60 frame #2: 0x00007fff3b5f7158 CoreFoundation`__CFRunLoopServiceMachPort = + 336 frame #3: 0x00007fff3b5f66a6 CoreFoundation`__CFRunLoopRun + 1661 frame #4: 0x00007fff3b5f5dd6 CoreFoundation`CFRunLoopRunSpecific + 467 frame #5: 0x00007fff38b42f89 AppKit`_NSEventThread + 160 frame #6: 0x00007fff68ad4305 libsystem_pthread.dylib`_pthread_body + 12= 6 frame #7: 0x00007fff68ad726f libsystem_pthread.dylib`_pthread_start + 7= 0 frame #8: 0x00007fff68ad3415 libsystem_pthread.dylib`thread_start + 13 Configured using: 'configure --with-ns --with-modules --with-wide-int --without-makeinfo --without-sound --without-x --without-dbus --without-gsettings --without-selinux --without-gconf --without-libotf --without-m17n-flt --disable-acl --with-file-notification=3Dkqueue --enable-checking=3Dyes,glyphs --enable-check-lisp-object-type 'CFLAGS=3D-O0 -g3' PKG_CONFIG_PATH=3D/opt/local/lib/pkgconfig:/usr/lib/pkgconfig:' Configured features: NOTIFY GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: ivy-mode: t global-company-mode: t company-mode: t dumb-jump-mode: t projectile-mode: t savehist-mode: t show-paren-mode: t delete-selection-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t shell-dirtrack-mode: t smooth-scrolling-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-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 transient-mark-mode: t Load-path shadows: /Users/.emacs.d/elpa/lv-20181110.1740/lv hides /Users/bc/.emacs.d/elpa/hydr= a-20190213.1849/lv Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra help-mode counsel xdg dired dired-loaddefs swiper ivy colir color ivy-overlay ffap elec-pair company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb company-anaconda company pcase anaconda-mode url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap pythonic python json map paradox paradox-menu paradox-commit-list hydra lv cus-edit wid-edit paradox-execute paradox-github paradox-core spinner subr-x dumb-jump popup f dash s etags xref project tramp-cache tramp-sh projectile grep compile ibuf-ext ibuffer ibuffer-loaddefs thingatpt savehist paren delsel display-line-numbers cus-start cus-load dracula-theme rx tramp tramp-compat tramp-loaddefs trampver shell pcomplete comint ansi-color ring parse-time format-spec smooth-scrolling advice finder-inf edmacro kmacro info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files 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 329036 10859) (symbols 48 31676 1) (miscs 40 64 197) (strings 32 72037 1681) (string-bytes 1 2045007) (vectors 16 51624) (vector-slots 8 894652 12280) (floats 8 263 209) (intervals 56 662 16) (buffers 992 11)) --_000_BYAPR02MB58132C354172FAFD9F089D69CF720BYAPR02MB5813namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Open any remote file over TRAMP (ssh), = click any menu:


objc[33826]: Invalid or prematurely-fre= ed autorelease pool 0x10300a208.
Process 33826 stopped
* thread #1, queue =3D 'com.apple.main-= thread', stop reason =3D signal SIGABRT
   =  frame #0: 0x00007fff68a3801e libsystem_kernel.dylib`__abort_wi= th_payload + 10
libsystem_kernel.dylib`__abort_with_pay= load:
->  0x7fff68a3801e <+10>: jae    0x7fff68a38028&nb= sp;           ; <+20>
   =  0x7fff68a38020 <+12>: movq  = ; %rax, %rdi
   =  0x7fff68a38023 <+15>: jmp  =   0x7fff6= 8a1a3b7         = ;   = ; cerror_nocancel
   =  0x7fff68a38028 <+20>: retq  = ; 
Target 0: (Emacs) stopped.


Compiled:
xcode 10.1, OSX Mojave
branch: emacs-emacs-26.1.92 =

./configure --with-ns --with-modules --= with-wide-int --without-makeinfo
--without-sound  --without-x  --without-dbus  --without-gsettings
--without-selinux --without-gconf --wit= hout-libotf --without-m17n-flt
--disable-acl --with-file-notification= =3Dkqueue
--enable-checking=3D'yes,glyphs' --enab= le-check-lisp-object-type
CFLAGS=3D'-O0 -g3'

Backtrace:

(lldb) bt all
* thread #1, queue =3D 'com.apple.main-= thread', stop reason =3D signal SIGABRT
  
* frame #0: 0x00007fff68a3801e libsystem_kernel.dylib`__abort_with_payload + 10
   =  frame #1: 0x00007fff68a33541 libsystem_kernel.dylib`abort_with= _payload_wrapper_internal + 82
   =  frame #2: 0x00007fff68a334ef libsystem_kernel.dylib`abort_with= _reason + 22
   =  frame #3: 0x00007fff6781bd3d libobjc.A.dylib`_objc_fatalv(unsi= gned long long, unsigned long long, char const*, __va_list_tag*) + 108
   =  frame #4: 0x00007fff6781bbff libobjc.A.dylib`_objc_fatal(char const*, ...) + 127
   =  frame #5: 0x00007fff6780e8a9 libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 957
   =  frame #6: 0x00007fff3b5c8f32 CoreFoundation`_CFAutoreleasePool= Pop + 22
   =  frame #7: 0x00007fff3d961c4e Foundation`-[NSAutoreleasePool release] + 144
   =  frame #8: 0x000000010048700c Emacs`ns_update_menubar(f=3D0x000= 0000104062c30, deep_p=3Dtrue, submenu=3D0x0000000000000000) at nsmenu.m:462
   =  frame #9: 0x000000010048705e Emacs`x_activate_menubar(f=3D0x00= 00000104062c30) at nsmenu.m:481
   =  frame #10: 0x00000001001e0bbd Emacs`kbd_buffer_get_event(kbp= =3D0x00007ffeefbfd8c0, used_mouse_menu=3D0x00007ffeefbfebff, end_time=3D0x0000000000000000) at ke= yboard.c:3955
   =  frame #11: 0x00000001001dfa44 Emacs`read_event_from_main_queue= (end_time=3D0x0000000000000000, local_getcjmp=3D0x00007ffeefbfe580, used_mouse_menu=3D0x00007ffeefbfebff) = at keyboard.c:2153
   =  frame #12: 0x00000001001ce0a9 Emacs`read_decoded_event_from_ma= in_queue(end_time=3D0x0000000000000000, local_getcjmp=3D0x00007ffeefbfe580, prev_event=3D(i =3D 0), used_mouse_men= u=3D0x00007ffeefbfebff) at keyboard.c:2217
   =  frame #13: 0x00000001001ca9af Emacs`read_char(commandflag=3D1, map=3D(i =3D 4382275843), prev_event=3D(i =3D 0), used_mouse_menu=3D0x0000= 7ffeefbfebff, end_time=3D0x0000000000000000) at keyboard.c:2808
   =  frame #14: 0x00000001001c3d6a Emacs`read_key_sequence(keybuf= =3D0x00007ffeefbff210, bufsize=3D30, prompt=3D(i =3D 0), dont_downcase_last=3Dfalse, can_return_s= witch_frame=3Dtrue, fix_current_buffer=3Dtrue, prevent_redisplay=3Dfalse) a= t keyboard.c:9157
   =  frame #15: 0x00000001001c23b6 Emacs`command_loop_1 at keyboard.c:1368
   =  frame #16: 0x00000001002fd9cf Emacs`internal_condition_case(bf= un=3D(Emacs`command_loop_1 at keyboard.c:1259), handlers=3D(i =3D 18720), hfun=3D(Emacs`cmd_error at = keyboard.c:938)) at eval.c:1336
   =  frame #17: 0x00000001001def21 Emacs`command_loop_2(ignore=3D(i =3D 0)) at keyboard.c:1110
   =  frame #18: 0x00000001002fcbc8 Emacs`internal_catch(tag=3D(i =3D 48048), func=3D(Emacs`command_loop_2 at keyboard.c:1106), arg=3D(i =3D= 0)) at eval.c:1101
   =  frame #19: 0x00000001001c0f3d Emacs`command_loop at keyboard.c:1089
   =  frame #20: 0x00000001001c0d57 Emacs`recursive_edit_1 at keyboard.c:695
   =  frame #21: 0x00000001001c118a Emacs`Frecursive_edit at keyboard.c:766
   =  frame #22: 0x00000001001be7d1 Emacs`main(argc=3D1, argv=3D0x00007ffeefbff988) at emacs.c:1717
   =  frame #23: 0x00007fff688e0ed9 libdyld.dylib`start + 1
   =  frame #24: 0x00007fff688e0ed9 libdyld.dylib`start + 1
  thread #5
   =  frame #0: 0x00007fff68a1bb6a libsystem_kernel.dylib`__workq_ke= rnreturn + 10
   =  frame #1: 0x00000000000186a6
   =  frame #2: 0x00007fff68ad3405 libsystem_pthread.dylib`start_wqt= hread + 13
  thread #6
   =  frame #0: 0x00007fff68a1bb6a libsystem_kernel.dylib`__workq_ke= rnreturn + 10
   =  frame #1: 0x00007fff68ad3630 libsystem_pthread.dylib`_pthread_= wqthread + 446
   =  frame #2: 0x00007fff68ad3405 libsystem_pthread.dylib`start_wqt= hread + 13
  thread #7
   =  frame #0: 0x00007fff68a215aa libsystem_kernel.dylib`__select + 10
   =  frame #1: 0x0000000100457cad Emacs`-[EmacsApp fd_handler:](self=3D0x000000010306ea00, _cmd=3D"fd_handler:", un= used=3D0x0000000000000000) at nsterm.m:5851
   =  frame #2: 0x00007fff3d970104 Foundation`__NSThread__start__ + 1218
   =  frame #3: 0x00007fff68ad4305 libsystem_pthread.dylib`_pthread_= body + 126
   =  frame #4: 0x00007fff68ad726f libsystem_pthread.dylib`_pthread_= start + 70
   =  frame #5: 0x00007fff68ad3415 libsystem_pthread.dylib`thread_st= art + 13
  thread #8, name =3D 'com.apple.NSEventThread'
   =  frame #0: 0x00007fff68a1a17a libsystem_kernel.dylib`mach_msg_t= rap + 10
   =  frame #1: 0x00007fff68a1a6d0 libsystem_kernel.dylib`mach_msg + 60
   =  frame #2: 0x00007fff3b5f7158 CoreFoundation`__CFRunLoopService= MachPort + 336
   =  frame #3: 0x00007fff3b5f66a6 CoreFoundation`__CFRunLoopRun + 1661
   =  frame #4: 0x00007fff3b5f5dd6 CoreFoundation`CFRunLoopRunSpecif= ic + 467
   =  frame #5: 0x00007fff38b42f89 AppKit`_NSEventThread + 160
   =  frame #6: 0x00007fff68ad4305 libsystem_pthread.dylib`_pthread_= body + 126
   =  frame #7: 0x00007fff68ad726f libsystem_pthread.dylib`_pthread_= start + 70
   =  frame #8: 0x00007fff68ad3415 libsystem_pthread.dylib`thread_st= art + 13


Configured using:
'configure --with-ns --with-modules --w= ith-wide-int --without-makeinfo
--without-sound --without-x --without-d= bus --without-gsettings
--without-selinux --without-gconf --wit= hout-libotf --without-m17n-flt
--disable-acl --with-file-notification= =3Dkqueue
--enable-checking=3Dyes,glyphs --enable= -check-lisp-object-type
'CFLAGS=3D-O0 -g3'
PKG_CONFIG_PATH=3D/opt/local/lib/pkgcon= fig:/usr/lib/pkgconfig:'

Configured features:
NOTIFY GNUTLS LIBXML2 ZLIB TOOLKIT_SCRO= LL_BARS NS MODULES THREADS

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction
Minor modes in effect:
  ivy-mode: t
  global-company-mode: t
  company-mode: t
  dumb-jump-mode: t
  projectile-mode: t
  savehist-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  global-display-line-numbers-mode: t
  display-line-numbers-mode: t
  shell-dirtrack-mode: t
  smooth-scrolling-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-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
  transient-mark-mode: t

Load-path shadows:
/Users/.emacs.d/elpa/lv-20181110.1740/l= v hides /Users/bc/.emacs.d/elpa/hydra-20190213.1849/lv

Features:
(shadow sort mail-extr emacsbug message= rmc puny rfc822 mml mml-sec epa
derived epg gnus-util rmail rmail-loadd= efs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils= mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr m= ail-utils cl-extra help-mode
counsel xdg dired dired-loaddefs swiper= ivy colir color ivy-overlay ffap
elec-pair company-oddmuse company-keywo= rds company-etags company-gtags
company-dabbrev-code company-dabbrev co= mpany-files company-capf
company-cmake company-xcode company-cla= ng company-semantic company-eclim
company-template company-bbdb company-a= naconda company pcase
anaconda-mode url url-proxy url-privacy= url-expand url-methods
url-history url-cookie url-domsuf url-u= til mailcap pythonic python json
map paradox paradox-menu paradox-commit= -list hydra lv cus-edit wid-edit
paradox-execute paradox-github paradox-= core spinner subr-x dumb-jump
popup f dash s etags xref project tramp= -cache tramp-sh projectile grep
compile ibuf-ext ibuffer ibuffer-loadde= fs thingatpt savehist paren
delsel display-line-numbers cus-start c= us-load dracula-theme rx tramp
tramp-compat tramp-loaddefs trampver sh= ell pcomplete comint ansi-color
ring parse-time format-spec smooth-scro= lling advice finder-inf edmacro
kmacro info package easymenu epg-config= url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-= macs eieio-loaddefs
password-cache url-vars seq byte-opt gv= bytecomp byte-compile cconv
cl-loaddefs cl-lib time-date tooltip el= doc electric uniquify ediff-hook
vc-hooks lisp-float-type 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 elisp-mode lisp-mode
prog-mode register page menu-bar rfn-es= hadow isearch timer select
scroll-bar mouse jit-lock font-lock syn= tax facemenu font-core
term/tty-colors frame cl-generic cham g= eorgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao ko= rean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech euro= pean ethiopic indian cyrillic
chinese composite charscript charprop c= ase-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer c= l-preloaded nadvice loaddefs
button faces cus-face macroexp files te= xt-properties overlay sha1 md5
base64 format env code-pages mule custo= m widget hashtable-print-readable
backquote threads kqueue cocoa ns multi= -tty make-network-process emacs)

Memory information:
((conses 16 329036 10859)
(symbols 48 31676 1)
(miscs 40 64 197)
(strings 32 72037 1681)
(string-bytes 1 2045007)
(vectors 16 51624)
(vector-slots 8 894652 12280) (floats 8 263 209)
(intervals 56 662 16)
(buffers 992 11))
--_000_BYAPR02MB58132C354172FAFD9F089D69CF720BYAPR02MB5813namp_-- From unknown Fri Aug 08 15:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0.) Resent-From: Caroptions Caroptions Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Mar 2019 20:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "34762@debbugs.gnu.org" <34762@debbugs.gnu.org> Received: via spool by 34762-submit@debbugs.gnu.org id=B34762.155268346310709 (code B ref 34762); Fri, 15 Mar 2019 20:58:01 +0000 Received: (at 34762) by debbugs.gnu.org; 15 Mar 2019 20:57:43 +0000 Received: from localhost ([127.0.0.1]:45543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4ttf-0002mf-Cd for submit@debbugs.gnu.org; Fri, 15 Mar 2019 16:57:43 -0400 Received: from mail-oln040092014043.outbound.protection.outlook.com ([40.92.14.43]:5857 helo=NAM05-DM3-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4trw-0002jZ-1H for 34762@debbugs.gnu.org; Fri, 15 Mar 2019 16:55:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Exs/CnaM9zR07t5QTT1BUvj614n7RD33wSDRSqaNNHM=; b=nVAJX1BvhpN/cut+RM/zhyinKBqBW4e7EndX10uH6TgBr5nDTPI9522fsSK5MzLCTxMeHc+SQbo95PBqXhoReusdN4cJg7TeDBhVqE0tVc0DRnvaJJcLhIgaCsxee/Ge8kOrXhtMKczXiqJLdtrmdiPP8DDW2TwWXA+rXl5bXkVeMmCfenVtuh+rlYQDGX3y38tNpDDFM4dnYljmBCQB/+ZYQEMgVFGa1Hf2SYp4xvArYUN35LbN/vRDbI/KZbPedECaSrFmlaCDgsIu70z+YfOqr6MSsqSS1d0JYTFgO2gb4lpIbkKOW4vlJtOXu838NnK7trrtl1NAf+KjXfTLzQ== Received: from CO1NAM05FT037.eop-nam05.prod.protection.outlook.com (10.152.96.57) by CO1NAM05HT219.eop-nam05.prod.protection.outlook.com (10.152.97.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1730.2; Fri, 15 Mar 2019 20:55:49 +0000 Received: from BYAPR02MB5813.namprd02.prod.outlook.com (10.152.96.55) by CO1NAM05FT037.mail.protection.outlook.com (10.152.96.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1730.2 via Frontend Transport; Fri, 15 Mar 2019 20:55:49 +0000 Received: from BYAPR02MB5813.namprd02.prod.outlook.com ([fe80::806e:6677:8bad:190f]) by BYAPR02MB5813.namprd02.prod.outlook.com ([fe80::806e:6677:8bad:190f%4]) with mapi id 15.20.1709.011; Fri, 15 Mar 2019 20:55:49 +0000 From: Caroptions Caroptions Thread-Topic: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0.) Thread-Index: AQHU05jHmtO3RUIP8063BjsGvEKV56YNOlCV Date: Fri, 15 Mar 2019 20:55:49 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:DACF750B5CB82B5D37BD90EA90922D5DFE7776CD3658F2A5FB88163B10C16F36; UpperCasedChecksum:8F4E64A461B87B6B68B4469BCEFFF7EAEE56163F081A2DC1E0FACF2B14DFE379; SizeAsReceived:7024; Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [QR0sreD3mNq/p1murbxFdErEDKnqJnAs] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031322404)(2017031323274)(1601125500)(1603101475)(1701031045); SRVR:CO1NAM05HT219; x-ms-traffictypediagnostic: CO1NAM05HT219: x-microsoft-antispam-message-info: XIkgXH5EMenCwpSJYRmZd43+kG5L2z8PToktmys/Wxdkj2eea/GLq+pziw7IMVG8 Content-Type: multipart/alternative; boundary="_000_BYAPR02MB581356DB1B6D79AF88FC3A89CF440BYAPR02MB5813namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: b35c68fa-6944-4526-e5d9-08d6a9889a6e X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2019 20:55:49.0318 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM05HT219 X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Fri, 15 Mar 2019 16:57:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --_000_BYAPR02MB581356DB1B6D79AF88FC3A89CF440BYAPR02MB5813namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The bug reproduced on any compiled emacs. 26.1.92 has it, latest master branch has it... Do not understand why nobody= else hit it as yet .. I think the problem somehow related to NSAutoreleasePool and pthreads : htt= ps://kenji.sx/posts/nsautoreleasepooldebian Thanks, Caroptions ________________________________ From: GNU bug Tracking System Sent: Tuesday, March 5, 2019 1:17 PM To: Caroptions Caroptions Subject: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prema= turely-freed autorelease pool 0x1040021e0.) Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@gnu.org If you wish to submit further information on this problem, please send it to 34762@debbugs.gnu.org. Please do not send mail to help-debbugs@gnu.org unless you wish to report a problem with the Bug-tracking system. -- 34762: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34762 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems --_000_BYAPR02MB581356DB1B6D79AF88FC3A89CF440BYAPR02MB5813namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
The bug reproduced on any compiled emacs.

26.1.92 has it, latest ma= ster branch has it... Do not understand why nobody else hit it as yet ..

I think the problem someh= ow related to NSAutoreleasePool and pthreads : https://kenji.sx/posts/nsautoreleasepooldebian

Thanks,
Caroptions  


From: GNU bug Tracking Syst= em <help-debbugs@gnu.org>
Sent: Tuesday, March 5, 2019 1:17 PM
To: Caroptions Caroptions
Subject: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid o= r prematurely-freed autorelease pool 0x1040021e0.)
 
Thank you for filing a new bug report with debbugs= .gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@gnu.org

If you wish to submit further information on this problem, please
send it to 34762@debbugs.gnu.org.

Please do not send mail to help-debbugs@gnu.org unless you wish
to report a problem with the Bug-tracking system.

--
34762: htt= p://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34762
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--_000_BYAPR02MB581356DB1B6D79AF88FC3A89CF440BYAPR02MB5813namp_-- From unknown Fri Aug 08 15:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0.) Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Mar 2019 12:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Caroptions Caroptions Cc: "34762@debbugs.gnu.org" <34762@debbugs.gnu.org> Received: via spool by 34762-submit@debbugs.gnu.org id=B34762.155291097827456 (code B ref 34762); Mon, 18 Mar 2019 12:10:01 +0000 Received: (at 34762) by debbugs.gnu.org; 18 Mar 2019 12:09:38 +0000 Received: from localhost ([127.0.0.1]:48168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h5r5F-00078m-Kr for submit@debbugs.gnu.org; Mon, 18 Mar 2019 08:09:37 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:40297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h5r5D-00078Z-Ig for 34762@debbugs.gnu.org; Mon, 18 Mar 2019 08:09:36 -0400 Received: by mail-wr1-f45.google.com with SMTP id t5so16754410wri.7 for <34762@debbugs.gnu.org>; Mon, 18 Mar 2019 05:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=pytFlV8AxNy3D4X5m2UM0ojoz+YtkRZKjnCHUD7bGmk=; b=W1l0Zy8bGDL3muqFI+bc/u1T/PRgwToRgfrpbWaQ6ihty/pSvztwZ+FSLzwDV+rjqL U+zmfJq0NuYpYNqV7MRPjwYdDe+LdBpAneJZncVDpeYRX9uOzLBS6EgINaX9kPYIo/n+ QqFGL9SLk6ZX+PxFmeKmNeLWuQ7nwY9C/CuMkJm+XPfxERwGFlXTCmj1DCpNRra/ijsG vozymsNS/gBk+nlk87LLLeYPDgRkY0XIiqAxCWiaHlBZAQlBs8t9JVLdkFcr2WF2U3Zt BXASunSUKeyMSgwCSulhFkqH5hOYWe57P+XlZPWnQRsI1aMDueiFYtbv4ux9JWVB5PuA zxyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=pytFlV8AxNy3D4X5m2UM0ojoz+YtkRZKjnCHUD7bGmk=; b=BkGtj2Tw0iiDbetIhlXWzVX6ETTkKOTaHr9sFe+oaJOmr0uXYBPITDi+sjNMtm5Tb+ kCc+mjj+wx0GiXMVP+EsK/TyXjno0/63cU/qOHqG3fTwbXaFKG2oazFXSbzeT0dlegsJ /va0+chmS61JZH1PAtmhR42Oe7pOPlnm2ohzvw+pIPBnBDASccu6nKSPo1DiDNafbbJV www9VJtqyyCdKrgrhA8Xx6SWev59k6PdxyaoA/zGeTxWnyjXiNQZ6Lr8sQCF+YLr9y9M zlNXI8Q3jR7RHB4JIMK9Y1+P7CycUfopX91maVI1tIdfnTY17ZQFKKQtEkhjLmwv2sDJ 3/vQ== X-Gm-Message-State: APjAAAUuhSBOQlevAeM+994l0SiyzBd29ECglZT4L9d8ini8WASmSBZS 6W0Lfx19tQEHH7VcsoY6M28= X-Google-Smtp-Source: APXvYqylaergnw0kp8gAZRvPHny27Or5yf1xhZKbBik0hr4cI+LiE2PfcslPIurjDJ4xYCzSBy3Mtg== X-Received: by 2002:adf:a382:: with SMTP id l2mr11584704wrb.79.1552910969851; Mon, 18 Mar 2019 05:09:29 -0700 (PDT) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-7c11-70e6-2f9b-8d87.holly.idiocy.org. [2001:8b0:3f8:8129:7c11:70e6:2f9b:8d87]) by smtp.gmail.com with ESMTPSA id n13sm8211788wrw.67.2019.03.18.05.09.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Mar 2019 05:09:28 -0700 (PDT) Date: Mon, 18 Mar 2019 12:09:26 +0000 From: Alan Third Message-ID: <20190318120926.GA44536@breton.holly.idiocy.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Fri, Mar 15, 2019 at 08:55:49PM +0000, Caroptions Caroptions wrote: > The bug reproduced on any compiled emacs. > > 26.1.92 has it, latest master branch has it... Do not understand why > nobody else hit it as yet .. > > I think the problem somehow related to NSAutoreleasePool and > pthreads : https://kenji.sx/posts/nsautoreleasepooldebian Hi, thanks for reporting this. I didn’t get the previous email for some reason, so I missed it. This is an odd one. I don’t think it has anything to do with pthreads, but I don’t really understand what’s going on. My best guess is that somehow the autorelease pools are being drained out of order. I don’t know why using tramp would cause that to happen. One solution would be to remove the pool from ns_update_menubar completely, but I assume it’s there for a good reason. -- Alan Third From unknown Fri Aug 08 15:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0.) Resent-From: Caroptions Caroptions Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Mar 2019 23:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "34762@debbugs.gnu.org" <34762@debbugs.gnu.org> Received: via spool by 34762-submit@debbugs.gnu.org id=B34762.15529516274593 (code B ref 34762); Mon, 18 Mar 2019 23:28:01 +0000 Received: (at 34762) by debbugs.gnu.org; 18 Mar 2019 23:27:07 +0000 Received: from localhost ([127.0.0.1]:49357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h61es-0001C0-K3 for submit@debbugs.gnu.org; Mon, 18 Mar 2019 19:27:07 -0400 Received: from mail-oln040092002038.outbound.protection.outlook.com ([40.92.2.38]:31168 helo=NAM01-SN1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h61ep-0001BV-I1 for 34762@debbugs.gnu.org; Mon, 18 Mar 2019 19:27:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d9SkFYPXxyaKrBk9FtJN11K2ixTvAH8I5YZaJByrhlI=; b=jTt84hMx1+SY9g5ToVVDqznf03CaS06gynSm9hb/PHoq75rBScZ2tBTPXQhyXbejsYmnItNIWdz27N2UICJ6zzfSSltPLkwlpNPW1qnWLAPdr37Anyk55PheJuDPjRDplzHMFmuBBiBC5yzK5gsaJ29ir49pCa9iR4lgjbrZl2Ulah6OFsdadHvEh88a7Yx9dmdJlMbAGGeA+cX1aNmi48vyaurD7u+EQWDdc1dj1HLfOfn//IN464klOeNsfXzxoNXFLZap6cSghTWHzqKcWkcmtYbE7bVszlmQTjm32CiGUxxQfG3yQ8zBTRemzJU22zx6gelXgYgQib33ol16Tw== Received: from SN1NAM01FT034.eop-nam01.prod.protection.outlook.com (10.152.64.60) by SN1NAM01HT037.eop-nam01.prod.protection.outlook.com (10.152.65.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1730.9; Mon, 18 Mar 2019 23:26:53 +0000 Received: from BYAPR02MB5813.namprd02.prod.outlook.com (10.152.64.58) by SN1NAM01FT034.mail.protection.outlook.com (10.152.64.194) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1730.9 via Frontend Transport; Mon, 18 Mar 2019 23:26:53 +0000 Received: from BYAPR02MB5813.namprd02.prod.outlook.com ([fe80::806e:6677:8bad:190f]) by BYAPR02MB5813.namprd02.prod.outlook.com ([fe80::806e:6677:8bad:190f%4]) with mapi id 15.20.1709.015; Mon, 18 Mar 2019 23:26:53 +0000 From: Caroptions Caroptions Thread-Topic: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0.) Thread-Index: AQHU05jHmtO3RUIP8063BjsGvEKV56YNOlCVgAQlWgCAAL0qXw== Date: Mon, 18 Mar 2019 23:26:53 +0000 Message-ID: References: , <20190318120926.GA44536@breton.holly.idiocy.org> In-Reply-To: <20190318120926.GA44536@breton.holly.idiocy.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:7264B571C10D0AA13EFCC8E80E5F899E64BB7F1E31B55942C21F707A5AC55572; UpperCasedChecksum:927098374B08F40D17A94B0E6473CA1C605CDBF76E6454D3651B9F5CD1CADA4F; SizeAsReceived:7166; Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [nHoKvkCSNAGHUdGwdZwyLYl9i5v8o02j] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031324274)(2017031323274)(1601125500)(1603101475)(1701031045); SRVR:SN1NAM01HT037; x-ms-traffictypediagnostic: SN1NAM01HT037: x-microsoft-antispam-message-info: Tfew0pmJ+nhbKhf9SAyYPpStK6iayCIQNMFuVbXpS4ImqXDg7PvZwO6GWuU4U2ix Content-Type: multipart/alternative; boundary="_000_BYAPR02MB581341AE96E751B6E8A27052CF470BYAPR02MB5813namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 06d9d435-bb0e-46e8-8d63-08d6abf9344c X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Mar 2019 23:26:53.1151 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM01HT037 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --_000_BYAPR02MB581341AE96E751B6E8A27052CF470BYAPR02MB5813namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Thank you for coming back on this! I agree it is very odd, otherwise many p= eople would experience it.. What I did, I have commented out: /* set main menu */ if (needsSet) [NSApp setMainMenu: menu]; // [pool release]; unblock_input (); } as expected it start working fine, but not sure if it leads to memory leak = .. Also If run debug in Xcode and do step by step debugging Emacs hang this ca= ll: /* FIXME: we'd like to only parse the needed submenu, but this was causing crashes in the _common parsing code.. need to ma= ke sure proper initialization done.. */ /* if (submenu && strcmp ([[submenu title] UTF8String], SSDATA (stri= ng))) continue; */ submenu_start[i] =3D menu_items_used; menu_items_n_panes =3D 0; *hang*--> submenu_top_level_items[i] =3D parse_single_submenu (key, strin= g, maps); submenu_n_panes[i] =3D menu_items_n_panes; submenu_end[i] =3D menu_items_used; n++; 1. In my understanding TRAMP to work with remote files starts separate t= hread and this thread prematurely release pool. 2. Another "theory" remote operations is naturally longer and file read/= write much longer after 64 encode/decode, network transfer, opening local t= emp file and this lead to race conditions? 3. Or tramp include new menu item, which outside of standard event loop? Anyway I am ready to troubleshoot and apply any patches/check code if neede= d. Thanks, Caroptions ________________________________ From: Alan Third on behalf of Alan Third Sent: Monday, March 18, 2019 5:09 AM To: Caroptions Caroptions Cc: 34762@debbugs.gnu.org Subject: Re: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or p= rematurely-freed autorelease pool 0x1040021e0.) On Fri, Mar 15, 2019 at 08:55:49PM +0000, Caroptions Caroptions wrote: > The bug reproduced on any compiled emacs. > > 26.1.92 has it, latest master branch has it... Do not understand why > nobody else hit it as yet .. > > I think the problem somehow related to NSAutoreleasePool and > pthreads : https://kenji.sx/posts/nsautoreleasepooldebian Hi, thanks for reporting this. I didn=92t get the previous email for some reason, so I missed it. This is an odd one. I don=92t think it has anything to do with pthreads, but I don=92t really understand what=92s going on. My best guess is that somehow the autorelease pools are being drained out of order. I don=92t know why using tramp would cause that to happen. One solution would be to remove the pool from ns_update_menubar completely, but I assume it=92s there for a good reason. -- Alan Third --_000_BYAPR02MB581341AE96E751B6E8A27052CF470BYAPR02MB5813namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Thank you for coming back on this! I agree it is very odd, otherwise m= any people would experience it..

What I did, I have commented out:

  if (= needsSet)

    [NSApp s= etMainMenu: menu];


  unblock_input (= );


}


as expected it start working fine, but not sure if it leads to memory leak = ..

Also If run debug in Xcode and do step by step debugging Emacs hang this ca= ll:


           &nb= sp;   was causing crashes in the _common pars= ing code.. need to make

           &nb= sp;   sure proper initialization done.. */

/*        if (submenu && strcmp ([[submenu title] UTF8String], SSD= ATA (string)))

           &nb= sp; continue; */


 =  submenu_start[i] =3D menu_items_used;


 =  menu_items_n_panes =3D 0;

  *hang*-->=  submenu_top_level_items[i] =3D parse_single_submenu (key, string,= maps);

 =  submenu_n_panes[i] =3D menu_items_n_panes;

 =  submenu_end[i] =3D menu_items_used;

          <= /span>n++;


  1. I= n my understanding TRAMP to work with remote files starts separate thread a= nd this thread prematurely release pool.
  2. Another "theory&quo= t; remote operations is naturally longer and file read/write much longer af= ter 64 encode/decode, network transfer, opening local temp file and this lead to race conditions?=
  3. Or tramp include new menu item, which outside of standard event loop?<= /span>

Anyway I am ready to troubleshoot and apply any patches/check code if neede= d.

Thanks,
Caroptions



From: Alan Third <athird= @googlemail.com> on behalf of Alan Third <alan@idiocy.org>
Sent: Monday, March 18, 2019 5:09 AM
To: Caroptions Caroptions
Cc: 34762@debbugs.gnu.org
Subject: Re: bug#34762: Acknowledgement (26.1.92; objc[27300]: Inval= id or prematurely-freed autorelease pool 0x1040021e0.)
 
On Fri, Mar 15, 2019 at 08:55:49PM +0000, Caro= ptions Caroptions wrote:
> The bug reproduced on any compiled emacs.
>
> 26.1.92 has it, latest master branch has it... Do not understand why > nobody else hit it as yet ..
>
> I think the problem somehow related to NSAutoreleasePool and
> pthreads : = https://kenji.sx/posts/nsautoreleasepooldebian

Hi, thanks for reporting this. I didn=92t get the previous email for
some reason, so I missed it.

This is an odd one. I don=92t think it has anything to do with pthreads, but I don=92t really understand what=92s going on. My best guess is that somehow the autorelease pools are being drained out of order. I don=92t
know why using tramp would cause that to happen.

One solution would be to remove the pool from ns_update_menubar
completely, but I assume it=92s there for a good reason.
--
Alan Third
--_000_BYAPR02MB581341AE96E751B6E8A27052CF470BYAPR02MB5813namp_-- From unknown Fri Aug 08 15:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0.) References: In-Reply-To: Resent-From: Fan Yang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2019 07:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 34762@debbugs.gnu.org Received: via spool by 34762-submit@debbugs.gnu.org id=B34762.15764818755495 (code B ref 34762); Mon, 16 Dec 2019 07:38:01 +0000 Received: (at 34762) by debbugs.gnu.org; 16 Dec 2019 07:37:55 +0000 Received: from localhost ([127.0.0.1]:37691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igkx0-0001QZ-Qr for submit@debbugs.gnu.org; Mon, 16 Dec 2019 02:37:55 -0500 Received: from smtp180.sjtu.edu.cn ([202.120.2.180]:49632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igkww-0001QH-QM for 34762@debbugs.gnu.org; Mon, 16 Dec 2019 02:37:54 -0500 Received: from proxy01.sjtu.edu.cn (unknown [202.112.26.54]) by smtp180.sjtu.edu.cn (Postfix) with ESMTPS id 346C1100C7040 for <34762@debbugs.gnu.org>; Mon, 16 Dec 2019 15:37:42 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by proxy01.sjtu.edu.cn (Postfix) with ESMTP id 2AE8A200F5A11 for <34762@debbugs.gnu.org>; Mon, 16 Dec 2019 15:37:42 +0800 (CST) X-Virus-Scanned: amavisd-new at proxy01.sjtu.edu.cn Received: from proxy01.sjtu.edu.cn ([127.0.0.1]) by localhost (proxy01.sjtu.edu.cn [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id O0HTjL3-FLqk for <34762@debbugs.gnu.org>; Mon, 16 Dec 2019 15:37:42 +0800 (CST) Received: from fans-air.ipads-lab.se.sjtu.edu.cn (unknown [202.120.40.82]) (Authenticated sender: Fan_Yang@sjtu.edu.cn) by proxy01.sjtu.edu.cn (Postfix) with ESMTPSA id 089DC20066ABA for <34762@debbugs.gnu.org>; Mon, 16 Dec 2019 15:37:41 +0800 (CST) From: Fan Yang Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Message-Id: <810DFA43-ED42-4746-8D12-E9F73F773FD9@sjtu.edu.cn> Date: Mon, 16 Dec 2019 15:37:40 +0800 X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I met this bug too. I triggered this bug when I was clicking an YASnippet menu while editing a remove (TRAMP) file via scp. Information: - Emacs: at commit 9ee5af315098245d9f58eb5562dca6997cab4426 Dec 14, 2019. Built by =?UTF-8?Q?=E2=80=9C./configure?= CPPFLAGS="-I/usr/local/opt/libxml2/include/libxml2/" LDFLAGS="-L/usr/local/opt/libxml2/lib" --with-ns [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [202.120.2.180 listed in list.dnswl.org] 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [202.120.40.82 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [202.120.2.180 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) I met this bug too. I triggered this bug when I was clicking an = YASnippet menu while editing a remove (TRAMP) file via scp. Information: - Emacs: at commit 9ee5af315098245d9f58eb5562dca6997cab4426 Dec 14, = 2019. Built by =E2=80=9C./configure = CPPFLAGS=3D"-I/usr/local/opt/libxml2/include/libxml2/" = LDFLAGS=3D"-L/usr/local/opt/libxml2/lib" --with-ns && make && make = install=E2=80=9D - macOS Catalina 10.15.2 Backtrace: (lldb) target create "/Applications/Emacs.app/Contents/MacOS/Emacs" Current executable set to '/Applications/Emacs.app/Contents/MacOS/Emacs' = (x86_64). (lldb) r Process 3309 launched: '/Applications/Emacs.app/Contents/MacOS/Emacs' = (x86_64) 2019-12-16 15:16:31.392937+0800 Emacs[3309:113095] Failed to initialize = color list unarchiver: Error Domain=3DNSCocoaErrorDomain Code=3D4864 = "*** -[NSKeyedUnarchiver = _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive = cannot be decoded by NSKeyedUnarchiver" UserInfo=3D{NSDebugDescription=3D*= ** -[NSKeyedUnarchiver = _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive = cannot be decoded by NSKeyedUnarchiver} 2019-12-16 15:16:31.405997+0800 Emacs[3309:113095] = SecTaskLoadEntitlements failed error=3D22 cs_flags=3D20, pid=3D3309 2019-12-16 15:16:31.406126+0800 Emacs[3309:113095] = SecTaskCopyDebugDescription: Emacs[3309]/0#-1 LF=3D0 objc[3309]: Invalid or prematurely-freed autorelease pool 0x1020031e0. Process 3309 stopped * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D signal = SIGABRT frame #0: 0x00007fff67bb0bea = libsystem_kernel.dylib`__abort_with_payload + 10 libsystem_kernel.dylib`__abort_with_payload: -> 0x7fff67bb0bea <+10>: jae 0x7fff67bb0bf4 ; <+20> 0x7fff67bb0bec <+12>: movq %rax, %rdi 0x7fff67bb0bef <+15>: jmp 0x7fff67b91a89 ; = cerror_nocancel 0x7fff67bb0bf4 <+20>: retq =20 Target 0: (Emacs) stopped. (lldb) bt * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D signal = SIGABRT * frame #0: 0x00007fff67bb0bea = libsystem_kernel.dylib`__abort_with_payload + 10 frame #1: 0x00007fff67bb24f3 = libsystem_kernel.dylib`abort_with_payload_wrapper_internal + 80 frame #2: 0x00007fff67bb24a3 = libsystem_kernel.dylib`abort_with_reason + 19 frame #3: 0x00007fff666f2c1b libobjc.A.dylib`_objc_fatalv(unsigned = long long, unsigned long long, char const*, __va_list_tag*) + 114 frame #4: 0x00007fff666f2ba9 libobjc.A.dylib`_objc_fatal(char = const*, ...) + 135 frame #5: 0x00007fff666f3741 = libobjc.A.dylib`AutoreleasePoolPage::badPop(void*) + 139 frame #6: 0x00007fff303b2eb5 CoreFoundation`_CFAutoreleasePoolPop + = 22 frame #7: 0x00007fff32a54e95 Foundation`-[NSAutoreleasePool release] = + 129 frame #8: 0x00000001001e984e = Emacs`ns_update_menubar(f=3D0x0000000102834030, deep_p=3D, = submenu=3D0x0000000000000000) at nsmenu.m:0 [opt] frame #9: 0x00000001001e988e = Emacs`ns_activate_menubar(f=3D) at nsmenu.m:476:3 [opt] frame #10: 0x00000001000c7c3e Emacs`read_char at keyboard.c:3910:6 = [opt] frame #11: 0x00000001000c7500 Emacs`read_char [inlined] = read_event_from_main_queue(end_time=3D0x0000000000000000, = local_getcjmp=3D0x0000000103a154a0, used_mouse_menu=3D0x00007ffeefbff47b) = at keyboard.c:2151 [opt] frame #12: 0x00000001000c73de Emacs`read_char at keyboard.c:2215 = [opt] frame #13: 0x00000001000c73de Emacs`read_char(commandflag=3D1, = map=3D0x0000000102aa65a3, prev_event=3D0x0000000000000000, = used_mouse_menu=3D0x00007ffeefbff47b, end_time=3D0x0000000000000000) at = keyboard.c:2825 [opt] frame #14: 0x00000001000c3e1a = Emacs`read_key_sequence(keybuf=3D, = prompt=3D0x0000000000000000, dont_downcase_last=3D, = can_return_switch_frame=3D, = fix_current_buffer=3D, prevent_redisplay=3D) = at keyboard.c:9536:12 [opt] frame #15: 0x00000001000c261c Emacs`command_loop_1 at = keyboard.c:1345:15 [opt] frame #16: 0x00000001001493b7 = Emacs`internal_condition_case(bfun=3D(Emacs`command_loop_1 at = keyboard.c:1236), handlers=3D0x0000000000000090, hfun=3D(Emacs`cmd_error = at keyboard.c:919)) at eval.c:1355:25 [opt] frame #17: 0x00000001000d26d0 = Emacs`command_loop_2(ignore=3D) at keyboard.c:1091:11 [opt] frame #18: 0x0000000100148bcb = Emacs`internal_catch(tag=3D0x000000000000c4b0, = func=3D(Emacs`command_loop_2 at keyboard.c:1087), = arg=3D0x0000000000000000) at eval.c:1116:25 [opt] frame #19: 0x00000001002071d5 Emacs`command_loop.cold.1 + 69 frame #20: 0x00000001000c1703 Emacs`command_loop at = keyboard.c:1069:2 [opt] frame #21: 0x00000001000c1633 Emacs`recursive_edit_1 at = keyboard.c:714:9 [opt] frame #22: 0x00000001000c188b Emacs`Frecursive_edit at = keyboard.c:786:3 [opt] frame #23: 0x00000001000c046c Emacs`main(argc=3D, = argv=3D0x00007ffeefbff918) at emacs.c:2054:3 [opt] frame #24: 0x00007fff67a507fd libdyld.dylib`start + 1 frame #25: 0x00007fff67a507fd libdyld.dylib`start + 1= From unknown Fri Aug 08 15:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0.) References: In-Reply-To: Resent-From: Win Treese Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Sep 2020 01:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 34762@debbugs.gnu.org Received: via spool by 34762-submit@debbugs.gnu.org id=B34762.15991839073491 (code B ref 34762); Fri, 04 Sep 2020 01:46:01 +0000 Received: (at 34762) by debbugs.gnu.org; 4 Sep 2020 01:45:07 +0000 Received: from localhost ([127.0.0.1]:36627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kE0mo-0000uE-De for submit@debbugs.gnu.org; Thu, 03 Sep 2020 21:45:06 -0400 Received: from forward3-smtp.messagingengine.com ([66.111.4.237]:35163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kE0mm-0000tO-2L for 34762@debbugs.gnu.org; Thu, 03 Sep 2020 21:45:04 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailforward.nyi.internal (Postfix) with ESMTP id BB98819402A8 for <34762@debbugs.gnu.org>; Thu, 3 Sep 2020 21:44:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 03 Sep 2020 21:44:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=4jtwcbXRKj8pg2kaJr2J4v0ms9MX2 AJbHWrKBUegWJk=; b=V+KsPblF+aEl+i+CEeQYnwBm2WNr7v3Vo722sKukKm5FK PzTJNAh+4iA8jrvw0nhFQu1FeGFPB2QuYhgRNteLGbXCNCBpdR9c6l7dDUYhsx/6 r93rvrxZ8kusRoovx4vobVb6xX47gw7m4YvTsJPiLe3nKevyiBVQ9TCB7ulNYE52 GwUca81iijkW6EVyOmgmA6kS6jNDGezRH0MSzlH9G7tr1WX3HAyozIKqw9jkUwvQ b/AlxUEmyXMtOBpvYwobMQ09w1dnjzWl/cMH70EZNA/e5sQvNN0UvyvIxAgPSBz0 vPhty1mEPPhbuUf3gwN+L91L2n5s7lB+33mIGDyYA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudegvddgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhtggguffkfffvofesmhdtmherhh dtvdenucfhrhhomhephghinhcuvfhrvggvshgvuceothhrvggvshgvsegrtghmrdhorhhg qeenucggtffrrghtthgvrhhnpeevgfejgfehheetieeiteevjedtueettddtudefieefhf evheefhfettdeftdfhteenucffohhmrghinhepmhgvlhhprgdrohhrghdpghhnuhdrohhr ghdpghhithhhuhgsrdgtohhmnecukfhppedutdekrdegledrudehuddrudefleenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtrhgvvghsvges rggtmhdrohhrgh X-ME-Proxy: Received: from cirocco.treese.org (pool-108-49-151-139.bstnma.fios.verizon.net [108.49.151.139]) by mail.messagingengine.com (Postfix) with ESMTPA id 2E2FA3060057 for <34762@debbugs.gnu.org>; Thu, 3 Sep 2020 21:44:58 -0400 (EDT) From: Win Treese Content-Type: multipart/mixed; boundary="Apple-Mail=_D0B91DCC-B9BF-451B-AB18-D057566DB173" X-Mao-Original-Outgoing-Id: 620876697.464546-44ca503f7d2fbc2090159d27c254bfdb Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.15\)) Message-Id: <5E4CFA2E-BF8D-4F32-9FDA-80A004192288@acm.org> Date: Thu, 3 Sep 2020 21:44:57 -0400 X-Mailer: Apple Mail (2.3445.104.15) X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --Apple-Mail=_D0B91DCC-B9BF-451B-AB18-D057566DB173 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii [This is the first time I have submitted a patch, so please let me know = if I should do something differently.] This message includes a patch for bug#34762. I think that this is also = the problem for bug#26982, previously marked wontfix. The problem seems to be with the memory management for the EmacsMenu = object. Here's what I think is going on with memory management in = ns_update_panel: 1. The code sets up an autorelease pool at line 125 2. The only NS object allocated is an EmacsMenu at line 136 3. If that allocation happens, the new object is set as the application = main menu at line 455 So the allocated menu object lasts beyond the life of the pool. The pool seems to be pretty much irrelevant in this particular case. = Since the menu is given to the app, and might be deallocated under some = circumstances if it's passed back to ns_update_menu, it seems like = simply removing the pool code is sufficient without causing a memory = leak. I have attached a patch against Emacs head for it, although the same = patch applies to the Emacs 26 code in Aquamacs. An Aquamacs user provided a test case, with some help from the team that = does the poly-R package. I reduced the test case to a standalone piece = of elisp that can be loaded. It installs packages for demonstrating the = bug, but it does in /tmp so it doesn't interfere with actual = configuration. ;; Set up to reproduce a crash in the Mac menu code ;; Load/evaluate this file in Emacs started with -q, then click on the = menu bar. ;; This code installs some packages in a temporary user-package-dir. (if (boundp 'aquamacs-version) (setq package-user-dir "/tmp/emacs-bug-test-packages-aquamacs") (setq package-user-dir "/tmp/emacs-bug-test-packages")) (make-directory package-user-dir t) (setq package-archives '(("melpa-stable" . = "https://stable.melpa.org/packages/") ("gnu" . "https://elpa.gnu.org/packages/"))) (package-initialize) (package-refresh-contents) (dolist (pkg '(ess poly-R)) (unless (package-installed-p pkg) (package-install pkg))) (require 'poly-R) (message "Run 'M-x R', then try clicking on the menu bar") ;; End test code The crash is immediate when you click on the menu bar, and does not = happen with the patch applied. There is some chance of a memory leak if = I didn't fully understand the object lifecycles. This is also tracked as Aquamacs bug #180 on github: = https://github.com/aquamacs-emacs/aquamacs-emacs/issues/180 - Win --Apple-Mail=_D0B91DCC-B9BF-451B-AB18-D057566DB173 Content-Disposition: attachment; filename=0001-nsmenu.m.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-nsmenu.m.patch" Content-Transfer-Encoding: 7bit diff --git a/ChangeLog.3 b/ChangeLog.3 index 1a53011899..5d16bbf66b 100644 --- a/ChangeLog.3 +++ b/ChangeLog.3 @@ -1,3 +1,10 @@ +2020-09-03 Win Treese + + Fix crash from clicking on menu bar (bug#34762, bug#26982). + + * src/nsmenu.m (ns_update_menubar): Remove extraneous use of + autorelease pool. + 2020-08-03 Phil Sainty lisp/so-long.el: Improve support for major mode hooks diff --git a/src/nsmenu.m b/src/nsmenu.m index e313fc03f4..a286a80da1 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m @@ -122,7 +122,6 @@ /*fprintf (stderr, "ns_update_menubar: frame: %p\tdeep: %d\tsub: %p\n", f, deep_p, submenu); */ block_input (); - pool = [[NSAutoreleasePool alloc] init]; /* Menu may have been created automatically; if so, discard it. */ if ([menu isKindOfClass: [EmacsMenu class]] == NO) @@ -240,7 +239,6 @@ [[submenu title] UTF8String]); discard_menu_items (); unbind_to (specpdl_count, Qnil); - [pool release]; unblock_input (); return; } @@ -298,7 +296,6 @@ free_menubar_widget_value_tree (first_wv); discard_menu_items (); unbind_to (specpdl_count, Qnil); - [pool release]; unblock_input (); return; } @@ -364,7 +361,6 @@ if (NILP (items)) { free_menubar_widget_value_tree (first_wv); - [pool release]; unblock_input (); return; } @@ -395,7 +391,6 @@ if (i == n) { free_menubar_widget_value_tree (first_wv); - [pool release]; unblock_input (); return; } @@ -454,7 +449,6 @@ if (needsSet) [NSApp setMainMenu: menu]; - [pool release]; unblock_input (); } --Apple-Mail=_D0B91DCC-B9BF-451B-AB18-D057566DB173 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_D0B91DCC-B9BF-451B-AB18-D057566DB173-- From unknown Fri Aug 08 15:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0.) Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Sep 2020 20:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Win Treese Cc: 34762@debbugs.gnu.org Received: via spool by 34762-submit@debbugs.gnu.org id=B34762.159933618210225 (code B ref 34762); Sat, 05 Sep 2020 20:04:01 +0000 Received: (at 34762) by debbugs.gnu.org; 5 Sep 2020 20:03:02 +0000 Received: from localhost ([127.0.0.1]:44149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEeOs-0002eq-Fm for submit@debbugs.gnu.org; Sat, 05 Sep 2020 16:03:02 -0400 Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:42352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEeOq-0002eK-7X for 34762@debbugs.gnu.org; Sat, 05 Sep 2020 16:03:01 -0400 Received: from smtpauth2.co-bxl (smtpauth2.co-bxl [10.2.0.24]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id BF504439; Sat, 5 Sep 2020 22:02:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1599336173; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To; l=765; bh=kSWyHFMo3/SQa5tupRRwTnx1iTiYCka4Gg+b3XTvWhI=; b=HQPECLri6Uus7zBE3lsh7QYoj4WhbKf6FqDiPQ08GHaqbek8woaiVMnKB8O486Dv WneY+DxLDTBbbrSTNeoQ6qs90gbD/vuoiot+GTlY6bk8OaL1gUhmeoK/pU1xF0gyTvf xRCX7bPJhDyA/nnEigWlYlPHk2UyfYPAHyDdNmBQlKTwmHU8m6CPerykqb5P3BQvASs wo4+6q0NoGfZakiwcHunDwxLGaHWmZm/FIA8OMU6DpZP4nIh+Kq8ZOfLoNFhV4rjTqA BPcTRhEeQBGwTzz4+wlOj4DEiLD/mJfZGMdtM0aO+n11JgMEhQ+dzutuXWqIBqrILZc vzIITGFHIg== Received: by smtp.mailfence.com with ESMTPA ; Sat, 5 Sep 2020 22:02:51 +0200 (CEST) Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 7F36E20251A92E; Sat, 5 Sep 2020 21:02:50 +0100 (BST) Date: Sat, 5 Sep 2020 22:02:52 +0200 (CEST) From: Alan Third Message-ID: <20200905200250.GC93185@breton.holly.idiocy.org> Mail-Followup-To: Alan Third , Win Treese , 34762@debbugs.gnu.org References: <5E4CFA2E-BF8D-4F32-9FDA-80A004192288@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5E4CFA2E-BF8D-4F32-9FDA-80A004192288@acm.org> X-Spam-Flag: NO X-Spam-Status: No, hits=-2.9 required=4.7 symbols=ALL_TRUSTED, BAYES_00 device=10.2.0.21 X-ContactOffice-Account: com:241649512 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Thu, Sep 03, 2020 at 09:44:57PM -0400, Win Treese wrote: > The pool seems to be pretty much irrelevant in this particular case. > Since the menu is given to the app, and might be deallocated under > some circumstances if it's passed back to ns_update_menu, it seems > like simply removing the pool code is sufficient without causing a > memory leak. Hi Win, Thanks for looking at this. I'm not super clear about how and why the pools work myself, but I think you're probably right. Can you please remove the changelog entry (the changelog files are automatically generated now), and put it in the git commit message instead, then use 'git format-patch' as described in CONTRIBUTE? Have you completed the copyright paperwork? -- Alan Third From unknown Fri Aug 08 15:18:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0.) Resent-From: Win Treese Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Sep 2020 19:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34762 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third Cc: 34762@debbugs.gnu.org Received: via spool by 34762-submit@debbugs.gnu.org id=B34762.159959389921871 (code B ref 34762); Tue, 08 Sep 2020 19:39:02 +0000 Received: (at 34762) by debbugs.gnu.org; 8 Sep 2020 19:38:19 +0000 Received: from localhost ([127.0.0.1]:56496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFjRa-0005gh-T3 for submit@debbugs.gnu.org; Tue, 08 Sep 2020 15:38:19 -0400 Received: from wforward1-smtp.messagingengine.com ([64.147.123.30]:34795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFjRZ-0005gU-05 for 34762@debbugs.gnu.org; Tue, 08 Sep 2020 15:38:18 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailforward.west.internal (Postfix) with ESMTP id E336B11F0; Tue, 8 Sep 2020 15:38:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 08 Sep 2020 15:38:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=/HGqFP APg64RPvryIZS3jIF76+7RK95LHUbM971djtI=; b=Zf1cMc78EuQDhe67wkwmWC EwC2gzQwO4axFRL6p6TpSv2GepMdpsJmmM0DvvegefWrpAupPedwRfBbnca/KUDZ SpNBtDm/hzPO1q1W42VINcx0LnL066ExKoOwkkHNI8XO7m9xLlHO9h8DXWiSj2FV hZO5ghXaGB4IP0rWo1DA3JiE1iYjcZ6YlJcPJ5jJBT7UcDgz1MMPZcSesfTmggCT MmfpEHwlqXbuRtu5Vq3lYUyxTfEP01P+J1REtIEGnvXA4XTu+LH+tdpmFjfZfjc6 NRvLDfZfRntv5UdxDbZ3NFT0z3iuP8d1VjqyNyOR68r7C3+ihWSdPRRb/S7Frl5Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehfedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegtggfuhfgjfffkfhfvofesmhdtmherhhdtjeenucfhrhhomhephghinhcu vfhrvggvshgvuceothhrvggvshgvsegrtghmrdhorhhgqeenucggtffrrghtthgvrhhnpe eihfehudekvdffleekjedtfffhveevudekfffgffehuefhvdfhudeukeeluefgvdenucfk phepuddtkedrgeelrdduhedurddufeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepthhrvggvshgvsegrtghmrdhorhhg X-ME-Proxy: Received: from cirocco.treese.org (pool-108-49-151-139.bstnma.fios.verizon.net [108.49.151.139]) by mail.messagingengine.com (Postfix) with ESMTPA id ADA913280068; Tue, 8 Sep 2020 15:38:09 -0400 (EDT) Content-Type: multipart/mixed; boundary="Apple-Mail=_DFA9B1CD-7C03-45F9-A051-70145D193EA0" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.15\)) From: Win Treese In-Reply-To: <20200905200250.GC93185@breton.holly.idiocy.org> Date: Tue, 8 Sep 2020 15:38:08 -0400 X-Mao-Original-Outgoing-Id: 621286688.681916-f1c2dac3d8e0ee1dcbf9010244352277 Message-Id: <18D22571-6BEE-4635-A4CE-36F9AB4E1628@acm.org> References: <5E4CFA2E-BF8D-4F32-9FDA-80A004192288@acm.org> <20200905200250.GC93185@breton.holly.idiocy.org> X-Mailer: Apple Mail (2.3445.104.15) X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --Apple-Mail=_DFA9B1CD-7C03-45F9-A051-70145D193EA0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Sep 5, 2020, at 4:02 PM, Alan Third wrote: >=20 > Thanks for looking at this. I'm not super clear about how and why the > pools work myself, but I think you're probably right. >=20 > Can you please remove the changelog entry (the changelog files are > automatically generated now), and put it in the git commit message > instead, then use 'git format-patch' as described in CONTRIBUTE? >=20 > Have you completed the copyright paperwork? Sorry, read the wrong info about submitting it! Here=E2=80=99s a second attempt. Let me know if it=E2=80=99s not quite = right. Yes, I submitted copyright paperwork for Emacs a while back. - Win --Apple-Mail=_DFA9B1CD-7C03-45F9-A051-70145D193EA0 Content-Disposition: attachment; filename=0001-Fix-crash-from-clicking-on-menu-bar-bug-34762-bug-26.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Fix-crash-from-clicking-on-menu-bar-bug-34762-bug-26.patch" Content-Transfer-Encoding: quoted-printable =46rom=2035e33ee7b283b831598224f150b9c7a402d28b22=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Win=20Treese=20=0ADate:=20Tue,=20= 8=20Sep=202020=2015:32:15=20-0400=0ASubject:=20[PATCH]=20Fix=20crash=20= from=20clicking=20on=20menu=20bar=20(bug#34762,=20bug#26982).=0A=0A*=20= src/nsmenu.m=20(ns_update_menubar):=20Remove=20extraneous=20use=20of=0A= autorelease=20pool.=0A---=0A=20src/nsmenu.m=20|=206=20------=0A=201=20= file=20changed,=206=20deletions(-)=0A=0Adiff=20--git=20a/src/nsmenu.m=20= b/src/nsmenu.m=0Aindex=20e313fc03f4..a286a80da1=20100644=0A---=20= a/src/nsmenu.m=0A+++=20b/src/nsmenu.m=0A@@=20-122,7=20+122,6=20@@=0A=20= /*fprintf=20(stderr,=20"ns_update_menubar:=20frame:=20%p\tdeep:=20= %d\tsub:=20%p\n",=20f,=20deep_p,=20submenu);=20*/=0A=20=0A=20=20=20= block_input=20();=0A-=20=20pool=20=3D=20[[NSAutoreleasePool=20alloc]=20= init];=0A=20=0A=20=20=20/*=20Menu=20may=20have=20been=20created=20= automatically;=20if=20so,=20discard=20it.=20=20*/=0A=20=20=20if=20([menu=20= isKindOfClass:=20[EmacsMenu=20class]]=20=3D=3D=20NO)=0A@@=20-240,7=20= +239,6=20@@=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= [[submenu=20title]=20UTF8String]);=0A=20=09=20=20discard_menu_items=20= ();=0A=20=09=20=20unbind_to=20(specpdl_count,=20Qnil);=0A-=20=20=20=20=20= =20=20=20=20=20[pool=20release];=0A=20=20=20=20=20=20=20=20=20=20=20= unblock_input=20();=0A=20=09=20=20return;=0A=20=20=20=20=20=20=20=20=20}=0A= @@=20-298,7=20+296,6=20@@=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= free_menubar_widget_value_tree=20(first_wv);=0A=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20discard_menu_items=20();=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20unbind_to=20(specpdl_count,=20Qnil);=0A-=20=20=20=20=20=20= =20=20=20=20=20=20=20=20[pool=20release];=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20unblock_input=20();=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20return;=0A=20=20=20=20=20=20=20=20=20=20=20=20=20}=0A@@=20= -364,7=20+361,6=20@@=0A=20=20=20=20=20=20=20if=20(NILP=20(items))=0A=20=20= =20=20=20=20=20=20=20{=0A=20=20=20=20=20=20=20=20=20=20=20= free_menubar_widget_value_tree=20(first_wv);=0A-=20=20=20=20=20=20=20=20=20= =20[pool=20release];=0A=20=20=20=20=20=20=20=20=20=20=20unblock_input=20= ();=0A=20=20=20=20=20=20=20=20=20=20=20return;=0A=20=20=20=20=20=20=20=20= =20}=0A@@=20-395,7=20+391,6=20@@=0A=20=20=20=20=20=20=20=20=20=20=20if=20= (i=20=3D=3D=20n)=0A=20=20=20=20=20=20=20=20=20=20=20=20=20{=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20free_menubar_widget_value_tree=20= (first_wv);=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20[pool=20= release];=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20unblock_input=20= ();=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20return;=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20}=0A@@=20-454,7=20+449,6=20@@=0A=20=20=20if=20= (needsSet)=0A=20=20=20=20=20[NSApp=20setMainMenu:=20menu];=0A=20=0A-=20=20= [pool=20release];=0A=20=20=20unblock_input=20();=0A=20=0A=20}=0A--=20=0A= 2.21.1=20(Apple=20Git-122.3)=0A=0A= --Apple-Mail=_DFA9B1CD-7C03-45F9-A051-70145D193EA0-- From unknown Fri Aug 08 15:18:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Caroptions Caroptions Subject: bug#34762: closed (Re: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0.)) Message-ID: References: <20200908205141.GE93185@breton.holly.idiocy.org> X-Gnu-PR-Message: they-closed 34762 X-Gnu-PR-Package: emacs Reply-To: 34762@debbugs.gnu.org Date: Tue, 08 Sep 2020 20:52:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1599598322-28534-1" This is a multi-part message in MIME format... ------------=_1599598322-28534-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #34762: 26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool= 0x1040021e0. which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 34762@debbugs.gnu.org. --=20 34762: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34762 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1599598322-28534-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 34762-done) by debbugs.gnu.org; 8 Sep 2020 20:51:55 +0000 Received: from localhost ([127.0.0.1]:56564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFkap-0007Pq-IJ for submit@debbugs.gnu.org; Tue, 08 Sep 2020 16:51:55 -0400 Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:35864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFkam-0007Pc-PC for 34762-done@debbugs.gnu.org; Tue, 08 Sep 2020 16:51:54 -0400 Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 331E23F9; Tue, 8 Sep 2020 22:51:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1599598306; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To; l=354; bh=2krviwn6GkhIv2FK08uEB3GoVUEqM9tllMO9mD5imkU=; b=ntlrBqdPJ2z8hqG7je2l9S00o/CX+Q1Q8YTwssCSyRuPBQsssLZ+awHJoF5WtSl7 u+jmE4DeUmz+4W5he2BYGbPU/1pnJF9vSKA8oyPpu5keOs3j5ZSGvwesB9yBf4Snblo jORWfbgXokQkrGfuPob7gdt7SfbANeS/GPIJBtHyEx4xMa3nqaa9C3c75gN1y07ZgWt jZVIUVkF1dRX0+831BkIg6+Zo/arcDWhAnfhZ0lqRcgLRiVuoGv+hvMrqIJ4Am9BVGk 4BT87MdXwYj0ecLuPKjJfvHxPDFWqhiPuWgCZjaKPlDRw0ob3bAJXoDCoNMvkwWXc2q KkcRJU3X3w== Received: by smtp.mailfence.com with ESMTPA ; Tue, 8 Sep 2020 22:51:42 +0200 (CEST) Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 3FA5920252965D; Tue, 8 Sep 2020 21:51:41 +0100 (BST) Date: Tue, 8 Sep 2020 21:51:41 +0100 From: Alan Third To: Win Treese Subject: Re: bug#34762: Acknowledgement (26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0.) Message-ID: <20200908205141.GE93185@breton.holly.idiocy.org> Mail-Followup-To: Alan Third , Win Treese , 34762-done@debbugs.gnu.org References: <5E4CFA2E-BF8D-4F32-9FDA-80A004192288@acm.org> <20200905200250.GC93185@breton.holly.idiocy.org> <18D22571-6BEE-4635-A4CE-36F9AB4E1628@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <18D22571-6BEE-4635-A4CE-36F9AB4E1628@acm.org> X-Spam-Flag: NO X-Spam-Status: No, hits=-2.9 required=4.7 symbols=ALL_TRUSTED, BAYES_00 device=10.2.0.1 X-ContactOffice-Account: com:241649512 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34762-done Cc: 34762-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Tue, Sep 08, 2020 at 03:38:08PM -0400, Win Treese wrote: > Here’s a second attempt. Let me know if it’s not quite right. The only thing is a bit funny. The first line of the commit message shouldn't end in a full stop (period). I've fixed it and pushed it to master, so I think we can close this bug report. Thank you! -- Alan Third ------------=_1599598322-28534-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Mar 2019 21:16:14 +0000 Received: from localhost ([127.0.0.1]:33539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1HQ3-00020o-CK for submit@debbugs.gnu.org; Tue, 05 Mar 2019 16:16:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1Gzi-0007no-QI for submit@debbugs.gnu.org; Tue, 05 Mar 2019 15:49:00 -0500 Received: from lists.gnu.org ([209.51.188.17]:48167) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h1Gzd-0004fW-Fy for submit@debbugs.gnu.org; Tue, 05 Mar 2019 15:48:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1Gza-0004Va-TS for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2019 15:48:53 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, RECEIVED_FROM_WINDOWS_HOST autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1GzY-0004SN-AE for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2019 15:48:50 -0500 Received: from mail-oln040092010022.outbound.protection.outlook.com ([40.92.10.22]:1679 helo=NAM04-CO1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h1GzX-0004NK-Hs for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2019 15:48:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I206T1SjXJ1mpms3HU5ZAUSRKoPiX1VWoHQ50TXesQE=; b=qrJFEGoJJHjY4dNIrXG1WSEPrNWg2nZ2EDiiy/7aIDJ2S7VD/9lu0Gbsxh0dKtlnUo+VoBPqO7poM7aWy5ZLvLWmLrr29R3xYZNeY0c0Dqe/H00UARQctiQFCVNt6y0r4etYtSDzKDmV3QUVqCuuNIzFC/P9P1qmkR4TBZ6iisOzhdjlpUsG6ERHg9wlkv2lPpx4PFFEiEUuzCN9R5SZIvwT0U6XA8OFG/4gHVBiLeOq+yy/brSFhWpQysMh+vI8SIJaOGsjyy8VqvUIp73I4QXyW1tmbjfVoqpisXVjA7UGk2CCOzedO46uRWNWe+IrEfK0MdCeet/bfazTu7LyUg== Received: from BN3NAM04FT029.eop-NAM04.prod.protection.outlook.com (10.152.92.60) by BN3NAM04HT172.eop-NAM04.prod.protection.outlook.com (10.152.93.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11; Tue, 5 Mar 2019 20:48:44 +0000 Received: from BYAPR02MB5813.namprd02.prod.outlook.com (10.152.92.52) by BN3NAM04FT029.mail.protection.outlook.com (10.152.92.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11 via Frontend Transport; Tue, 5 Mar 2019 20:48:44 +0000 Received: from BYAPR02MB5813.namprd02.prod.outlook.com ([fe80::806e:6677:8bad:190f]) by BYAPR02MB5813.namprd02.prod.outlook.com ([fe80::806e:6677:8bad:190f%3]) with mapi id 15.20.1665.020; Tue, 5 Mar 2019 20:48:44 +0000 From: Caroptions Caroptions To: "bug-gnu-emacs@gnu.org" Subject: 26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0. Thread-Topic: 26.1.92; objc[27300]: Invalid or prematurely-freed autorelease pool 0x1040021e0. Thread-Index: AQHU05StGnzIii49C0etVhwnikc8SQ== Date: Tue, 5 Mar 2019 20:48:44 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:385A3022E8A09F5EEB78B732DBE1947F0BE066D2F90298CDDBEF80C87D263770; UpperCasedChecksum:DBDD803E68A2A5FF4ED1AF2922E0CF68CB3F9D5E951B7FFF702CD4C345D5253D; SizeAsReceived:6700; Count:41 x-tmn: [klNlpXRw+KQNCewjPrLnBuBd6oHmbcEr] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031323274)(2017031324274)(1601125500)(1603101475)(1701031045); SRVR:BN3NAM04HT172; x-ms-traffictypediagnostic: BN3NAM04HT172: x-microsoft-antispam-message-info: YTGlPPFNRoYBG7A/QHC4dBZ1T3iykAFah1diolHG+V12dTwp4IlJQ4i8cLCUxyp1 Content-Type: multipart/alternative; boundary="_000_BYAPR02MB58132C354172FAFD9F089D69CF720BYAPR02MB5813namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: f063297c-73ab-4999-70d0-08d6a1abf544 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 20:48:44.5366 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM04HT172 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.10.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 05 Mar 2019 16:16:10 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --_000_BYAPR02MB58132C354172FAFD9F089D69CF720BYAPR02MB5813namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Open any remote file over TRAMP (ssh), click any menu: objc[33826]: Invalid or prematurely-freed autorelease pool 0x10300a208. Process 33826 stopped * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D signal SIGA= BRT frame #0: 0x00007fff68a3801e libsystem_kernel.dylib`__abort_with_payloa= d + 10 libsystem_kernel.dylib`__abort_with_payload: -> 0x7fff68a3801e <+10>: jae 0x7fff68a38028 ; <+20> 0x7fff68a38020 <+12>: movq %rax, %rdi 0x7fff68a38023 <+15>: jmp 0x7fff68a1a3b7 ; cerror_nocance= l 0x7fff68a38028 <+20>: retq Target 0: (Emacs) stopped. Compiled: xcode 10.1, OSX Mojave branch: emacs-emacs-26.1.92 ./configure --with-ns --with-modules --with-wide-int --without-makeinfo --without-sound --without-x --without-dbus --without-gsettings --without-selinux --without-gconf --without-libotf --without-m17n-flt --disable-acl --with-file-notification=3Dkqueue --enable-checking=3D'yes,glyphs' --enable-check-lisp-object-type CFLAGS=3D'-O0 -g3' Backtrace: (lldb) bt all * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D signal SIGA= BRT * frame #0: 0x00007fff68a3801e libsystem_kernel.dylib`__abort_with_payloa= d + 10 frame #1: 0x00007fff68a33541 libsystem_kernel.dylib`abort_with_payload_= wrapper_internal + 82 frame #2: 0x00007fff68a334ef libsystem_kernel.dylib`abort_with_reason += 22 frame #3: 0x00007fff6781bd3d libobjc.A.dylib`_objc_fatalv(unsigned long= long, unsigned long long, char const*, __va_list_tag*) + 108 frame #4: 0x00007fff6781bbff libobjc.A.dylib`_objc_fatal(char const*, .= ..) + 127 frame #5: 0x00007fff6780e8a9 libobjc.A.dylib`(anonymous namespace)::Aut= oreleasePoolPage::pop(void*) + 957 frame #6: 0x00007fff3b5c8f32 CoreFoundation`_CFAutoreleasePoolPop + 22 frame #7: 0x00007fff3d961c4e Foundation`-[NSAutoreleasePool release] + = 144 frame #8: 0x000000010048700c Emacs`ns_update_menubar(f=3D0x000000010406= 2c30, deep_p=3Dtrue, submenu=3D0x0000000000000000) at nsmenu.m:462 frame #9: 0x000000010048705e Emacs`x_activate_menubar(f=3D0x00000001040= 62c30) at nsmenu.m:481 frame #10: 0x00000001001e0bbd Emacs`kbd_buffer_get_event(kbp=3D0x00007f= feefbfd8c0, used_mouse_menu=3D0x00007ffeefbfebff, end_time=3D0x000000000000= 0000) at keyboard.c:3955 frame #11: 0x00000001001dfa44 Emacs`read_event_from_main_queue(end_time= =3D0x0000000000000000, local_getcjmp=3D0x00007ffeefbfe580, used_mouse_menu= =3D0x00007ffeefbfebff) at keyboard.c:2153 frame #12: 0x00000001001ce0a9 Emacs`read_decoded_event_from_main_queue(= end_time=3D0x0000000000000000, local_getcjmp=3D0x00007ffeefbfe580, prev_eve= nt=3D(i =3D 0), used_mouse_menu=3D0x00007ffeefbfebff) at keyboard.c:2217 frame #13: 0x00000001001ca9af Emacs`read_char(commandflag=3D1, map=3D(i= =3D 4382275843), prev_event=3D(i =3D 0), used_mouse_menu=3D0x00007ffeefbfe= bff, end_time=3D0x0000000000000000) at keyboard.c:2808 frame #14: 0x00000001001c3d6a Emacs`read_key_sequence(keybuf=3D0x00007f= feefbff210, bufsize=3D30, prompt=3D(i =3D 0), dont_downcase_last=3Dfalse, c= an_return_switch_frame=3Dtrue, fix_current_buffer=3Dtrue, prevent_redisplay= =3Dfalse) at keyboard.c:9157 frame #15: 0x00000001001c23b6 Emacs`command_loop_1 at keyboard.c:1368 frame #16: 0x00000001002fd9cf Emacs`internal_condition_case(bfun=3D(Ema= cs`command_loop_1 at keyboard.c:1259), handlers=3D(i =3D 18720), hfun=3D(Em= acs`cmd_error at keyboard.c:938)) at eval.c:1336 frame #17: 0x00000001001def21 Emacs`command_loop_2(ignore=3D(i =3D 0)) = at keyboard.c:1110 frame #18: 0x00000001002fcbc8 Emacs`internal_catch(tag=3D(i =3D 48048),= func=3D(Emacs`command_loop_2 at keyboard.c:1106), arg=3D(i =3D 0)) at eval= .c:1101 frame #19: 0x00000001001c0f3d Emacs`command_loop at keyboard.c:1089 frame #20: 0x00000001001c0d57 Emacs`recursive_edit_1 at keyboard.c:695 frame #21: 0x00000001001c118a Emacs`Frecursive_edit at keyboard.c:766 frame #22: 0x00000001001be7d1 Emacs`main(argc=3D1, argv=3D0x00007ffeefb= ff988) at emacs.c:1717 frame #23: 0x00007fff688e0ed9 libdyld.dylib`start + 1 frame #24: 0x00007fff688e0ed9 libdyld.dylib`start + 1 thread #5 frame #0: 0x00007fff68a1bb6a libsystem_kernel.dylib`__workq_kernreturn = + 10 frame #1: 0x00000000000186a6 frame #2: 0x00007fff68ad3405 libsystem_pthread.dylib`start_wqthread + 1= 3 thread #6 frame #0: 0x00007fff68a1bb6a libsystem_kernel.dylib`__workq_kernreturn = + 10 frame #1: 0x00007fff68ad3630 libsystem_pthread.dylib`_pthread_wqthread = + 446 frame #2: 0x00007fff68ad3405 libsystem_pthread.dylib`start_wqthread + 1= 3 thread #7 frame #0: 0x00007fff68a215aa libsystem_kernel.dylib`__select + 10 frame #1: 0x0000000100457cad Emacs`-[EmacsApp fd_handler:](self=3D0x000= 000010306ea00, _cmd=3D"fd_handler:", unused=3D0x0000000000000000) at nsterm= .m:5851 frame #2: 0x00007fff3d970104 Foundation`__NSThread__start__ + 1218 frame #3: 0x00007fff68ad4305 libsystem_pthread.dylib`_pthread_body + 12= 6 frame #4: 0x00007fff68ad726f libsystem_pthread.dylib`_pthread_start + 7= 0 frame #5: 0x00007fff68ad3415 libsystem_pthread.dylib`thread_start + 13 thread #8, name =3D 'com.apple.NSEventThread' frame #0: 0x00007fff68a1a17a libsystem_kernel.dylib`mach_msg_trap + 10 frame #1: 0x00007fff68a1a6d0 libsystem_kernel.dylib`mach_msg + 60 frame #2: 0x00007fff3b5f7158 CoreFoundation`__CFRunLoopServiceMachPort = + 336 frame #3: 0x00007fff3b5f66a6 CoreFoundation`__CFRunLoopRun + 1661 frame #4: 0x00007fff3b5f5dd6 CoreFoundation`CFRunLoopRunSpecific + 467 frame #5: 0x00007fff38b42f89 AppKit`_NSEventThread + 160 frame #6: 0x00007fff68ad4305 libsystem_pthread.dylib`_pthread_body + 12= 6 frame #7: 0x00007fff68ad726f libsystem_pthread.dylib`_pthread_start + 7= 0 frame #8: 0x00007fff68ad3415 libsystem_pthread.dylib`thread_start + 13 Configured using: 'configure --with-ns --with-modules --with-wide-int --without-makeinfo --without-sound --without-x --without-dbus --without-gsettings --without-selinux --without-gconf --without-libotf --without-m17n-flt --disable-acl --with-file-notification=3Dkqueue --enable-checking=3Dyes,glyphs --enable-check-lisp-object-type 'CFLAGS=3D-O0 -g3' PKG_CONFIG_PATH=3D/opt/local/lib/pkgconfig:/usr/lib/pkgconfig:' Configured features: NOTIFY GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: ivy-mode: t global-company-mode: t company-mode: t dumb-jump-mode: t projectile-mode: t savehist-mode: t show-paren-mode: t delete-selection-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t shell-dirtrack-mode: t smooth-scrolling-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-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 transient-mark-mode: t Load-path shadows: /Users/.emacs.d/elpa/lv-20181110.1740/lv hides /Users/bc/.emacs.d/elpa/hydr= a-20190213.1849/lv Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra help-mode counsel xdg dired dired-loaddefs swiper ivy colir color ivy-overlay ffap elec-pair company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb company-anaconda company pcase anaconda-mode url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap pythonic python json map paradox paradox-menu paradox-commit-list hydra lv cus-edit wid-edit paradox-execute paradox-github paradox-core spinner subr-x dumb-jump popup f dash s etags xref project tramp-cache tramp-sh projectile grep compile ibuf-ext ibuffer ibuffer-loaddefs thingatpt savehist paren delsel display-line-numbers cus-start cus-load dracula-theme rx tramp tramp-compat tramp-loaddefs trampver shell pcomplete comint ansi-color ring parse-time format-spec smooth-scrolling advice finder-inf edmacro kmacro info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files 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 329036 10859) (symbols 48 31676 1) (miscs 40 64 197) (strings 32 72037 1681) (string-bytes 1 2045007) (vectors 16 51624) (vector-slots 8 894652 12280) (floats 8 263 209) (intervals 56 662 16) (buffers 992 11)) --_000_BYAPR02MB58132C354172FAFD9F089D69CF720BYAPR02MB5813namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Open any remote file over TRAMP (ssh), = click any menu:


objc[33826]: Invalid or prematurely-fre= ed autorelease pool 0x10300a208.
Process 33826 stopped
* thread #1, queue =3D 'com.apple.main-= thread', stop reason =3D signal SIGABRT
   =  frame #0: 0x00007fff68a3801e libsystem_kernel.dylib`__abort_wi= th_payload + 10
libsystem_kernel.dylib`__abort_with_pay= load:
->  0x7fff68a3801e <+10>: jae    0x7fff68a38028&nb= sp;           ; <+20>
   =  0x7fff68a38020 <+12>: movq  = ; %rax, %rdi
   =  0x7fff68a38023 <+15>: jmp  =   0x7fff6= 8a1a3b7         = ;   = ; cerror_nocancel
   =  0x7fff68a38028 <+20>: retq  = ; 
Target 0: (Emacs) stopped.


Compiled:
xcode 10.1, OSX Mojave
branch: emacs-emacs-26.1.92 =

./configure --with-ns --with-modules --= with-wide-int --without-makeinfo
--without-sound  --without-x  --without-dbus  --without-gsettings
--without-selinux --without-gconf --wit= hout-libotf --without-m17n-flt
--disable-acl --with-file-notification= =3Dkqueue
--enable-checking=3D'yes,glyphs' --enab= le-check-lisp-object-type
CFLAGS=3D'-O0 -g3'

Backtrace:

(lldb) bt all
* thread #1, queue =3D 'com.apple.main-= thread', stop reason =3D signal SIGABRT
  
* frame #0: 0x00007fff68a3801e libsystem_kernel.dylib`__abort_with_payload + 10
   =  frame #1: 0x00007fff68a33541 libsystem_kernel.dylib`abort_with= _payload_wrapper_internal + 82
   =  frame #2: 0x00007fff68a334ef libsystem_kernel.dylib`abort_with= _reason + 22
   =  frame #3: 0x00007fff6781bd3d libobjc.A.dylib`_objc_fatalv(unsi= gned long long, unsigned long long, char const*, __va_list_tag*) + 108
   =  frame #4: 0x00007fff6781bbff libobjc.A.dylib`_objc_fatal(char const*, ...) + 127
   =  frame #5: 0x00007fff6780e8a9 libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 957
   =  frame #6: 0x00007fff3b5c8f32 CoreFoundation`_CFAutoreleasePool= Pop + 22
   =  frame #7: 0x00007fff3d961c4e Foundation`-[NSAutoreleasePool release] + 144
   =  frame #8: 0x000000010048700c Emacs`ns_update_menubar(f=3D0x000= 0000104062c30, deep_p=3Dtrue, submenu=3D0x0000000000000000) at nsmenu.m:462
   =  frame #9: 0x000000010048705e Emacs`x_activate_menubar(f=3D0x00= 00000104062c30) at nsmenu.m:481
   =  frame #10: 0x00000001001e0bbd Emacs`kbd_buffer_get_event(kbp= =3D0x00007ffeefbfd8c0, used_mouse_menu=3D0x00007ffeefbfebff, end_time=3D0x0000000000000000) at ke= yboard.c:3955
   =  frame #11: 0x00000001001dfa44 Emacs`read_event_from_main_queue= (end_time=3D0x0000000000000000, local_getcjmp=3D0x00007ffeefbfe580, used_mouse_menu=3D0x00007ffeefbfebff) = at keyboard.c:2153
   =  frame #12: 0x00000001001ce0a9 Emacs`read_decoded_event_from_ma= in_queue(end_time=3D0x0000000000000000, local_getcjmp=3D0x00007ffeefbfe580, prev_event=3D(i =3D 0), used_mouse_men= u=3D0x00007ffeefbfebff) at keyboard.c:2217
   =  frame #13: 0x00000001001ca9af Emacs`read_char(commandflag=3D1, map=3D(i =3D 4382275843), prev_event=3D(i =3D 0), used_mouse_menu=3D0x0000= 7ffeefbfebff, end_time=3D0x0000000000000000) at keyboard.c:2808
   =  frame #14: 0x00000001001c3d6a Emacs`read_key_sequence(keybuf= =3D0x00007ffeefbff210, bufsize=3D30, prompt=3D(i =3D 0), dont_downcase_last=3Dfalse, can_return_s= witch_frame=3Dtrue, fix_current_buffer=3Dtrue, prevent_redisplay=3Dfalse) a= t keyboard.c:9157
   =  frame #15: 0x00000001001c23b6 Emacs`command_loop_1 at keyboard.c:1368
   =  frame #16: 0x00000001002fd9cf Emacs`internal_condition_case(bf= un=3D(Emacs`command_loop_1 at keyboard.c:1259), handlers=3D(i =3D 18720), hfun=3D(Emacs`cmd_error at = keyboard.c:938)) at eval.c:1336
   =  frame #17: 0x00000001001def21 Emacs`command_loop_2(ignore=3D(i =3D 0)) at keyboard.c:1110
   =  frame #18: 0x00000001002fcbc8 Emacs`internal_catch(tag=3D(i =3D 48048), func=3D(Emacs`command_loop_2 at keyboard.c:1106), arg=3D(i =3D= 0)) at eval.c:1101
   =  frame #19: 0x00000001001c0f3d Emacs`command_loop at keyboard.c:1089
   =  frame #20: 0x00000001001c0d57 Emacs`recursive_edit_1 at keyboard.c:695
   =  frame #21: 0x00000001001c118a Emacs`Frecursive_edit at keyboard.c:766
   =  frame #22: 0x00000001001be7d1 Emacs`main(argc=3D1, argv=3D0x00007ffeefbff988) at emacs.c:1717
   =  frame #23: 0x00007fff688e0ed9 libdyld.dylib`start + 1
   =  frame #24: 0x00007fff688e0ed9 libdyld.dylib`start + 1
  thread #5
   =  frame #0: 0x00007fff68a1bb6a libsystem_kernel.dylib`__workq_ke= rnreturn + 10
   =  frame #1: 0x00000000000186a6
   =  frame #2: 0x00007fff68ad3405 libsystem_pthread.dylib`start_wqt= hread + 13
  thread #6
   =  frame #0: 0x00007fff68a1bb6a libsystem_kernel.dylib`__workq_ke= rnreturn + 10
   =  frame #1: 0x00007fff68ad3630 libsystem_pthread.dylib`_pthread_= wqthread + 446
   =  frame #2: 0x00007fff68ad3405 libsystem_pthread.dylib`start_wqt= hread + 13
  thread #7
   =  frame #0: 0x00007fff68a215aa libsystem_kernel.dylib`__select + 10
   =  frame #1: 0x0000000100457cad Emacs`-[EmacsApp fd_handler:](self=3D0x000000010306ea00, _cmd=3D"fd_handler:", un= used=3D0x0000000000000000) at nsterm.m:5851
   =  frame #2: 0x00007fff3d970104 Foundation`__NSThread__start__ + 1218
   =  frame #3: 0x00007fff68ad4305 libsystem_pthread.dylib`_pthread_= body + 126
   =  frame #4: 0x00007fff68ad726f libsystem_pthread.dylib`_pthread_= start + 70
   =  frame #5: 0x00007fff68ad3415 libsystem_pthread.dylib`thread_st= art + 13
  thread #8, name =3D 'com.apple.NSEventThread'
   =  frame #0: 0x00007fff68a1a17a libsystem_kernel.dylib`mach_msg_t= rap + 10
   =  frame #1: 0x00007fff68a1a6d0 libsystem_kernel.dylib`mach_msg + 60
   =  frame #2: 0x00007fff3b5f7158 CoreFoundation`__CFRunLoopService= MachPort + 336
   =  frame #3: 0x00007fff3b5f66a6 CoreFoundation`__CFRunLoopRun + 1661
   =  frame #4: 0x00007fff3b5f5dd6 CoreFoundation`CFRunLoopRunSpecif= ic + 467
   =  frame #5: 0x00007fff38b42f89 AppKit`_NSEventThread + 160
   =  frame #6: 0x00007fff68ad4305 libsystem_pthread.dylib`_pthread_= body + 126
   =  frame #7: 0x00007fff68ad726f libsystem_pthread.dylib`_pthread_= start + 70
   =  frame #8: 0x00007fff68ad3415 libsystem_pthread.dylib`thread_st= art + 13


Configured using:
'configure --with-ns --with-modules --w= ith-wide-int --without-makeinfo
--without-sound --without-x --without-d= bus --without-gsettings
--without-selinux --without-gconf --wit= hout-libotf --without-m17n-flt
--disable-acl --with-file-notification= =3Dkqueue
--enable-checking=3Dyes,glyphs --enable= -check-lisp-object-type
'CFLAGS=3D-O0 -g3'
PKG_CONFIG_PATH=3D/opt/local/lib/pkgcon= fig:/usr/lib/pkgconfig:'

Configured features:
NOTIFY GNUTLS LIBXML2 ZLIB TOOLKIT_SCRO= LL_BARS NS MODULES THREADS

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction
Minor modes in effect:
  ivy-mode: t
  global-company-mode: t
  company-mode: t
  dumb-jump-mode: t
  projectile-mode: t
  savehist-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  global-display-line-numbers-mode: t
  display-line-numbers-mode: t
  shell-dirtrack-mode: t
  smooth-scrolling-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-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
  transient-mark-mode: t

Load-path shadows:
/Users/.emacs.d/elpa/lv-20181110.1740/l= v hides /Users/bc/.emacs.d/elpa/hydra-20190213.1849/lv

Features:
(shadow sort mail-extr emacsbug message= rmc puny rfc822 mml mml-sec epa
derived epg gnus-util rmail rmail-loadd= efs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils= mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr m= ail-utils cl-extra help-mode
counsel xdg dired dired-loaddefs swiper= ivy colir color ivy-overlay ffap
elec-pair company-oddmuse company-keywo= rds company-etags company-gtags
company-dabbrev-code company-dabbrev co= mpany-files company-capf
company-cmake company-xcode company-cla= ng company-semantic company-eclim
company-template company-bbdb company-a= naconda company pcase
anaconda-mode url url-proxy url-privacy= url-expand url-methods
url-history url-cookie url-domsuf url-u= til mailcap pythonic python json
map paradox paradox-menu paradox-commit= -list hydra lv cus-edit wid-edit
paradox-execute paradox-github paradox-= core spinner subr-x dumb-jump
popup f dash s etags xref project tramp= -cache tramp-sh projectile grep
compile ibuf-ext ibuffer ibuffer-loadde= fs thingatpt savehist paren
delsel display-line-numbers cus-start c= us-load dracula-theme rx tramp
tramp-compat tramp-loaddefs trampver sh= ell pcomplete comint ansi-color
ring parse-time format-spec smooth-scro= lling advice finder-inf edmacro
kmacro info package easymenu epg-config= url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-= macs eieio-loaddefs
password-cache url-vars seq byte-opt gv= bytecomp byte-compile cconv
cl-loaddefs cl-lib time-date tooltip el= doc electric uniquify ediff-hook
vc-hooks lisp-float-type 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 elisp-mode lisp-mode
prog-mode register page menu-bar rfn-es= hadow isearch timer select
scroll-bar mouse jit-lock font-lock syn= tax facemenu font-core
term/tty-colors frame cl-generic cham g= eorgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao ko= rean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech euro= pean ethiopic indian cyrillic
chinese composite charscript charprop c= ase-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer c= l-preloaded nadvice loaddefs
button faces cus-face macroexp files te= xt-properties overlay sha1 md5
base64 format env code-pages mule custo= m widget hashtable-print-readable
backquote threads kqueue cocoa ns multi= -tty make-network-process emacs)

Memory information:
((conses 16 329036 10859)
(symbols 48 31676 1)
(miscs 40 64 197)
(strings 32 72037 1681)
(string-bytes 1 2045007)
(vectors 16 51624)
(vector-slots 8 894652 12280) (floats 8 263 209)
(intervals 56 662 16)
(buffers 992 11))
--_000_BYAPR02MB58132C354172FAFD9F089D69CF720BYAPR02MB5813namp_-- ------------=_1599598322-28534-1--