From unknown Tue Jun 17 22:23:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39343: 27.0.50; Thrad signal crashes Emacs with sgmentation fault Resent-From: Christian Johansson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jan 2020 11:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 39343@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158029732711278 (code B ref -1); Wed, 29 Jan 2020 11:29:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jan 2020 11:28:47 +0000 Received: from localhost ([127.0.0.1]:33285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwlWY-0002vq-9u for submit@debbugs.gnu.org; Wed, 29 Jan 2020 06:28:46 -0500 Received: from lists.gnu.org ([209.51.188.17]:45840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwlWV-0002vf-Jk for submit@debbugs.gnu.org; Wed, 29 Jan 2020 06:28:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36895) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwlWT-0002I8-4P for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 06:28:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwlWQ-0003N3-NH for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 06:28:40 -0500 Received: from cvj.se ([31.192.230.63]:59625) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwlWQ-0003BQ-1k for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 06:28:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cvj.se; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:From:Subject:To; bh=bKuqISyDqNQg805Yg18k6epTyQqtatgO7p0n8GifDOI=; b=XCFFVOENkguo/+R8RMVxe2fEwhOr82EqQfDV36CDi3zhd1RKeybpfQs31dyhrXITtUxiqoFsSHui4ElMGwJg+7Th856Y0rshhjmpg/w9btPU6Q5elWQW7mZacBdCFPwC8IxZfmiKhPFmHv5ViW0BzcshHubsyL/A5L28a3xuVR4=; Received: from a235.broadband3.quicknet.se ([46.17.184.235] helo=Christians-MacBook-Air.local) by cvj.se with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1iwlVG-0007uz-Hx for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 12:27:27 +0100 From: Christian Johansson Message-ID: Date: Wed, 29 Jan 2020 12:27:19 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 31.192.230.63 X-Spam-Score: 0.2 (/) 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.8 (/) Running following works on Linux but not on macOS. (let ((loop t)       (iterations 1))   (while loop     (make-thread      (lambda()        (message "Thread %d" iterations)        (signal 'error (list "My error"))))     (setq iterations (1+ iterations)))) Error in console: Fatal error 11: Segmentation faultAbort trap: 6 It seems to be some kind of issue with quitting threads on macOS which is not present on Linux In GNU Emacs 27.0.50 (build 5, x86_64-apple-darwin18.5.0, NS appkit-1671.40 Version 10.14.4 (Build 18E226)) of 2019-07-12 built on Christians-MacBook-Air.local Repository revision: 8179cbff9ed37e7d8892643859adfad448ae1c7a Repository branch: master Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.2 Recent messages: Getting /ftp:neojungiantypology.com@ftp.neojungiantypology.com:/.htaccess...done Wrote /Users/christianjohansson/.emacs.d/.emacs.desktop.lock Desktop: 1 frame, 27 buffers restored. Initializing Hyperbole...done Hyperbole 7.0.6 is ready for action. For information about GNU Emacs and the GNU system, type C-h C-a. Ispell process killed Starting new Ispell process /usr/local/bin/hunspell with svenska dictionary... Source file ‘/Users/christianjohansson/Documents/emacs/lisp/mail/emacsbug.el’ newer than byte-compiled file Source file ‘/Users/christianjohansson/Documents/emacs/lisp/mail/sendmail.el’ newer than byte-compiled file Configured features: RSVG DBUS GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS THREADS PDUMPER GMP Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Org Minor modes in effect: global-hl-todo-mode: t flycheck-color-mode-line-mode: t show-paren-mode: t save-place-mode: t global-diff-hl-mode: t diff-hl-mode: t ssh-deploy-line-mode: t global-auto-complete-mode: t flyspell-mode: t editorconfig-mode: t which-key-mode: t csv-field-index-mode: t global-flycheck-mode: t flycheck-mode: t async-bytecomp-package-mode: t yas-global-mode: t yas-minor-mode: t override-global-mode: t ido-everywhere: t display-time-mode: t winner-mode: t electric-pair-mode: t desktop-save-mode: t recentf-mode: t global-semantic-mru-bookmark-mode: t global-semanticdb-minor-mode: t global-semantic-idle-completions-mode: t global-semantic-idle-scheduler-mode: t global-semantic-idle-local-symbol-highlight-mode: t global-semantic-idle-summary-mode: t global-semantic-decoration-mode: t global-semantic-highlight-func-mode: t global-semantic-stickyfunc-mode: t global-semantic-show-parser-state-mode: t global-semantic-highlight-edits-mode: t semantic-mode: t delete-selection-mode: t display-battery-mode: t global-whitespace-mode: t which-function-mode: t shell-dirtrack-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 window-divider-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t transient-mark-mode: t Load-path shadows: /Users/christianjohansson/.emacs.d/phps-mode/phps-mode-analyzer hides /Users/christianjohansson/.emacs.d/elpa/phps-mode-20190930.1742/phps-mode-analyzer /Users/christianjohansson/.emacs.d/phps-mode/phps-mode-tags hides /Users/christianjohansson/.emacs.d/elpa/phps-mode-20190930.1742/phps-mode-tags /Users/christianjohansson/.emacs.d/phps-mode/phps-mode-macros hides /Users/christianjohansson/.emacs.d/elpa/phps-mode-20190930.1742/phps-mode-macros /Users/christianjohansson/.emacs.d/phps-mode/phps-mode-semantic hides /Users/christianjohansson/.emacs.d/elpa/phps-mode-20190930.1742/phps-mode-semantic /Users/christianjohansson/.emacs.d/phps-mode/phps-mode-syntax-table hides /Users/christianjohansson/.emacs.d/elpa/phps-mode-20190930.1742/phps-mode-syntax-table /Users/christianjohansson/.emacs.d/phps-mode/phps-mode-flymake hides /Users/christianjohansson/.emacs.d/elpa/phps-mode-20190930.1742/phps-mode-flymake /Users/christianjohansson/.emacs.d/phps-mode/phps-mode hides /Users/christianjohansson/.emacs.d/elpa/phps-mode-20190930.1742/phps-mode /Users/christianjohansson/.emacs.d/ssh-deploy/ssh-deploy hides /Users/christianjohansson/.emacs.d/elpa/ssh-deploy-20190917.530/ssh-deploy /Users/christianjohansson/.emacs.d/ssh-deploy/ssh-deploy-diff-mode hides /Users/christianjohansson/.emacs.d/elpa/ssh-deploy-20190917.530/ssh-deploy-diff-mode /Users/christianjohansson/.emacs.d/ssh-deploy/ssh-deploy-hydra hides /Users/christianjohansson/.emacs.d/elpa/ssh-deploy-20190917.530/ssh-deploy-hydra /Users/christianjohansson/.emacs.d/elpa/less-css-mode-20161001.453/less-css-mode hides /Users/christianjohansson/Documents/emacs/lisp/textmodes/less-css-mode /Users/christianjohansson/.emacs.d/elpa/let-alist-1.0.6/let-alist hides /Users/christianjohansson/Documents/emacs/lisp/emacs-lisp/let-alist /Users/christianjohansson/Documents/emacs/lisp/sb-image hides /Users/christianjohansson/Documents/emacs/lisp/obsolete/sb-image /Users/christianjohansson/Documents/emacs/lisp/url/url-ns hides /Users/christianjohansson/Documents/emacs/lisp/obsolete/url-ns /Users/christianjohansson/Documents/emacs/lisp/emacs-lisp/cl hides /Users/christianjohansson/Documents/emacs/lisp/obsolete/cl Features: (shadow mail-extr emacsbug sendmail ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util tramp-cache epa-file ange-ftp tramp-ftp apache-mode eww mm-url url-queue shr svg org-rmail org-mhe org-irc org-info org-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range message rfc822 mml mml-sec epa epg mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs text-property-search org-docview org-bibtex bibtex org-bbdb org-w3m semantic/imenu semantic/sb semantic/tag-file semantic/db-file data-debug cedet-files semantic/bovine/c semantic/decorate/include hideif semantic/bovine/c-by semantic/lex-spp semantic/bovine/gcc semantic/dep semantic/bovine semantic/analyze/refs bug-reference display-line-numbers rainbow-mode hl-todo flycheck-rust flycheck-color-mode-line face-remap editorconfig-core editorconfig-core-handle editorconfig-fnmatch vc-git init rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap smartparens-html sgml-mode dom nxml-util nxml-enc xmltok misc ts-comint tss log4e helm helm-source helm-multi-match helm-lib json-mode json-reformat json-snatcher tide tide-lv typescript-mode zenburn-theme smarty-mode paren saveplace restclient smex flycheck-pos-tip pos-tip diff-hl vc-dir ewoc vc vc-dispatcher diff-mode exec-path-from-shell ssh-deploy-hydra ssh-deploy nginx-mode ac-html ac-html-core auto-complete-config auto-complete popup ztree ztree-diff ztree-diff-model ztree-dir ztree-view ztree-util gulp-task-runner grunt powerline powerline-separators powerline-themes phpcbf php-auto-yasnippets php-mode add-log cc-langs php-face php php-project mmm-mode mmm-univ mmm-class mmm-region mmm-auto mmm-vars mmm-utils mmm-compat php-eldoc phps-mode derived phps-mode-tags phps-mode-syntax-table phps-mode-semantic semantic/doc phps-mode-flymake phps-mode-analyzer semantic/wisent semantic/wisent/wisent phps-mode-wy-macros phps-mode-serial phps-mode-macros web-beautify w3m doc-view jka-compr image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-favicon w3m-image w3m-proc w3m-util hydra lv hl-line auto-dictionary flyspell ispell editorconfig ansible-doc org-jira org-jira-sdk jiralib request autorevert filenotify mail-utils soap-client mm-decode mm-bodies mm-encode url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny rng-xsd rng-dt rng-util xsd-regexp xml org-clock ecb ecb-symboldef ecb-analyse ecb-compatibility ecb-winman-support ecb-autogen autoload radix-tree ecb-tod ecb-cycle ecb-eshell ecb-help ecb-jde ecb-method-browser hideshow ecb-semantic-wrapper ecb-semantic ecb-file-browser ecb-speedbar ecb-layout ecb-create-layout ecb-compilation ecb-common-browser speedbar sb-image dframe ecb-navigate eieio-compat ecb-mode-line ecb-face tree-buffer ecb-upgrade ecb-cedet-wrapper semantic/db-find semantic/db-ref ecb-util which-key csv-mode sort flycheck-package package-lint let-alist finder finder-inf lisp-mnt flycheck flymake-rust flymake-easy flymake-proc flymake rust-playground time-stamp cargo cargo-process smartparens-markdown markdown-mode color smartparens-rust rust-mode image+ image-file google-translate google-translate-default-ui google-translate-core-ui google-translate-core google-translate-tk google-translate-backend url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf mailcap lorem-ipsum hyperbole hinit hibtypes hib-doc-id hsys-www klink hib-kbd hib-social hib-debbugs hsys-org org-element avl-tree smartparens-org org org-macro org-footnote org-pcomplete org-list org-faces org-entities time-date org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs hactypes hui-mini hui hui-mouse hmouse-key hargs hui-menu hyrolo-menu hyrolo hmail hui-jmenu noutline outline hmouse-sh hmouse-drv hypb locate dired dired-loaddefs hui-window hycontrol hsettings hui-em-but hbut hact hpath hhist hbdata htz cal-julian cal-menu calendar cal-loaddefs hbmap hmoccur browse-url hui-select hvar set hversion hload-path darktooth-theme autothemer smartparens-config smartparens-javascript smartparens-text smartparens paredit ripgrep thingatpt grep compile minimap skewer-mode cache-table js2-mode etags fileloop generator xref project js cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs simple-httpd pp url-util doom-themes doom-themes-base base16-theme dracula-theme with-editor warnings async-bytecomp async server yasnippet yaxception ht dash know-your-http-well http-status-codes http-relations http-methods http-headers s use-package up-delight up-diminish up-ensure up-core pcase cl bind-key easy-mmode ido time winner elec-pair desktop frameset recentf tree-widget wid-edit semantic/mru-bookmark semantic/db-mode semantic/idle semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db eieio-base semantic/format ezimage semantic/ctxt semantic/decorate/mode semantic/tag-ls semantic/find semantic/decorate pulse semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local find-func cedet delsel battery disp-table whitespace which-func imenu windmove tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color ring parse-time ls-lisp format-spec wombat-theme edmacro kmacro kotl-autoloads rx cl-extra help-mode advice w3m-load info package easymenu epg-config 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 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 dbusbind kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 943870 51645) (symbols 48 80255 3) (strings 32 259884 5972) (string-bytes 1 7562303) (vectors 16 102296) (vector-slots 8 1189521 55816) (floats 8 832 297) (intervals 56 7106 199) (buffers 992 47)) -- Hälsningar / Best Regards Christian From unknown Tue Jun 17 22:23:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39343: 27.0.50; Thrad signal crashes Emacs with sgmentation fault Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jan 2020 20:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Christian Johansson Cc: 39343@debbugs.gnu.org Received: via spool by 39343-submit@debbugs.gnu.org id=B39343.158033056822397 (code B ref 39343); Wed, 29 Jan 2020 20:43:01 +0000 Received: (at 39343) by debbugs.gnu.org; 29 Jan 2020 20:42:48 +0000 Received: from localhost ([127.0.0.1]:34613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwuAi-0005p9-9P for submit@debbugs.gnu.org; Wed, 29 Jan 2020 15:42:48 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:54714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwuAf-0005ot-B5 for 39343@debbugs.gnu.org; Wed, 29 Jan 2020 15:42:45 -0500 Received: by mail-wm1-f52.google.com with SMTP id g1so1249160wmh.4 for <39343@debbugs.gnu.org>; Wed, 29 Jan 2020 12:42:45 -0800 (PST) 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; bh=+i23xBhtRejMQ2GyUx84z1Xa2+xV128yhvmlV2EiZp8=; b=O2RR/ptfblHKTfi0A0MLvhIWs52zHK7GICuz2qbU2Uqr+fsyLzNyC9UTWyBwG7TOz3 AfUJ6y9RxADzjGKaPezaUZ2PvUNZjRLdSFdapX+sAtlYqK1drcLw6CHbEURYFP5y/md9 6YG9MkkkQetgcB087BvA+tMI74FOUsKNqmAy7/emDR1wUed6Ef1A9XBEK/NuqORQ62dP QKVhNqqCfY0/FFUhA5hN+ZisO45WrmnnlTWU/4gB2hVQdHJcL0KNJOE5ZoFqd1iVHp3n nYS49AZMVnBCvgE8t8fUTBr/6TLeWdsf/s4TWl3l9sKq4+wctCBrTp/Zew1nBPiZyNJN yZKg== 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; bh=+i23xBhtRejMQ2GyUx84z1Xa2+xV128yhvmlV2EiZp8=; b=esarlpLc8KxLlSZVysTqreUv729Wh8m0udZkdtD798lIkiLgu173+OM0wW/Pj46jOJ lzyUWNsUrWIXIcXGYQbMjU9ntkxQgjyXYR/iGUmtYYSkvGsLBS51uhUijWLB7Xv1Kdj3 TzF5Yk9eOKJqJDoeM/hNefKT0kCoVmhHQ1+c7GsflMxemuvNz9Q7qLzXAtzTvObK5UfG I1vMZMJ/Nd5BfSpMajf6GybMxLyEQgLN4rXClTu4O3n7wakckfdsAubf5+RMRz4Pirwq QNTTLLSnX1UDxfcAlO9vK5E0pDSiYyEA+EGSUWxPulh1MkgnpHkQ3Uhsz9WRxxABAppZ SJEw== X-Gm-Message-State: APjAAAUpNODUIQ3tZoTLw0/eplqLoa3HBo7QgeikB53Wa77Al5hxK/bo S8J0FMQ4uHo9HgD5cLFqyUo= X-Google-Smtp-Source: APXvYqzu/bwxLLrhGc2OMhTymwATIU8qElQ6FlnPMSBxmoHYpV8na5as7vj7KgO6IH7tIPAIVzw/kg== X-Received: by 2002:a05:600c:2c41:: with SMTP id r1mr986254wmg.57.1580330557346; Wed, 29 Jan 2020 12:42:37 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a08b-b269-65be-dd6a.holly.idiocy.org. [2001:8b0:3f8:8129:a08b:b269:65be:dd6a]) by smtp.gmail.com with ESMTPSA id y7sm2152496wrr.56.2020.01.29.12.42.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2020 12:42:36 -0800 (PST) Date: Wed, 29 Jan 2020 20:42:34 +0000 From: Alan Third Message-ID: <20200129204234.GB60190@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: X-Spam-Score: 0.5 (/) 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 (/) On Wed, Jan 29, 2020 at 12:27:19PM +0100, Christian Johansson wrote: > Running following works on Linux but not on macOS. > > (let ((loop t) >       (iterations 1)) >   (while loop >     (make-thread >      (lambda() >        (message "Thread %d" iterations) >        (signal 'error (list "My error")))) >     (setq iterations (1+ iterations)))) > > Error in console: Fatal error 11: Segmentation faultAbort trap: 6 > > It seems to be some kind of issue with quitting threads on macOS which is > not present on Linux It’s a stack overflow caused by the main thread getting stuck in a loop processing calls to ns_send_appdefined which must be coming from the 2000‐odd threads the script starts. Presumably it’s the call to ns_run_loop_break in sys_cond_broadcast that’s doing it. I don’t think there’s really any way round this other than the massive rewrite the NS port needs to make it handle threads correctly. -- Alan Third From unknown Tue Jun 17 22:23:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39343: 27.0.50; Thrad signal crashes Emacs with sgmentation fault Resent-From: Christian Johansson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jan 2020 21:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third Cc: 39343@debbugs.gnu.org Received: via spool by 39343-submit@debbugs.gnu.org id=B39343.158033196432264 (code B ref 39343); Wed, 29 Jan 2020 21:07:01 +0000 Received: (at 39343) by debbugs.gnu.org; 29 Jan 2020 21:06:04 +0000 Received: from localhost ([127.0.0.1]:34644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwuXD-0008OK-Qy for submit@debbugs.gnu.org; Wed, 29 Jan 2020 16:06:04 -0500 Received: from cvj.se ([31.192.230.63]:42096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwuXB-0008Nu-K5 for 39343@debbugs.gnu.org; Wed, 29 Jan 2020 16:06:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cvj.se; s=x; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=TThg7Nrohr6c5YG7/Aj32w3/g0dE4yNKYBxRLeMjqvE=; b=BPJvGTIbWW6q+ktcBoL5k2CfveeZ0AOYMbQMoeWXfSucCLp/nivzfcpVU2tthh1z+YcV649EYSgbpx1pgbC/vYk2V1gfNPWd9ckeKs0eTu1KTjKk3nnUQQHb3DI4oCCCJQmnhrg2Cl26qRwErnK9yzxVdKj22F6U7LRFm1uqeio=; Received: from c-55b7d954.011-155-65736b4.bbcust.telenor.se ([84.217.183.85] helo=[192.168.1.11]) by cvj.se with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1iwuX9-0004iO-NT; Wed, 29 Jan 2020 22:06:00 +0100 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) From: Christian Johansson X-Mailer: iPhone Mail (16G140) In-Reply-To: <20200129204234.GB60190@breton.holly.idiocy.org> Date: Wed, 29 Jan 2020 22:05:57 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <7315DC66-E8E5-4876-9BE0-F9FDC1EC3D78@cvj.se> References: <20200129204234.GB60190@breton.holly.idiocy.org> 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 (-) Hi I understand, wish I had the skills to help with that but my C is weak and m= y macOS internals is even weaker. Sometimes I get another thread issue on macOS. It also crashes Emacs but the= error is something about try to clear a pointer that doesn=E2=80=99t point t= o anything anymore. Would it be helpful if I try to find a reproducable way o= f causing that and file another issue? It seems to occur non-determinsticall= y so I haven=E2=80=99t been able to reproduce it yet. Could perhaps depend o= n garbage collector and maybe some kind of race-condition.. I have two plugins for Emacs that would improve significantly with stable th= read support but at the moment it seems threads are unstable on macOS. I hav= e not experienced any issues on Linux. Async.el works but it adds unecessary= overhead by launching a separate Emacs process and it would be nice to not n= eed it. Kind regards Christian > 29 jan. 2020 kl. 21:42 skrev Alan Third : >=20 >> On Wed, Jan 29, 2020 at 12:27:19PM +0100, Christian Johansson wrote: >> Running following works on Linux but not on macOS. >>=20 >> (let ((loop t) >> (iterations 1)) >> (while loop >> (make-thread >> (lambda() >> (message "Thread %d" iterations) >> (signal 'error (list "My error")))) >> (setq iterations (1+ iterations)))) >>=20 >> Error in console: Fatal error 11: Segmentation faultAbort trap: 6 >>=20 >> It seems to be some kind of issue with quitting threads on macOS which is= >> not present on Linux >=20 > It=E2=80=99s a stack overflow caused by the main thread getting stuck in a= > loop processing calls to ns_send_appdefined which must be coming from > the 2000=E2=80=90odd threads the script starts. >=20 > Presumably it=E2=80=99s the call to ns_run_loop_break in sys_cond_broadcas= t > that=E2=80=99s doing it. >=20 > I don=E2=80=99t think there=E2=80=99s really any way round this other than= the massive > rewrite the NS port needs to make it handle threads correctly. >=20 > --=20 > Alan Third From unknown Tue Jun 17 22:23:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39343: 27.0.50; Thrad signal crashes Emacs with sgmentation fault Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Oct 2021 03:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third Cc: Christian Johansson , 39343@debbugs.gnu.org Received: via spool by 39343-submit@debbugs.gnu.org id=B39343.163469915612478 (code B ref 39343); Wed, 20 Oct 2021 03:06:01 +0000 Received: (at 39343) by debbugs.gnu.org; 20 Oct 2021 03:05:56 +0000 Received: from localhost ([127.0.0.1]:52405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md1vQ-0003FB-Lf for submit@debbugs.gnu.org; Tue, 19 Oct 2021 23:05:56 -0400 Received: from sonic306-22.consmr.mail.ne1.yahoo.com ([66.163.189.84]:41868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md1vN-0003Ev-VO for 39343@debbugs.gnu.org; Tue, 19 Oct 2021 23:05:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634699147; bh=yFiukTJZbFDsg8toHKBQEMKq9aZoicfBfQBh+cE23N0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=BEDdizuKiyR8ucIpOTt4pjtqjRhFve6ZADQb2DIvToAdzs+MnP2UTIvV7C2JmEdSLGFDRCNKwFNpKqBS2R54DcfdOCLZVNgsdwA4G/wnnCyBq94troTGTPyTAgqUIbhIRSN1JsFx0RBYW/LyaIKgJIiABx8POJPUwBy9TQGOsBRiw0UnS7pOerzJbCZImm9qrQy8z9Px74LZsrLF+klAIySYtM/C8oC3y1wlJ7MdKMsriUMk8lp1K7HPzzdA54B56jjFwJ2fBJmmK48zo+3resbkZYLA//Zm0TS/iTUUgR4AGriLx6dj9QxGo/f53t/DGlfvo/w5IijFDV/aFwlXmA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634699147; bh=ywsBlbyrsX7e7khvmK6au+ynseojR+wftbymA0vGRtE=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=nRWP0rSAgRwh0f/Cn/3tEIiU8zOCuq4h1Yg+IH0TTV5ev+eFlR9ewrUUZLgRd1iPGzvvqMftftse6EljWbGscJX5DZlY2gOPm9p3JadMP9W3663Pdib5dKF2MdB8TXT6RnLKBBdKb3mFkrF2BkU2tKifvRet13OFBU8Xd3wuQzwyshcO34MzkRXtS5aNVBpY01wQErmK74mp+g3VLRp964SBIhZkv7oClpMmn8Afp1xKm2+3z++uTF0sPSvKAz+bfQp/k87Lpf2MQPqBPzBRRD5kCE6kdTn+c3FaUdNp7afojD7lxYJ5FQOLO20E2/ISGYN+hpwoLIdKG3y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JBDJbRd4tUd6W6rHiAUVLDVsXZVTEdudRUUH3gqwTKZsDu7skJ8BMlpumPhNlJyWW7r.izEG6b7 1zNc0NGdVOZDpVrpXjX4COC_FponL2SYdc9jHuI6IJsrBSM9e2No5nisSTByz10ZAdU9uqOBiPWc QT0bQiv.7Og8PQdWUyFaRv0GmUlwepdil9ll84SZxq9.BLhpvezVUoKU- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Wed, 20 Oct 2021 03:05:47 +0000 Received: by kubenode501.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b160ffbccfb4f730e2875aa0e9116409; Wed, 20 Oct 2021 03:05:41 +0000 (UTC) From: Po Lu References: <20200129204234.GB60190@breton.holly.idiocy.org> Date: Wed, 20 Oct 2021 11:05:38 +0800 In-Reply-To: <20200129204234.GB60190@breton.holly.idiocy.org> (Alan Third's message of "Wed, 29 Jan 2020 20:42:34 +0000") Message-ID: <87k0i8cs59.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.19116 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 371 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 (-) Alan Third writes: > I don=E2=80=99t think there=E2=80=99s really any way round this other tha= n the massive > rewrite the NS port needs to make it handle threads correctly. I don't understand the precise problem here (nor do I understand the thread code.) Could you elaborate on what the problem is, and why it requires a massive rewrite? Thanks.