From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.devel Subject: This init file is crashing emacs on macos 11.4 Date: Sun, 30 May 2021 10:08:35 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13359"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) To: emacs-devel@gnu.org Cancel-Lock: sha1:OVHbiaglmYSp4jqGWqLmERYyRpA= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 30 06:39:21 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnDEP-0003Lj-1U for ged-emacs-devel@m.gmane-mx.org; Sun, 30 May 2021 06:39:21 +0200 Original-Received: from localhost ([::1]:41954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnDEO-0000Ot-4J for ged-emacs-devel@m.gmane-mx.org; Sun, 30 May 2021 00:39:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnDDq-00088F-FA for emacs-devel@gnu.org; Sun, 30 May 2021 00:38:46 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:57572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnDDo-0004pd-P1 for emacs-devel@gnu.org; Sun, 30 May 2021 00:38:46 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lnDDn-0002a9-06 for emacs-devel@gnu.org; Sun, 30 May 2021 06:38:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270108 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit The attached init file is crashing emacs on macos 11.4. Can somebody verify this on their mac? So that I can file a bug report. Please not that I am using one external package also - org-mime. I could not yet pin-point on which portion of this init is causing the issue. But the issue does not occur if I disable all three blocks - org-mime, org customization's and modus-theme. --8<---------------cut here---------------start------------->8--- [~/work/gnu/emacs git→(master *)] ./src/emacs 2021-05-30 09:55:24.928 emacs[25575:2939956] Failed to initialize color list unarchiver: Error Domain=NSCocoaErrorDomain Code=4864 "*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by NSKeyedUnarchiver" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by NSKeyedUnarchiver} Fatal error 11: Segmentation fault Abort trap: 6 --8<---------------cut here---------------end--------------->8--- The “Failed to initialize color” warning is normal. It does not cause a crash. But after that I get Fatal error and crash. This is also affected by the way I launch Emacs. If I launch from current directory, like above (./src/emacs). It crashes. And If I launch it from PATH (Just "emacs" on CLI), then it sometimes does not crash. GDB is also not working on my mac because it is not codesigned. So what is the way to debug this further and get a stack-trace? --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline; filename=init-err.el Content-Transfer-Encoding: quoted-printable (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (setenv "LANG" "en_US.UTF-8") (eval-when-compile (add-to-list 'load-path (expand-file-name "use-package" user-emacs-directory)) (require 'use-package)) (eval-when-compile (package-initialize)) (use-package org-mime :init (custom-set-variables '(org-mime-library 'mml))) (when (window-system) (custom-set-variables '(modus-themes-slanted-constructs t) '(modus-themes-bold-constructs nil)) (load-theme 'modus-operandi)) (custom-set-variables '(org-directory "~/work/personal/docs/org") '(org-agenda-files (concat org-directory "/agenda-files")) '(org-agenda-include-diary t) '(org-default-notes-file (concat org-directory "/notes.org")) '(org-capture-templates nil) '(org-refile-targets '((org-agenda-files :maxlevel . 3))) '(org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "WAITING(w)" "|" "DONE(d)" "CANCELLED(c)"))) '(org-babel-load-languages '((emacs-lisp . t) (R . t) (python . t) (C . t) (java . t) (js . t) (css . t) (sql . t) (plantuml . t)))) --=-=-=--