From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#65622: Inappropriate suppression of backtrace on an error Date: Wed, 30 Aug 2023 13:08:26 +0000 Message-ID: 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="34153"; mail-complaints-to="usenet@ciao.gmane.io" To: 65622@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 30 15:09:12 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 1qbKwa-0008eg-Hv for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Aug 2023 15:09:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbKwL-00014Q-Im; Wed, 30 Aug 2023 09:08:57 -0400 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 1qbKwJ-00013U-9F for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 09:08:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbKwJ-0008UR-1O for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 09:08:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qbKwQ-0001jk-GV for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 09:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Aug 2023 13:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65622 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.16934009316642 (code B ref -1); Wed, 30 Aug 2023 13:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Aug 2023 13:08:51 +0000 Original-Received: from localhost ([127.0.0.1]:52390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbKwF-0001j4-BQ for submit@debbugs.gnu.org; Wed, 30 Aug 2023 09:08:51 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:37360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbKwC-0001ip-IP for submit@debbugs.gnu.org; Wed, 30 Aug 2023 09:08:50 -0400 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 1qbKvy-0000LS-A3 for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 09:08:34 -0400 Original-Received: from mail.muc.de ([193.149.48.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbKvv-0008R4-14 for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 09:08:34 -0400 Original-Received: (qmail 14114 invoked by uid 3782); 30 Aug 2023 15:08:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=muc.de; i=@muc.de; q=dns/txt; s=default; t=1693400907; h=date : to : subject : message-id : mime-version : content-type : from : from; bh=bKUccLXd1gvSevvGwGT920tG0/5MV8mN3cXGu5/gaJk=; b=gqsLnE6NasSJKqlv6W6ewfmZD3lBIyPhL0gEbkCteG8s/GB7L3fZOAlaP5lPyYW5JzY7L nvnkXyeOgROeNpK+2LyZ+2IpjR4FpW1OjnWOcsL/tXGQnxNHx5ODPGKKvQAf0S2wJ04yyRB wJ1lU2XiP4d7Vgze7MId2B3zxvIJ8UGAoOL/gAqjJxofT4+MyViJ8+SBPsfjpkBFxpwyde5 mH8S+A2YylglbvWCk7DCxw00YtnpjWLUo4BHgeSmDflCqix+/niIoknGsFWJkN2OHbtfC8L OW79au5gl/qgJAMvf7dpne/j21jbxuwh544UsJLr2zliyPxZhNxnQEAGUHlQ== Original-Received: from acm.muc.de (pd953a1ec.dip0.t-ipconnect.de [217.83.161.236]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 30 Aug 2023 15:08:26 +0200 Original-Received: (qmail 26176 invoked by uid 1000); 30 Aug 2023 13:08:26 -0000 Content-Disposition: inline X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.3; envelope-from=acm@muc.de; helo=mail.muc.de 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, SPF_HELO_PASS=-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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268705 Archived-At: Hello, Emacs. On a recent master branch Emacs: (i) emacs -Q (ii) Insert the following into *scratch*: (defmacro hash-if (condition then-form &rest else-forms) "A conditional compilation macro analogous to C's #if. Evaluate CONDITION at macro-expansion time. If it is non-nil, expand the macro to THEN-FORM. Otherwise expand it to ELSE-FORMS enclosed in a `progn' form. ELSE-FORMS may be empty." (declare (indent 2) (debug (form sexp &rest sexp))) (if (eval condition lexical-binding) then-form (cons 'progn else-forms))) (defun foo (bar) (hash-if (< emacs-major-version 19) (car bar) (cons bar bar))) (iii) Evaluate hash-if by putting point after it and doing C-x C-e. (iv) Attempt to instrument foo for edebug by putting point inside foo and doing C-u C-M-x. This throws the error: "Ignoring macroexpansion error: (void-function edebug-after)". (v) Set debug-on-error to t with M-: (setq debug-on-error t). (vi) Repeat (iv). This throws the same error, without a backtrace. This lack of a backtrace is a bug. (vii) This backtrace is almost certainly being suppressed by a frivolous condition-case, whose main purpose appears to be making debugging more difficult. ;-) (viii) There would appear to be no justification for "ignoring" the error (void-function edebug-after). Such error should not occur, and needs debugging. -- Alan Mackenzie (Nuremberg, Germany).