From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#41755: feature/native-comp (master?): temacs crash in GC during mark phase Date: Sun, 07 Jun 2020 20:16:08 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41736"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Nicolas =?UTF-8?Q?B=C3=A9rtolo?= , Paul Eggert To: 41755@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 07 21:26:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ji0vt-000AhG-6i for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Jun 2020 21:26:13 +0200 Original-Received: from localhost ([::1]:49612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ji0vs-0008GE-21 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Jun 2020 15:26:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ji0vi-0008Fj-V6 for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 15:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ji0vi-00010J-M7 for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 15:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ji0vi-0000Xx-Hz for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 15:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Jun 2020 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41755 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.15915579222017 (code B ref -1); Sun, 07 Jun 2020 19:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jun 2020 19:25:22 +0000 Original-Received: from localhost ([127.0.0.1]:54926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ji0v4-0000WR-BD for submit@debbugs.gnu.org; Sun, 07 Jun 2020 15:25:22 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ji0v2-0000WG-0K for submit@debbugs.gnu.org; Sun, 07 Jun 2020 15:25:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ji0v1-00087J-QH for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 15:25:19 -0400 Original-Received: from mx.sdf.org ([205.166.94.20]:59828) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ji0uz-0000f2-RF for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 15:25:19 -0400 Original-Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 057JP4Fa019353 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 7 Jun 2020 19:25:04 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 057JP3bZ022096; Sun, 7 Jun 2020 19:25:03 GMT Received-SPF: pass client-ip=205.166.94.20; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/07 15:25:15 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181700 Archived-At: I'm experiencing non reproducible GC related crashes building feature/native-comp. Both back-traces I've got looks similar: #0 0x00000000004dfe4c in symbol_marked_p (s=3D0xb4f0) at pdumper.h:149 #1 mark_object (arg=3D) at alloc.c:6731 #2 0x0000000000552390 in traverse_intervals_noorder (tree=3D0xffffffffe070, function=3D0x4e0fe0 , arg=3D0x0) at intervals.c:2= 34 #3 0x00000000004e0060 in mark_object (arg=3D) at alloc.c:67= 84 #4 0x00000000004e08ec in mark_memory (end=3D, start=3D) at alloc.c:4860 #5 mark_stack (bottom=3D, end=3Dend@entry=3D0xffffffff71d0 = "") at alloc.c:5071 #6 0x000000000055fd48 in mark_one_thread (thread=3D0x903b80 ) at thread.c:630 #7 mark_threads_callback (ignore=3D) at thread.c:661 #8 0x00000000004e1238 in garbage_collect () at alloc.c:6101 #9 0x00000000004ff874 in maybe_gc () at lisp.h:5090 #10 eval_sub (form=3Dform@entry=3DXIL(0xcefe63)) at eval.c:2243 #11 0x0000000000500108 in Fwhile (args=3D) at eval.c:1013 ... During: ./temacs --batch -l loadup --temacs=3Dpbootstrap Not sure why but this looks easier to reproduce on aarch64 (even if most of the times is still bootstraping clean). IIUC in this case we are trying to access (struct Lisp_Symbol *) 0xb4f0 but the memory cannot be accessed. The address looks quite odd to me and infact checking with 'info proc mappings' the lowest mapped memory seams to start at 0x400000. So far I was not able to reproduce on X86_64 (where I've rr). This may not be related to feature/native-comp but to one of the recent GC changes and the stack marking strategy. I suspect Nicolas may be observing the same issue on Windows https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-06/msg00320.html I'll keep on looking into this. Regards Andrea In GNU Emacs 28.0.50 (build 1, aarch64-unknown-linux-gnu) of 2020-06-06 built on Repository revision: 3d576c784b3fa01b4d6b33a4172351b7c3a61660 Repository branch: HEAD System Description: Ubuntu 18.04.3 LTS Recent messages: Grep finished with 2 matches found Current locus from *grep* Mark set [2 times] Reverting buffer =E2=80=98Makefile=E2=80=99. Mark set [2 times] Mark saved where search started Mark set [4 times] File GTAGS not found. Run 'gtags'? (y or n) y Quit [2 times] No match Configured using: 'configure --with-nativecomp --with-x-toolkit=3Dno --with-xpm=3Difavailable --with-jpeg=3Difavailable --with-png=3Difavailable --with-gif=3Difavailable --with-tiff=3Difavailable --with-gnutls=3Difavailable --with-nativecomp --prefix=3D/home/koral' Configured features: SOUND NOTIFY INOTIFY ZLIB MODULES THREADS PDUMPER GMP Important settings: value of $LC_ALL: en_US.utf8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: global-magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t shell-dirtrack-mode: t recentf-mode: t savehist-mode: t global-ede-mode: t beacon-mode: t global-git-gutter-mode: t global-whitespace-mode: t delete-selection-mode: t async-bytecomp-package-mode: t helm--remap-mouse-mode: t show-paren-mode: t global-undo-tree-mode: t undo-tree-mode: t winner-mode: t global-auto-revert-mode: t display-time-mode: t which-key-mode: t projectile-mode: t global-company-mode: t company-mode: t global-flycheck-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: ~/.emacs.d/lisp/verilog-mode hides /home/koral/share/emacs/28.0.50/lisp/pro= gmodes/verilog-mode Features: (shadow sort mail-extr emacsbug sendmail find-dired make-mode help-fns radix-tree git-rebase vc-annotate vc vc-dispatcher two-column iso-transl semantic/db-file data-debug cedet-files ede/locate semantic/lex-spp vc-git bug-reference macrostep-c cmacexp macrostep hideshow misearch multi-isearch magit-extras magit-bookmark magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode diff-mode magit-core magit-autorevert magit-margin magit-transient magit-process git-commit log-edit message rmc puny rfc822 mml mml-sec epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log with-editor ffap tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell parse-time iso8601 ls-lisp ivy colir ivy-overlay cus-start cus-load ede/emacs semantic/db semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local ede/dired mule-util recentf tree-widget helm-x-files helm-sys term/xterm xterm paredit gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wdired dired dired-loaddefs sanityinc-tomorrow-eighties-theme color-theme-sanityinc-tomorrow color elisp-slime-nav ob-lisp org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete org-list org-faces org-entities time-date noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs server savehist ede/speedbar ede/files ede ede/detect ede/base ede/auto ede/source eieio-base eieio-speedbar speedbar ezimage dframe eieio-custom wid-edit cedet beacon elisp-depend google-translate google-translate-default-ui google-translate-core-ui google-translate-core google-translate-tk google-translate-backend git-gutter helm-gtags pulse which-func imenu whitespace bash-completion vlf vlf-base vlf-tune flex-mode jison-mode bison-mode cc-mode cc-guess cc-menus cc-cmds cc-styles cc-align cc-fonts cc-engine cc-vars cc-defs git f s helm-git-grep delsel magit-mode magit-git magit-utils crm magit-section transient helm-swoop ido helm-command helm-elisp helm-eval edebug backtrace helm-for-files helm-bookmark helm-adaptive helm-info bookmark text-property-search pp helm-external helm-net xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap helm-mode helm-files helm-buffers helm-occur helm-tags helm-locate helm-grep helm-regexp format-spec helm-utils helm-help helm-types helm-config helm-easymenu async-bytecomp helm helm-source eieio-compat helm-multi-match helm-lib async paren undo-tree diff winner windmove autorevert filenotify ibuf-macs time image which-key advice projectile grep compile ibuf-ext ibuffer ibuffer-loaddefs thingatpt company-oddmuse company-keywords company-etags etags fileloop generator xref project 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 pcase flycheck find-func dash gcmh comp rx cl-extra help-mode k-utils gud easy-mmode comint regexp-opt ansi-color ring edmacro kmacro slime-autoloads info tool-bar 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 tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select 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 inotify multi-tty make-network-process emacs) Memory information: ((conses 16 2475879 106891) (symbols 48 40051 2) (strings 32 181600 47924) (string-bytes 1 9741313) (vectors 16 77416) (vector-slots 8 1228210 168271) (floats 8 780 7731) (intervals 56 158344 397) (buffers 992 56))