From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Han Boetes Newsgroups: gmane.emacs.bugs Subject: bug#51689: emacs Date: Fri, 19 Nov 2021 23:18:04 +0100 Message-ID: References: <83czn2tu7i.fsf@gnu.org> <838rxptx7m.fsf@gnu.org> <83sfvw1bf0.fsf@gnu.org> <83v90qx7gf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6895"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51689@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 19 23:20:36 2021 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 1moCFH-0001bn-Rn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Nov 2021 23:20:36 +0100 Original-Received: from localhost ([::1]:53756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moCFG-0002CT-NG for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Nov 2021 17:20:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moCDm-0001j5-0M for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 17:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57409) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moCDl-00062U-Oy for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 17:19:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moCDl-0005YD-L4 for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 17:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Han Boetes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Nov 2021 22:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51689 X-GNU-PR-Package: emacs Original-Received: via spool by 51689-submit@debbugs.gnu.org id=B51689.163736028821265 (code B ref 51689); Fri, 19 Nov 2021 22:19:01 +0000 Original-Received: (at 51689) by debbugs.gnu.org; 19 Nov 2021 22:18:08 +0000 Original-Received: from localhost ([127.0.0.1]:40722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moCCu-0005Wu-0G for submit@debbugs.gnu.org; Fri, 19 Nov 2021 17:18:08 -0500 Original-Received: from dahud.boetes.org ([136.144.229.186]:41625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moCCs-0005Wk-A8 for 51689@debbugs.gnu.org; Fri, 19 Nov 2021 17:18:07 -0500 Original-Received: by dahud.boetes.org (Postfix, from userid 1026) id 441FDD1597; Fri, 19 Nov 2021 23:18:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boetes.org; s=woosh; t=1637360284; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cvNo8eMgrJsBzJZaw0RRFo04oc+uY5Q9IudqR0bT1Qs=; b=XZEyHjJtVUqoaWLIyEoyFQeUye6eAMu3dVbrpihbH26e5w2otnzjgsJ6vcjXV7KbK90CIg q9aRa6cUkkTqRTcF3k7Nf5bVvt2MGfqfVzCy9jriphRSltH8MvekoXNp1DLYgGAiF9Apor LfcDTJ6eXEwKqLrQV4aeDjUxfTir3nvq63ZJ2HREOq8WowlKDzsajgYKX5z3H449xjyPl+ m6VPxJZCL2ttaUkj1VZiXo/JPzq0k30KDjZutcysikbco1iaYslAReCKqTiDrWTZP10u6Y e6BxwvTiZcvhJ9KhU6+Adj/YTtZwfitYE9aN9mBVRCb+Aw4qr3VFc0yyzjHwEA== Content-Disposition: inline In-Reply-To: <83v90qx7gf.fsf@gnu.org> 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:220437 Archived-At: Another thing I noticed: if there is a valid ~/.config/emacs/init.el, emacs -nw -Q works fine. If I mv ~/.config/emacs{,.bak} I see the problem. I don't have a /etc/emacs folder either, so maybe that helps you in reproducing the issue? Eli Zaretskii wrote: > . emacs -Q -nw > . in *scratch* type "features" (without the quotes) > . go to the end of "features", after the final 's', and type C-j > . if the list Emacs inserts into the buffer has ellipsis in it, go > to that ellipsis and type RET > . post the resulting list here This feature didn't do anything right after the start, but after closing the *scratch* window, and then trying again in the new *scratch* I got: features (comp-cstr warnings rx cl-seq cl-macs cl-extra help-mode tool-bar seq gv subr-x byte-opt cl-loaddefs cl-lib bytecomp byte-compile cconv iso-transl tooltip eldoc paren electr\ ic uniquify ediff-hook vc-hooks lisp-float-type elisp-mode tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch\ easymenu timer select mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-v\ iet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-\ hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env co\ de-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind kqueue lcms2 multi-tty make-network-process native-compile emacs) > I think at this point only running under a debugger will help us > efficiently. So please act according to the instructions below, and > show the backtrace it produces: > > $ cd /path/to/emacs/src/ > $ gdb ./emacs > GNU gdb (GDB) 11.1 > Copyright (C) 2021 Free Software Foundation, Inc. > ... > (gdb) source ./.gdbinit > (gdb) break Fsignal > (gdb) commands > Type commands for breakpoint(s) 2, one per line. > End with a line saying just "end". > > pp error_symbol > > pp data > > end > (gdb) run -Q -nw > > When the breakpoint breaks, look at the error_symbol and data printed > by GDB; if the symbol are not "void-function", type "continue" at > GDB's prompt to run Emacs further. When you eventually get symbol as > "void-function" and data that mentions regexp-opt-group, type: > > (gdb) thread apply all bt > > This should produce both C-level backtrace and Lisp-level backtrace of > all the threads in Emacs. Please post that here in its entirety. /usr/pkgmk/work/emacs/src/emacs/src % egdb ./emacs GNU gdb (GDB) 9.2 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-openbsd7.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./emacs... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] Environment variable "DISPLAY" not defined. TERM = screen-256color Breakpoint 1 at 0x137c7f .gdbinit:1239: Error in sourced command file: No symbol "defined_HAVE_X_WINDOWS" in current context. [snip: other instructions] And after (gdb) run -Q -nw I get: Breakpoint 3, 0x00000d95326ee646 in Fsignal () No symbol "error_symbol" in current context. Also after each consecutive continue, until emacs starts normally, without triggering the error. So I think something is missing here. But what? # Han