From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: NiwTinray via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#38912: 27.0.60; PDumper meets segmentation fault when evil is loaded Date: Sat, 4 Jan 2020 09:49:14 +0800 Message-ID: <333553AC-68DE-4F1C-9586-5A13248AD6DD@icloud.com> Reply-To: NiwTinray Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="14637"; mail-complaints-to="usenet@blaine.gmane.org" To: 38912@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 04 04:27:14 2020 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 1ina5p-0003g1-DZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jan 2020 04:27:13 +0100 Original-Received: from localhost ([::1]:59056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ina5o-0000PU-7w for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jan 2020 22:27:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60714) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ina5h-0000PK-5J for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 22:27:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ina5e-0006L1-Ro for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 22:27:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ina5e-0006Jl-JI for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 22:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ina5e-0007pj-Fn for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 22:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: NiwTinray Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 03:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38912 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.157810837630058 (code B ref -1); Sat, 04 Jan 2020 03:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Jan 2020 03:26:16 +0000 Original-Received: from localhost ([127.0.0.1]:42309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ina4t-0007oh-79 for submit@debbugs.gnu.org; Fri, 03 Jan 2020 22:26:16 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:39106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inYZY-0005Pm-Mr for submit@debbugs.gnu.org; Fri, 03 Jan 2020 20:49:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38878) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inYZW-00045a-Ds for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 20:49:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inYZK-0001Io-4x for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 20:49:41 -0500 Original-Received: from pv50p00im-ztdg10021801.me.com ([17.58.6.56]:37598) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1inYZI-00018O-Pi for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 20:49:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1578102559; bh=q67Y9pd/9dvq+qUzIKAS3VgOyR4Rog6hUCkXOhaEtds=; h=From:Content-Type:Subject:Message-Id:Date:To; b=Q4aUGHlfI6dvax+n+/VDHsAEXPIHGeK0kWPCHw/Jxtyf/ROYzVwZzT1mRA3gQ4ajr +TAX8PKR0YULYgt3HqRs/u9gTEVvpbcBa/gHU731EKO5AZ/GxAcjoAHZGWzzwlHSiN 4/0ubWodjdIy3iq4MZaAyO1Yv2mP1Bq2xifKuQx+LaZObUfoGLCtngsT0Ulwszr7Mj 1Cx2dyUEy+vbKfo0HiURx2ZuTrFqolTDeDQdxK9jWludPh90U5VkTfzZg3YOf1fjF1 4WOGeftesy5JoP5Io6pKt54gmR3w802uqhTxJJhFoIBl7CcIpjZ5WpFVxmj3TU/+We ObOMB0S0/NNZQ== Original-Received: from [10.128.195.48] (unknown [59.64.129.71]) by pv50p00im-ztdg10021801.me.com (Postfix) with ESMTPSA id 4F0DA360802 for ; Sat, 4 Jan 2020 01:49:18 +0000 (UTC) X-Mailer: Apple Mail (2.3445.104.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2020-01-03_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-2001040016 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Mailman-Approved-At: Fri, 03 Jan 2020 22:26:14 -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:174141 Archived-At: Hi, Emacs Dev,=20 I was testing the new portable dumper with my personal Emacs. When I loaded my dumped file, Emacs crashed on segmentation fault. After tracking down the issue, I found the issues is caused by the undo-tree mode in package "evil". To reproduce the bug, try this: emacs --batch -f package-initialize --eval=3D'(use-package evil :ensure t)' --eval=3D'(dump-emacs-portable "test.pdmp")' && emacs --dump-file test.pdmp If I turned off the global-undo-tree-mode manually, it won't crash: emacs --batch -f package-initialize --eval=3D'(use-package evil :ensure t)' --eval=3D'(global-undo-tree-mode -1)' --eval=3D'(dump-emacs-portable "test.pdmp")' && emacs --dump-file test.pdmp So the problem must be exist in the undo-tree-mode. I don't have the knowledge/techniques to track down the bug further. Please help me investigate this! Backtrace on crash: #0 0x00000000004f1240 in Fcurrent_active_maps (olp=3Dolp@entry=3D0x30, = position=3Dposition@entry=3D0x0) at keymap.c:1541 #1 0x00000000004f167d in Fkey_binding (key=3D0x7fffefba745d, = accept_default=3D0x0, no_remap=3D0x0, position=3D0x0) at keymap.c:1681 #2 0x00000000005546a3 in Ffuncall (nargs=3D2, = args=3Dargs@entry=3D0x7fffffffd5d0) at eval.c:2794 #3 0x0000000000588d28 in exec_byte_code (bytestr=3D, = vector=3D0x7fffefba2715, maxdepth=3D, = args_template=3D, nargs=3Dnargs@entry=3D0, = args=3D, args@entry=3D0x7fffefba2718) at bytecode.c:633 #4 0x000000000055439f in funcall_lambda (fun=3D0x7fffffffd5e3, = nargs=3Dnargs@entry=3D0, arg_vector=3D0x7fffefba2718, = arg_vector@entry=3D0x7fffffffd768) at eval.c:2989 #5 0x00000000005545ef in Ffuncall (nargs=3D1, = args=3Dargs@entry=3D0x7fffffffd760) at eval.c:2808 #6 0x0000000000588d28 in exec_byte_code (bytestr=3D, = vector=3D0x7fffefba262d, maxdepth=3D, = args_template=3D, nargs=3Dnargs@entry=3D0, = args=3D, args@entry=3D0x7fffefba2630) at bytecode.c:633 #7 0x000000000055439f in funcall_lambda (fun=3D0x7fffffffd79e, = nargs=3Dnargs@entry=3D0, arg_vector=3D0x7fffefba2630, = arg_vector@entry=3D0x7fffffffd958) at eval.c:2989 #8 0x00000000005545ef in Ffuncall (nargs=3D1, args=3D0x7fffffffd950) at = eval.c:2808 #9 0x00000000005546e9 in funcall_nil (nargs=3D, = args=3D) at eval.c:2435 #10 0x00000000005534a5 in run_hook_with_args (nargs=3D1, = args=3D0x7fffffffd950, funcall=3D0x5546e0 ) at eval.c:2612 #11 0x0000000000553616 in Frun_hook_with_args (args=3D0x7fffffffd950, = nargs=3D1) at eval.c:2477 #12 run_hook (hook=3D0x7fffeefb53f0) at eval.c:2625 #13 Frun_hooks (nargs=3D1, args=3D0x7fffffffd9f8) at eval.c:2459 #14 0x00000000005546a3 in Ffuncall (nargs=3D2, = args=3Dargs@entry=3D0x7fffffffd9f0) at eval.c:2794 #15 0x0000000000588d28 in exec_byte_code (bytestr=3D, = vector=3D0x7fffefab5415, maxdepth=3D, = args_template=3D, nargs=3Dnargs@entry=3D1, = args=3D, args@entry=3D0x7fffefab5418) at bytecode.c:633 #16 0x000000000055439f in funcall_lambda (fun=3D0x7fffffffda66, = nargs=3Dnargs@entry=3D1, arg_vector=3D0x7fffefab5418, = arg_vector@entry=3D0x7fffffffdbd0) at eval.c:2989 #17 0x00000000005545ef in Ffuncall (nargs=3D2, = args=3Dargs@entry=3D0x7fffffffdbc8) at eval.c:2808 #18 0x0000000000588d28 in exec_byte_code (bytestr=3D, = vector=3D0x7fffefc794ad, maxdepth=3D, = args_template=3D, nargs=3Dnargs@entry=3D0, = args=3D, args@entry=3D0x7fffefc794b0) at bytecode.c:633 #19 0x000000000055439f in funcall_lambda (fun=3D0x7fffffffdbf1, = nargs=3Dnargs@entry=3D0, arg_vector=3D0x7fffefc794b0, = arg_vector@entry=3D0x7fffffffdd50) at eval.c:2989 #20 0x00000000005545ef in Ffuncall (nargs=3Dnargs@entry=3D1, = args=3Dargs@entry=3D0x7fffffffdd48) at eval.c:2808 #21 0x0000000000554758 in call0 (fn=3D0x7fffef08c260) at eval.c:2647 #22 0x000000000050a4ff in get_minibuffer (depth=3Ddepth@entry=3D0) at = minibuf.c:754 #23 0x0000000000501283 in init_buffer () at buffer.c:5430 #24 0x00000000004139ba in main (argc=3D3, argv=3D) at = emacs.c:1777 In GNU Emacs 27.0.60 (build 1, x86_64-pc-linux-gnu) of 2020-01-01 built on omnisky Repository revision: 186152ba400b58d2d278c52d2e3d896decae767e Repository branch: emacs-27 System Description: Ubuntu 16.04.6 LTS Recent messages: Saving file /home/ntr/.config/emacs/custom.el... Wrote = /home/ntr/.config/emacs/emacs.saves/.!home!ntr!.config!emacs!custom.el.~un= do-tree~ Wrote /home/ntr/.config/emacs/custom.el helm-M-x: Package =A1=AEevil-20190729.704=A1=AF is used by = =A1=AEevil-multiedit=A1=AF as dependency, not deleting Mark saved where search started Package =A1=AEhighlight-parentheses-20180704.1102=A1=AF deleted. Mark saved where search started Saving file /home/ntr/.config/emacs/bunny-core-packages.el... Wrote = /home/ntr/.config/emacs/emacs.saves/.!home!ntr!.config!emacs!bunny-core-pa= ckages.el.~undo-tree~ Wrote /home/ntr/.config/emacs/bunny-core-packages.el Configured using: 'configure --with-x-toolkit=3Dno' Configured features: XPM JPEG TIFF GIF PNG SOUND GSETTINGS GLIB NOTIFY INOTIFY GNUTLS FREETYPE HARFBUZZ XFT ZLIB OLDXMENU X11 XDBE XIM MODULES THREADS JSON PDUMPER GMP Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_CTYPE: zh_CN.UTF-8 value of $LC_MONETARY: zh_CN.UTF-8 value of $LC_NUMERIC: zh_CN.UTF-8 value of $LC_TIME: zh_CN.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: doom-modeline-mode: t recentf-mode: t xterm-mouse-mode: t display-time-mode: t workgroups-mode: t keyfreq-autosave-mode: t keyfreq-mode: t global-magit-file-mode: t magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t company-statistics-mode: t global-company-mode: t company-mode: t global-hungry-delete-mode: t hungry-delete-mode: t eyebrowse-mode: t helm-mode: t override-global-mode: t delete-selection-mode: t auto-revert-mode: t global-hl-line-mode: t which-key-mode: t global-evil-matchit-mode: t evil-matchit-mode: t global-evil-collection-unimpaired-mode: t evil-collection-unimpaired-mode: t evil-leader-mode: t global-undo-tree-mode: t undo-tree-mode: t shell-dirtrack-mode: t evil-mode: t evil-local-mode: t global-hl-todo-mode: t hl-todo-mode: t global-highlight-parentheses-mode: t highlight-parentheses-mode: t aggressive-indent-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-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 line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (evil-matchit-simple helm-ring em-unix em-term em-script em-prompt em-ls em-hist em-pred em-dirs esh-var em-cmpl em-basic em-banner em-alias esh-mode eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups shadow sort mail-extr emacsbug sendmail tabify ido face-remap image-file mule-util view lsp-clients lsp-haxe lsp-erlang lsp-fsharp lsp-metals lsp-elm lsp-dart lsp-clojure lsp-go lsp-xml lsp-css lsp-intelephense lsp-vetur lsp-html lsp-solargraph lsp-rust lsp-pyls lsp helm-for-files helm-bookmark helm-adaptive helm-external helm-net ffap vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc vc-dispatcher jka-compr eieio-opt speedbar sb-image ezimage dframe help-fns radix-tree so-long winner helm-command helm-elisp helm-eval edebug backtrace helm-info term/xterm xterm doom-modeline doom-modeline-segments doom-modeline-env doom-modeline-core recentf magit-bookmark bookmark ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util xt-mouse bunny-sshfs flymake-diagnostic-at-point popup lsp-python-ms python-el-fgallina-expansions python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 ls-lisp company-lsp lsp-mode ewoc markdown-mode tree-widget spinner network-stream nsm inline ht em-glob esh-util dash-functional bindat flymake-proc flymake warnings bunny-pyenv eldoc-eval all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons memoize eshell-git-prompt leuven-theme time bunny-insert-surroundings bunny-krws bunny-company-simple-complete bunny-eshell-extensions bunny-terminal-here bunny-workgroups bunny-register-jumper bunny-h5ls bunny-prettify-json-file web-server web-server-status-codes keyfreq evil-magit 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 which-func imenu magit-diff smerge-mode magit-core magit-autorevert magit-margin magit-transient magit-process magit-mode git-commit magit-git magit-section magit-utils crm log-edit message rmc 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 async-bytecomp server git-timemachine transient vc-git diff-mode org-preview-html eww mm-url gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr url-queue shr text-property-search puny svg xml the-org-mode-expansions org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-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 find-func cal-menu calendar cal-loaddefs company-statistics company-oddmuse company-keywords company-etags etags fileloop generator 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 multi-term shell-pop term disp-table ehelp htmlize hungry-delete expand-region text-mode-expansions html-mode-expansions er-basic-expansions expand-region-core expand-region-custom golden-ratio eyebrowse use-package-diminish buffer-move transpose-frame helm-ag helm-descbinds helm-projectile cus-edit cus-start cus-load wid-edit 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 helm-source eieio-compat helm-multi-match helm-lib async use-package-bind-key bind-key counsel xdg xref project swiper ivy delsel colir ivy-overlay ace-window avy ace-jump-zap ace-jump-mode cl ranger autorevert filenotify hl-line evil-collection-dired dired dired-loaddefs evil-collection-neotree neotree projectile grep compile ibuf-ext ibuffer ibuffer-loaddefs shrink-path rx f s dash which-key evil-multiedit iedit iedit-lib evil-nerd-commenter evil-nerd-commenter-operator evil-nerd-commenter-sdk sgml-mode dom evil-matchit evil-matchit-sdk evil-collection-unimpaired evil-collection bunny-minor-mode-leader-keymap zone-rainbow color zone symbol-overlay evil-leader evil evil-integration undo-tree diff evil-maps evil-commands reveal flyspell ispell evil-jumps evil-command-window evil-types evil-search evil-ex shell pcomplete comint ansi-color evil-macros evil-repeat evil-states evil-core advice evil-common windmove thingatpt rect evil-digraphs evil-vars edmacro kmacro hl-todo posframe rainbow-delimiters highlight-parentheses move-text macrostep ring pp exec-path-from-shell try url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap anaphora aggressive-indent easy-mmode cl-extra help-mode use-package-ensure use-package-core 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/x-win x-win term/common-win x-dnd 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 inotify dynamic-setting system-font-setting font-render-setting x multi-tty make-network-process emacs) Memory information: ((conses 16 632937 99192) (symbols 48 53853 52) (strings 32 181171 13075) (string-bytes 1 5457906) (vectors 16 89834) (vector-slots 8 1780900 209238) (floats 8 893 401) (intervals 56 24129 5564) (buffers 1000 48) (heap 1024 49509 3144))=