From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E8=B7=AF=E5=AE=A2?= Newsgroups: gmane.emacs.bugs Subject: bug#46586: 26.3, 27.1.50; Emacs crash in a backtrace (core) dump (a long standing issue) Date: Wed, 17 Feb 2021 18:13:56 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25064"; mail-complaints-to="usenet@ciao.gmane.io" To: 46586@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 17 11:15:11 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 1lCJrT-0006LV-HB for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Feb 2021 11:15:11 +0100 Original-Received: from localhost ([::1]:51766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCJrS-0003qo-5q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Feb 2021 05:15:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCJrK-0003qP-L0 for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 05:15:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59219) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCJrK-0004x0-DB for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 05:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lCJrK-0002y6-9F for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 05:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E8=B7=AF=E5=AE=A2?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Feb 2021 10:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46586 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.161355687811359 (code B ref -1); Wed, 17 Feb 2021 10:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Feb 2021 10:14:38 +0000 Original-Received: from localhost ([127.0.0.1]:42531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCJqw-0002x8-EL for submit@debbugs.gnu.org; Wed, 17 Feb 2021 05:14:38 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:53356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCJqu-0002x1-Rg for submit@debbugs.gnu.org; Wed, 17 Feb 2021 05:14:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCJqu-0003n4-N3 for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 05:14:36 -0500 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:36168) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCJqt-0004kk-86 for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 05:14:36 -0500 Original-Received: by mail-wr1-x42a.google.com with SMTP id u14so16766867wri.3 for ; Wed, 17 Feb 2021 02:14:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=x1nb/oNc676odp69fibMh/xiS4IdZASE1/rNZjWSaoo=; b=bcGu0HHsqmxB2th3JgcnhSCf+PaUYzDuw2di3L26uirtPG323FqI0urDhUtFtM6QCr 9+QYR4ivHkO2l+/l72mbGY5E5X0r8iJrP7wUte9n7ilOGogrdFEqvs9d4Og3MK9DFuPf +ssPVBZa1+deV+AaPvN88uzpnWoKFkW9TnPCisT+mjgcscCMTWrviScZ/yghVCMK3jXZ JejBkOCJDv5W+ECTIsdcXYxaLQFQ4K3vl29sv7hkPl0gnJURjm+ElXM1QhN63Dhj8iww LpnlHOsMTff8v2SI3gLTZ2VfFSKIiCsCL5atev4TSg5fawRXyl625l84q6C+erzkwqhs 60eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=x1nb/oNc676odp69fibMh/xiS4IdZASE1/rNZjWSaoo=; b=EjXNnvg4oPkWSUWZLthPtitD58Dp1woZVAQ6GwzQ8xo2zVELb50ZQ4lREx0m45rC+B 6sVK9zByRKQVZgKKESBzBXht1djCbzhAAAarOCeZ09umtudqfugyARV6rLTitRUOHnQw Xdg2qO5riHqWlDg4ZrJOZDoD1mUL3GmUpNzk8QMUNh0U7NYatfm0ZCN4Ha5BukICrQ47 6coq45e4o/zOUN1OtWMUBANENS7Pk3Fi+WNzv3yCVkC7Kvx0FxwdTfz0Ydh/FgBD0yvE kScEOo2EPy58GgpiYzolQHu87wLI48K53HZBBdg2nmOfnXQ0GUbPCNqSsClDM2A1rC2S fixA== X-Gm-Message-State: AOAM531hrp2dEDD+553wObzGPuJPcZW5YmC7aTpdFLWB2iSfv6o7jPw5 y/oSx/j2PeAySCqWQp3vFOkYZ5WxhDVFCUg0yjeZqO5pH7Wv0w== X-Google-Smtp-Source: ABdhPJxaH+0mCXpfOR1g9mamZtdZ+aJYLj0HA0n4/CnwPmNCBwc9o6onTPkA6cdBJ7eW7RaoU8NWx7hi/vU08yp7w0Y= X-Received: by 2002:adf:dd87:: with SMTP id x7mr29202434wrl.389.1613556872470; Wed, 17 Feb 2021 02:14:32 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=luke.yx.lee@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:200190 Archived-At: Hi all, I found a short data clip can always crash Emacs 26.3 or 27.1.50 with a terminal backtrace (core) dump in the "read()" function. It took me a few hours to narrow it down and finally reach this minimal crashing data set: ----- code begin ----- (#1=(#("000008964 .gnus.el" 0 18 (r #1#)) (def #2=#("000008964 .gnus.el" 0 18 (r (#2# (def #3=#("000006393 .gnus.el" 0 18 (r #4=(#3# (def #("000006393 .gnus.el" 0 18 (r #4#)) "x"))))"x"))))"x"))) ----- code end ----- Try to `read' or `eval' this block of code (C-x C-e) will immediately crash Emacs 26.3 or 27.1.50; however, older Emacs 26.0.50 works well by entering the debugger with an error like: ----- elisp debugger message begin ----- Debugger entered--Lisp error: (invalid-function (#("000008964 .gnus.el" 0 18 (r #1)) (def #("000008964 .gnus.el" 0 18 (r (#3 (def #("000006393 .gnus.el" 0 18 (r (#7 (def #("000006393 .gnus.el" 0 18 (r #9)) "x")))) "x")))) "x"))) ((#("000008964 .gnus.el" 0 18 (r #1)) (def #("000008964 .gnus.el" 0 18 (r (#3 (def #("000006393 .gnus.el" 0 18 ...) "x")))) "x"))) eval(((#("000008964 .gnus.el" 0 18 (r #2)) (def #("000008964 .gnus.el" 0 18 (r (#4 (def #("000006393 .gnus.el" 0 18 ...) "x")))) "x"))) nil) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) ----- elisp debugger message end ----- Funny thing is that if I change any of the above ".gnus.el" to another file name, Emacs won't crash and is able to enter the debugger like 26.0.50. Is there anything special about the ".gnus.el" ? This short crashing code block was actually a lot longer as a part of a big bookmark file, and has long ago started to crash newer Emacs than 26.0.50. I didn't know the root cause till these days I decided to figure that out and finally extracted that block out and simplified it to this simple form. Could anyone help fix this long standing issue? Thanks. -- Best regards, Luke Lee