From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61847: debug-early-backtrace only works some of the time. Date: Tue, 28 Feb 2023 16:22:30 +0200 Message-ID: <837cw1hntl.fsf@gnu.org> References: <83fsaqgf2v.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40692"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 61847@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 28 15:24:32 2023 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 1pX0u8-000AQ3-6c for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Feb 2023 15:24:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX0tn-0006xk-3L; Tue, 28 Feb 2023 09:24:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pX0tl-0006xY-1g for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 09:24:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pX0te-0003ep-DZ for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 09:24:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pX0td-00016K-U5 for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 09:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Feb 2023 14:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61847 X-GNU-PR-Package: emacs Original-Received: via spool by 61847-submit@debbugs.gnu.org id=B61847.16775942014181 (code B ref 61847); Tue, 28 Feb 2023 14:24:01 +0000 Original-Received: (at 61847) by debbugs.gnu.org; 28 Feb 2023 14:23:21 +0000 Original-Received: from localhost ([127.0.0.1]:49990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0sy-00015M-Tt for submit@debbugs.gnu.org; Tue, 28 Feb 2023 09:23:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0sw-000159-Qf for 61847@debbugs.gnu.org; Tue, 28 Feb 2023 09:23:19 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pX0sq-0003V3-7E; Tue, 28 Feb 2023 09:23:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2aI3JD7NsbJgxBxxHXmbQ9xX/YICP/J66Jq0j/g9dc4=; b=inQJi1mFSO5d VT5PdGJrX2UoaixI8PTZXKlCzDtpovtXnAU+NVIDeuHPUb7soNy2VCJ7q9WbAssHO+LYrTTVG6nfa K8qFZ/eRWbpNVDrhE8zdeDyA/+MYW/HYKAypUUxE5P/OpizDcifU/snv5X5eb25tNJRLcvuVXfwev Y5/YJIZgfNjbhUJplpVopPguixsGNjuHA7ESFyu5drseGLFFfGJiJyEt76J4Nxoxk7hvA4dW4StUL SDJXcASF0BWohfsUAWfEcB6BgzGzxwjnIzhFAcdnbHBn2oJZD9lQVXgOFdwetp6YWYHKdGRR5pBbe xxGAtGr2cgrh2OiYk+QEAg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pX0s1-0001cO-Mx; Tue, 28 Feb 2023 09:22:36 -0500 In-Reply-To: (message from Alan Mackenzie on Tue, 28 Feb 2023 13:16:42 +0000) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256967 Archived-At: > Date: Tue, 28 Feb 2023 13:16:42 +0000 > Cc: monnier@iro.umontreal.ca, 61847@debbugs.gnu.org > From: Alan Mackenzie > > > It isn't clear to me why you consider code that uses prin1 to be "rock > > solid by design". Please elaborate. > > I meant that the specific piece of code which was the original code > (which happened to use prin1) was rock solid, not any other use of prin1. > > The original code didn't depend on any other lisp being loaded. Given > how much can go wrong with loading Lisp in the early bootstrap in a > version of Emacs being debugged, and which did go wrong in the bug > scenario, I say we're better off not trying to use cl-prin1 at this > stage. If you think that the original code is solid because no Lisp is loaded, then all it takes to break that is that someone rewrites prin1 in Lisp. Which happened with quite a few primitives in recent years, and so it can happen with prin1 as well. And if that does happen with prin1, who will remember that this particular piece of code cannot stand loading Lisp and will subtly break if that happens? So if this feature needs some precautions when loading Lisp, we had better introduced those precautions now, and tested them with Stefan's code which uses cl-prin1 to make sure it works. That way we will have a more future-proof feature.