From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Marcin Korecki Newsgroups: gmane.emacs.bugs Subject: bug#38622: 27.0.50; Mac OS Catalina random crashes Date: Sun, 15 Dec 2019 12:39:37 +0000 Message-ID: <12ED4E67-0A7A-40D9-9CE6-2646AFD2FAB0@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="26377"; mail-complaints-to="usenet@blaine.gmane.org" To: 38622@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 15 15:44:50 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1igV8a-0006jQ-VV for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Dec 2019 15:44:49 +0100 Original-Received: from localhost ([::1]:40340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igV8Z-0000al-Sd for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Dec 2019 09:44:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48211) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igV6u-0006w1-E4 for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2019 09:43:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igV6s-0006es-Ci for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2019 09:43:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58316) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igV6s-0006df-74 for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2019 09:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1igV6s-0002Bc-4q for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2019 09:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Marcin Korecki Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2019 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38622 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15764209758384 (code B ref -1); Sun, 15 Dec 2019 14:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Dec 2019 14:42:55 +0000 Original-Received: from localhost ([127.0.0.1]:36056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igV6k-0002B9-Sp for submit@debbugs.gnu.org; Sun, 15 Dec 2019 09:42:55 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:39521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igTBe-0007S0-9u for submit@debbugs.gnu.org; Sun, 15 Dec 2019 07:39:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53077) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igTBZ-0004RO-4g for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2019 07:39:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igTBV-0002S0-Tv for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2019 07:39:44 -0500 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:54625) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igTBV-0002LR-Ke for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2019 07:39:41 -0500 Original-Received: by mail-wm1-x336.google.com with SMTP id b19so3679400wmj.4 for ; Sun, 15 Dec 2019 04:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=htLV5IzgO0rtsGormiGobOXz+4Jsk6RjTIAE+z7i3mI=; b=Jz3q5T5S6VnkhQ2C9Kt9u17v/XFifm7jcpc4oyzAE2qzZ03v5sJSb8cf6ZZrV/Estj +6uPI0ijCK7HRFM2AxEp9BBeCbUNtiwRbPdjfuFfORDQZ8oKP3IoupXVO3cfIohaSI8m SAF1u++S95dSh3lkNXAdEMhT4KK22Kdo5Oq0NZlPibyDUpX+Ju2rQKTGlKKa/HduI8R2 DkDZhUoDM1wor/Nnw3GaOwMpIXT1FW1EurUOp0nw+RrAjvtGiu6GMdUx4MWv9La5xxNf KeknuvrCpyxQLgxN7uen044pO6mHCUQvmS0xEIGJidyjhgTHzXVLgnKmV+jTYOBrv7jV U/iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=htLV5IzgO0rtsGormiGobOXz+4Jsk6RjTIAE+z7i3mI=; b=ozfbZ+CMFdfxIGFJ7hTv3c95L4kQ1Kj9uQ6YQZbx0p/4ZuETrqEve7FY5LcFz65uzm Xz/yym7u7CP4z2FjrKbXW80xRi9/ht9ZIQpbqTjYE3OWdWEq5MjNRfr0wxdxocqumEvF lwo2Uy+zRRQkfzPFMbnuA5Hq3PHrnIGNmDpH9NNjjFKLlErOZVyyq/F1IRtMveZJVeN2 wnljRkDHqbZ10My7pCRBHbhmw5fO1Qw63vEI38fRbcj6mZNlVa513C/vyQxZjUCkom3O jgWmKeDwsA7g5ptz3JV2FCJc/AOOkb6+yvFewczz390sGtJWT0YOcVXP+bB8+riIPwZg rphQ== X-Gm-Message-State: APjAAAVzcuccobZB0nIRxe6EnC2xAMX7LkkEwPQ5j5mXY0mg57aNLGx/ RRfevUal/Zm6INpk4I3k5I50v1fV X-Google-Smtp-Source: APXvYqwvKeJedGHXGMgGra4pPsA3FMnEJRC1Zx+r8wm13rYiP4Cn9N3l3C3+EreVGz8si4vZ9AZeKQ== X-Received: by 2002:a1c:1d8c:: with SMTP id d134mr26048883wmd.16.1576413579416; Sun, 15 Dec 2019 04:39:39 -0800 (PST) Original-Received: from pc-78-18.customer.ask4.lan ([31.205.93.196]) by smtp.gmail.com with ESMTPSA id z83sm17877866wmg.2.2019.12.15.04.39.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Dec 2019 04:39:38 -0800 (PST) X-Mailer: Apple Mail (2.3608.40.2.2.4) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Sun, 15 Dec 2019 09:42:53 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173371 Archived-At: I've been experiencing a weird problem. Ever since updating to catalina = my emacs crashes at random intervals. It seems that there is no rule (or = I cannot see it) to when it happens. The frequency is quite high but = there is no specific thing I do before it happens. I have tried removing = parts of my config which could be responsible but so far no matter what = I remove it keeps on happening. I tried different versions of emacs: = emacs for mac OS, emacs installed via homebrew and I'm now using a = version I built myself, on all those versions the problem persists. I have created a thread about it on emacs.stackexchange.com - = https://emacs.stackexchange.com/questions/54232/mac-os-catalina-random-cra= sh?noredirect=3D1#comment84911_54232. One person seems to be investigating the causes and has identified a memory leak relating to mach ports and opening files living in icloud drive. Here is a stack trace from the crash: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff6ab1c49a __pthread_kill + = 10 1 libsystem_pthread.dylib 0x00007fff6abd96cb pthread_kill + = 384 2 libsystem_c.dylib 0x00007fff6aa343a2 raise + 26 3 org.gnu.Emacs 0x000000010d6bd319 = terminate_due_to_signal + 153 4 org.gnu.Emacs 0x000000010d6bdc5b emacs_abort + 15 5 org.gnu.Emacs 0x000000010d685bf0 ns_term_shutdown = + 80 6 org.gnu.Emacs 0x000000010d57bab4 shut_down_emacs + = 340 7 org.gnu.Emacs 0x000000010d6bd2e6 = terminate_due_to_signal + 102 8 org.gnu.Emacs 0x000000010d59acae 0x10d4bd000 + = 908462 9 libsystem_platform.dylib 0x00007fff6abceb1d _sigtramp + 29 10 ??? 000000000000000000 0 + 0 11 com.apple.CoreFoundation 0x00007fff334f436b = __CFRunLoopServiceMachPort + 322 12 com.apple.CoreFoundation 0x00007fff334f3907 __CFRunLoopRun + = 1695 13 com.apple.CoreFoundation 0x00007fff334f2fe3 = CFRunLoopRunSpecific + 499 14 com.apple.HIToolbox 0x00007fff3207a67d = RunCurrentEventLoopInMode + 292 15 com.apple.HIToolbox 0x00007fff3207a3bd = ReceiveNextEventCommon + 600 16 com.apple.HIToolbox 0x00007fff3207a147 = _BlockUntilNextEventMatchingListInModeWithFilter + 64 17 com.apple.AppKit 0x00007fff306ff864 _DPSNextEvent + = 990 18 com.apple.AppKit 0x00007fff306fe5d4 = -[NSApplication(NSEvent) = _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 19 com.apple.AppKit 0x00007fff306f8d76 -[NSApplication = run] + 658 20 org.gnu.Emacs 0x000000010d685dad 0x10d4bd000 + = 1871277 21 org.gnu.Emacs 0x000000010d684a11 ns_select + 897 22 org.gnu.Emacs 0x000000010d654292 = wait_reading_process_output + 3570 23 org.gnu.Emacs 0x000000010d4c4f08 sit_for + 312 24 org.gnu.Emacs 0x000000010d5841c6 read_char + 5222 25 org.gnu.Emacs 0x000000010d5811da 0x10d4bd000 + = 803290 26 org.gnu.Emacs 0x000000010d57f9dc command_loop_1 + = 1308 27 org.gnu.Emacs 0x000000010d6065d7 = internal_condition_case + 263 28 org.gnu.Emacs 0x000000010d58fa80 0x10d4bd000 + = 862848 29 org.gnu.Emacs 0x000000010d605deb internal_catch + = 267 30 org.gnu.Emacs 0x000000010d6bd6e5 0x10d4bd000 + = 2098917 31 org.gnu.Emacs 0x000000010d57eac3 0x10d4bd000 + = 793283 32 org.gnu.Emacs 0x000000010d57e9f3 recursive_edit_1 = + 115 33 org.gnu.Emacs 0x000000010d57ec4b Frecursive_edit + = 347 34 org.gnu.Emacs 0x000000010d57d827 main + 7431 35 libdyld.dylib 0x00007fff6a9cd2e5 start + 1 Due to the irregular character of the crash I have not had luck in catching it with a gdb but I will try to do that and send it when it happens. In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin19.0.0, NS = appkit-1894.10 Version 10.15.1 (Build 19B88)) of 2019-11-17 built on pc-78-18.customer.ask4.lan Repository revision: 3dcf06bfa035c3caaeac5ce5c585dbfc07f31331 Repository branch: master Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.2 Recent messages: Checking 71 files in = /Applications/Emacs.app/Contents/Resources/lisp/erc... Checking 34 files in = /Applications/Emacs.app/Contents/Resources/lisp/emulation... Checking 180 files in = /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp... Checking 24 files in = /Applications/Emacs.app/Contents/Resources/lisp/cedet... Checking 59 files in = /Applications/Emacs.app/Contents/Resources/lisp/calendar... Checking 87 files in = /Applications/Emacs.app/Contents/Resources/lisp/calc... Checking 113 files in = /Applications/Emacs.app/Contents/Resources/lisp/obsolete... Checking for load-path shadows...done End of buffer [6 times] Beginning of buffer [4 times] kill-buffer-and-window: Attempt to delete main window of frame # Configured using: 'configure --with-ns --with-modules --enable-silent-rules PKG_CONFIG_PATH=3D/opt/local/lib/pkgconfig LDFLAGS=3D-L/opt/local/lib CPPFLAGS=3D-I/opt/local/include CC=3Dclang OBJC=3Dclang 'CFLAGS=3D-g = -O2' --with-gnutls=3Difavailable' Configured features: NOTIFY KQUEUE ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS PDUMPER GMP Important settings: value of $LANG: en_PL.UTF-8 locale-coding-system: utf-8-unix Major mode: C++//l Minor modes in effect: shell-dirtrack-mode: t mac-key-mode: t desktop-save-mode: t delete-selection-mode: t global-linum-mode: t linum-mode: t smart-tabs-mode: t global-auto-complete-mode: t auto-complete-mode: t tabbar-mwheel-mode: t tabbar-mode: t show-paren-mode: t global-ede-mode: t ede-minor-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-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 abbrev-mode: t Load-path shadows: None found. Features: (pp shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils make-mode vc-git diff-mode image-mode exif cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-extra help-mode flymake-proc flymake compile warnings thingatpt python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 time-date ls-lisp format-spec comint ring ansi-color mac-key-mode redo+ desktop frameset delsel all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons memoize hl-line neotree exec-path-from-shell linum smart-tabs-mode advice auto-complete edmacro kmacro popup light-blue-theme tabbar easy-mmode paren ede/speedbar ede/files ede ede/detect ede/base ede/auto ede/source eieio-base eieio-speedbar speedbar sb-image ezimage dframe eieio-custom wid-edit cedet cus-start cus-load finder-inf info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib 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 tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 181887 21452) (symbols 48 18543 2) (strings 32 62228 3089) (string-bytes 1 1931213) (vectors 16 31400) (vector-slots 8 645741 32234) (floats 8 459 289) (intervals 56 1229 249) (buffers 1000 22))