From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#43700: 28.0.50; Crash creating a second frame Date: Thu, 01 Oct 2020 01:15:20 +0100 Message-ID: <86a6x6g5t3.fsf@gmail.com> References: <83y2ksk5sb.fsf@gnu.org> <6b20df65-0c09-f54c-1018-e95f7509aa75@gmail.com> <86tuvf6ndi.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39787"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) To: 43700@debbugs.gnu.org Cancel-Lock: sha1:3LUawBN5eHSth3TkJSRbjiZRqWA= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 01 02:16:28 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 1kNmGp-000AFt-T4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Oct 2020 02:16:27 +0200 Original-Received: from localhost ([::1]:49692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNmGo-0000br-RS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 20:16:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNmGQ-0000Xx-Sp for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 20:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50092) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNmGP-0007wQ-Vc for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 20:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNmGP-00070a-Pa for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 20:16:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2020 00:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43700 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.160151135126302 (code B ref -1); Thu, 01 Oct 2020 00:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Oct 2020 00:15:51 +0000 Original-Received: from localhost ([127.0.0.1]:33405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNmGF-0006pn-36 for submit@debbugs.gnu.org; Wed, 30 Sep 2020 20:15:51 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNmGA-0006l0-24 for submit@debbugs.gnu.org; Wed, 30 Sep 2020 20:15:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNmG5-0000RV-CJ for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 20:15:45 -0400 Original-Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:41078 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNmFz-0007om-6S for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 20:15:36 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kNmFq-0008y6-CX for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 02:15:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/30 20:15:28 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no 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:189441 Archived-At: On Wed 30 Sep 2020, Andy Moreton wrote: > On Tue 29 Sep 2020, Andy Moreton wrote: > >> On 29/09/2020 15:37, Eli Zaretskii wrote: >>>> From: Andy Moreton >>>> Date: Tue, 29 Sep 2020 11:46:48 +0100 >>>> >>>> After loading emacs (and files saved by desktop), do C-x 5 2 to create a >>>> new frame. Emacs crashes, and gdb shows the following backtrace. >>> Is this repeatable? Does it happen with "emacs -Q", per chance? Or >>> with unoptimized builds? > > Building with -O0 from commit 5b0d8d0f288fd505ca90bd30df709a5e7ab540d6 I > can reproduce the crash on another machine with the same setup: I have not managed to repro this problem from emacs -Q, but after further investigation I have narrowed it down to some interaction with settings in my .emacs.d/init.el and org mode: 1) Run "emacs --no-desktop" (so using my init.el) 2) Load a trivial org file (e.g. containing "* foo", a single heading) 3) Type "C-x 5 2" to create a new frame (causing the crash) The init.el file has: (tool-bar-mode 0)) ;; ...much omitted... (use-package org :bind (:map org-mode-map ([remap org-toggle-archive-tag] . ignore) ([remap org-archive-subtree] . ignore) ([remap org-archive-subtree-default] . ignore) ([remap org-archive-to-archive-sibling] . ignore)) ... If I comment out the remap bindings, emacs does not crash in the recipe above, and also does not crash if I use this instead: (use-package org :bind (:map org-mode-map ("C-c C-x a" . nil) ;; was org-toggle-archive-tag ("C-c $" . nil) ;; was org-archive-subtree ("C-c C-x C-a" . nil) ;; was org-archive-subtree-default ("C-c C-x A" . nil)) ;; was org-archive-to-archive-sibling ... I have an effective workaround now, but nevertheless emacs should not crash: the key binding commands should reject invalid configuration. The use-package binding internals invoke define-key, and that macro should reject invalid settings. AndyM