From unknown Sun Jun 15 08:16:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#46586 <46586@debbugs.gnu.org> To: bug#46586 <46586@debbugs.gnu.org> Subject: Status: 26.3, 27.1.50; Emacs crash in a backtrace (core) dump (a long standing issue) Reply-To: bug#46586 <46586@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:16:03 +0000 retitle 46586 26.3, 27.1.50; Emacs crash in a backtrace (core) dump (a long= standing issue) reassign 46586 emacs submitter 46586 =E8=B7=AF=E5=AE=A2 severity 46586 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 17 05:14:38 2021 Received: (at submit) by debbugs.gnu.org; 17 Feb 2021 10:14:38 +0000 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 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 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 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 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) MIME-Version: 1.0 From: =?UTF-8?B?6Lev5a6i?= Date: Wed, 17 Feb 2021 18:13:56 +0800 Message-ID: Subject: 26.3, 27.1.50; Emacs crash in a backtrace (core) dump (a long standing issue) To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 17 11:04:36 2021 Received: (at 46586) by debbugs.gnu.org; 17 Feb 2021 16:04:37 +0000 Received: from localhost ([127.0.0.1]:44760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCPJc-0005gw-KW for submit@debbugs.gnu.org; Wed, 17 Feb 2021 11:04:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCPJa-0005gj-1O for 46586@debbugs.gnu.org; Wed, 17 Feb 2021 11:04:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49118) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCPJU-00074I-Sf; Wed, 17 Feb 2021 11:04:28 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1527 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lCPJT-00041J-38; Wed, 17 Feb 2021 11:04:27 -0500 Date: Wed, 17 Feb 2021 18:04:37 +0200 Message-Id: <83im6q7ka2.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?6Lev5a6i?= In-Reply-To: (message from =?utf-8?B?6Lev5a6i?= on Wed, 17 Feb 2021 18:13:56 +0800) Subject: Re: bug#46586: 26.3, 27.1.50; Emacs crash in a backtrace (core) dump (a long standing issue) References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46586 Cc: 46586@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: 路客 > Date: Wed, 17 Feb 2021 18:13:56 +0800 > > ----- 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: It's an infinite recursion in substitute_object_recurse, called by lread--substitute-object-in-subtree. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 17 20:56:50 2021 Received: (at 46586) by debbugs.gnu.org; 18 Feb 2021 01:56:50 +0000 Received: from localhost ([127.0.0.1]:45493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCYYk-0007le-GY for submit@debbugs.gnu.org; Wed, 17 Feb 2021 20:56:50 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:53319) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCYYi-0007lR-SN for 46586@debbugs.gnu.org; Wed, 17 Feb 2021 20:56:49 -0500 Received: by mail-wm1-f52.google.com with SMTP id x16so846851wmk.3 for <46586@debbugs.gnu.org>; Wed, 17 Feb 2021 17:56:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UWJkL2a8Cg1tc5Jd+Rz8vF/QtgnWYFv/XmvI34T7tZY=; b=At9D6tFfmMZb3HKEWMmOpNmN7IOweYxU4Nl+kGZXHXCm/SSHOn0ApArP+9v5G4ux83 WUPL2TW6KUJQCGOK9auLwkPBfGz9qkLtlepPUwqD/BXoGvBUu6O0sqMeM9TZDf22JZGn tSh+sFDRnyYJpC16VjIAIpFw9pl3Z0aq4yrX6LODWYluvcmOZyHRq3v37nlSKT94hggV iGOMYEu4pTiZxktIkk/A5eC25n57k1++DqTaaIgg3rB1s9KVMgbytPnxZ4HbSkyUx3Ms thze9h3tvTJGtPBkZ+5aKJ/a4QJfMxnNdl/yMV7XcAE2awKz5m2yeX80oDptJzFum9jj CVXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UWJkL2a8Cg1tc5Jd+Rz8vF/QtgnWYFv/XmvI34T7tZY=; b=CyNA4BNsI5Dw+4S+YcVrhl6lBjJMY9cdglFZ85YWR8pCkENbYF0RHRHtYf4FdSarUw /9XZQvlfKpmSNtI6H4jqIOBVRLTtQ1VkdmdXxK2glcQtuY+9bWrVlZ0iXAzvBP+TGuuo IaHpSRScqRsxMp32OLwB3oMd5JlaH8Ej/P47dvsjbKKiYPe78E74GZkj3dCu5ipf/m7D 9fTk+5zvWcBOE0PLLnIThA2TBjj9HnqbKUfDnVVjRcqoV0XwlDEROVkZShpmdKcloBek SjqOWbdwULiNaZ297K9ERrMBse49Gdh0+Njr/dyP2JYAsCjrisaMKdD4zhZRrJg+/Dso RBUQ== X-Gm-Message-State: AOAM5303bcNH3keJpvyq8v4eVkviNvZjejX0bh0vk5bfP+RidjZ5GZkq svz511cYQstWBa4nvgVYI+zQ0PCSv6PpNhHLq1RTS7ROPHv84w== X-Google-Smtp-Source: ABdhPJzBsf04aE+y6a4cb1PA23Nj6lG0bW8leo2eBY+jSwR2ga+/XAmRks/cJcZ7K2QU8Z7csmhcVzzbztdulkS8000= X-Received: by 2002:a1c:f708:: with SMTP id v8mr1316240wmh.25.1613613402858; Wed, 17 Feb 2021 17:56:42 -0800 (PST) MIME-Version: 1.0 References: <83im6q7ka2.fsf@gnu.org> In-Reply-To: <83im6q7ka2.fsf@gnu.org> From: =?UTF-8?B?6Lev5a6i?= Date: Thu, 18 Feb 2021 09:56:06 +0800 Message-ID: Subject: Re: bug#46586: 26.3, 27.1.50; Emacs crash in a backtrace (core) dump (a long standing issue) To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46586 Cc: 46586@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > It's an infinite recursion in substitute_object_recurse, called by > lread--substitute-object-in-subtree. I see, but why is Emacs 26.0.50 or earlier able to catch this issue? Shouldn't the read() function try to prevent itself from crashing? From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 18 09:16:20 2021 Received: (at 46586) by debbugs.gnu.org; 18 Feb 2021 14:16:20 +0000 Received: from localhost ([127.0.0.1]:46471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCk6N-0007gL-PK for submit@debbugs.gnu.org; Thu, 18 Feb 2021 09:16:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCk6M-0007g8-Rv for 46586@debbugs.gnu.org; Thu, 18 Feb 2021 09:16:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42090) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCk6H-00081i-AX; Thu, 18 Feb 2021 09:16:13 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3706 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lCk6G-0005GG-LT; Thu, 18 Feb 2021 09:16:13 -0500 Date: Thu, 18 Feb 2021 16:16:23 +0200 Message-Id: <83k0r55umg.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?6Lev5a6i?= In-Reply-To: (message from =?utf-8?B?6Lev5a6i?= on Thu, 18 Feb 2021 09:56:06 +0800) Subject: Re: bug#46586: 26.3, 27.1.50; Emacs crash in a backtrace (core) dump (a long standing issue) References: <83im6q7ka2.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46586 Cc: 46586@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: 路客 > Date: Thu, 18 Feb 2021 09:56:06 +0800 > Cc: 46586@debbugs.gnu.org > > > It's an infinite recursion in substitute_object_recurse, called by > > lread--substitute-object-in-subtree. > > I see, but why is Emacs 26.0.50 or earlier able to catch this issue? The related code was refactored since then. (And I'm not sure Emacs 26.0.50 indeed identified the problem correctly, see below. So it could be just sheer luck that it didn't crash back then.) > Shouldn't the read() function try to prevent itself from crashing? It should, so this is a bug. But how did such a form get originated? It looks like it's indeed self-referential, and thus is got to trigger infinite recursion: > (#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"))) The last part references itself: it seems to define a string with a text property that is the same string. Stepping through the code in substitute_object_recurse, I see that we end up recursively expanding this string: #("000006393 .gnus.el" 0 18 (r (#("000006393 .gnus.el" 0 18 (r #2)) (def #0 "x")))) Which then yields this: #("000006393 .gnus.el" 0 18 (r (#0 (def #("000006393 .gnus.el" 0 18 (r #2)) "x")))) And that again yields #("000006393 .gnus.el" 0 18 (r (#("000006393 .gnus.el" 0 18 (r #2)) (def #0 "x")))) Etc. etc., ad nauseam (or, rather, until we exhaust the C run-time stack and segfault). Does anyone see how to stop this infinite recursion, except by counting recursive invocation levels and bailing out at some arbitrary depth? From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 18 09:45:06 2021 Received: (at 46586) by debbugs.gnu.org; 18 Feb 2021 14:45:06 +0000 Received: from localhost ([127.0.0.1]:46496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCkYE-0008Op-FI for submit@debbugs.gnu.org; Thu, 18 Feb 2021 09:45:06 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:35797) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCkYC-0008Oh-RN for 46586@debbugs.gnu.org; Thu, 18 Feb 2021 09:45:05 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4DhHYV5qvXz1rtZ9; Thu, 18 Feb 2021 15:45:02 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4DhHYV3Mgxz1sP7T; Thu, 18 Feb 2021 15:45:02 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id jdqs0YubMkyM; Thu, 18 Feb 2021 15:45:01 +0100 (CET) X-Auth-Info: LNUuR/kuhyYk2O3gxAzUNq4nqy/dr1eViyN41lSZZz+6wiZv6eQ1XeK61XVMT29M Received: from igel.home (ppp-46-244-187-212.dynamic.mnet-online.de [46.244.187.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 18 Feb 2021 15:45:01 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 506E42C3200; Thu, 18 Feb 2021 15:45:01 +0100 (CET) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#46586: 26.3, 27.1.50; Emacs crash in a backtrace (core) dump (a long standing issue) References: <83im6q7ka2.fsf@gnu.org> <83k0r55umg.fsf@gnu.org> X-Yow: Didn't I buy a 1951 Packard from you last March in Cairo? Date: Thu, 18 Feb 2021 15:45:01 +0100 In-Reply-To: <83k0r55umg.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Feb 2021 16:16:23 +0200") Message-ID: <874ki9zb82.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 46586 Cc: 46586@debbugs.gnu.org, =?utf-8?B?6Lev5a6i?= , Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Feb 18 2021, Eli Zaretskii wrote: > Does anyone see how to stop this infinite recursion, except by > counting recursive invocation levels and bailing out at some arbitrary > depth? Shouldn't the subst->seen list prevent recursion? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 18 10:00:52 2021 Received: (at 46586) by debbugs.gnu.org; 18 Feb 2021 15:00:52 +0000 Received: from localhost ([127.0.0.1]:47690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCknT-0000du-Q6 for submit@debbugs.gnu.org; Thu, 18 Feb 2021 10:00:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCknR-0000dh-Ok for 46586@debbugs.gnu.org; Thu, 18 Feb 2021 10:00:50 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42924) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCknI-0001JD-FV; Thu, 18 Feb 2021 10:00:42 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2465 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lCknH-0002kl-MI; Thu, 18 Feb 2021 10:00:40 -0500 Date: Thu, 18 Feb 2021 17:00:50 +0200 Message-Id: <838s7l5skd.fsf@gnu.org> From: Eli Zaretskii To: Andreas Schwab In-Reply-To: <874ki9zb82.fsf@igel.home> (message from Andreas Schwab on Thu, 18 Feb 2021 15:45:01 +0100) Subject: Re: bug#46586: 26.3, 27.1.50; Emacs crash in a backtrace (core) dump (a long standing issue) References: <83im6q7ka2.fsf@gnu.org> <83k0r55umg.fsf@gnu.org> <874ki9zb82.fsf@igel.home> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46586 Cc: 46586@debbugs.gnu.org, luke.yx.lee@gmail.com, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Andreas Schwab > Cc: 路客 , 46586@debbugs.gnu.org, > Stefan Monnier > > Date: Thu, 18 Feb 2021 15:45:01 +0100 > > On Feb 18 2021, Eli Zaretskii wrote: > > > Does anyone see how to stop this infinite recursion, except by > > counting recursive invocation levels and bailing out at some arbitrary > > depth? > > Shouldn't the subst->seen list prevent recursion? Maybe, but the insertion into the 'seen' list is conditioned on #n= being in 'completed'. Or maybe I don't understand the logic of the code well enough. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 17 11:26:07 2022 Received: (at 46586) by debbugs.gnu.org; 17 Jun 2022 15:26:07 +0000 Received: from localhost ([127.0.0.1]:46716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2DrL-0002eo-Fh for submit@debbugs.gnu.org; Fri, 17 Jun 2022 11:26:07 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2DrK-0002eD-Dl for 46586@debbugs.gnu.org; Fri, 17 Jun 2022 11:26:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=aitjig9rCgoEOxuuQxvQxjxJDyiHyufRY1ksMqoFycI=; b=G0OxTzK4DpIvQZA4MpsAIXbUSM IV8RImTNodCDqa+jbZejh9T760Ye2S8DnM49iqplastJq24A5NxQINrYTSfx4+uirwRHD0uGRNq7q vGHFGDm8saZDNnyxknLPUIqW326xWxCTUrTAtEn3X0KOzo+aUWT3oZEQ0q+kG68w4OOg=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2DrC-0004Rv-3n; Fri, 17 Jun 2022 17:26:00 +0200 From: Lars Ingebrigtsen To: =?utf-8?B?6Lev5a6i?= Subject: Re: bug#46586: 26.3, 27.1.50; Emacs crash in a backtrace (core) dump (a long standing issue) References: X-Now-Playing: The Notwist's _Vertigo Days_: "Into Love-Stars" Date: Fri, 17 Jun 2022 17:25:57 +0200 In-Reply-To: (=?utf-8?B?Iui3r+WuoiIncw==?= message of "Wed, 17 Feb 2021 18:13:56 +0800") Message-ID: <87wndf5n22.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 路客 writes: > 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 m [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46586 Cc: 46586@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) =E8=B7=AF=E5=AE=A2 writes: > 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=3D(#("000008964 .gnus.el" 0 18 (r #1#)) > (def #2=3D#("000008964 .gnus.el" 0 18 > (r > (#2# > (def #3=3D#("000006393 .gnus.el" 0 18 > (r #4=3D(#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: (I'm going through old bug reports that unfortunately weren't resolved at the time.) I can reproduce this problem in Emacs 28.1, but not in Emacs 29 -- the reader/printer/gc was recently rewritten to handle recursive structures better, so I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 17 11:26:13 2022 Received: (at control) by debbugs.gnu.org; 17 Jun 2022 15:26:13 +0000 Received: from localhost ([127.0.0.1]:46719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2DrQ-0002f6-QB for submit@debbugs.gnu.org; Fri, 17 Jun 2022 11:26:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2DrP-0002ed-3v for control@debbugs.gnu.org; Fri, 17 Jun 2022 11:26:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ldc4GvQjRpbKxb04PNcELmebt5Qfgswlkh9ceiMJJH0=; b=uBLSDvBM40zYwRrRx1PnyF53HZ gf3per8cBZoqnsQddBracxAk1lxjdq52qV1RlDRaDFWhkmSIW+qhLgmI97e4Nbir/0+wLQnA5N6Bh T/ekCSOAZgevcGl5ciQ79GgY7ReYFVPoXc0ky7sw2vo+hnRnn2NseMp8V7M9FyKgH0S0=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2DrH-0004S8-6t for control@debbugs.gnu.org; Fri, 17 Jun 2022 17:26:05 +0200 Date: Fri, 17 Jun 2022 17:26:02 +0200 Message-Id: <87v8sz5n1x.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #46586 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 46586 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 46586 29.1 quit From unknown Sun Jun 15 08:16:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 16 Jul 2022 11:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator