GNU bug report logs - #76787
31.0.50; Double backtrace in batch mode

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Thu, 6 Mar 2025 17:24:02 UTC

Severity: normal

Found in version 31.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 76787 <at> debbugs.gnu.org
Cc: monnier <at> iro.umontreal.ca
Subject: bug#76787: 31.0.50; Double backtrace in batch mode
Date: Thu, 06 Mar 2025 12:23:15 -0500
Package: Emacs
Version: 31.0.50


Emacs in batch mode sometimes shows twice the same backtrace:

    % /usr/bin/emacs -Q --batch --eval '(setq debug-on-error t)' --eval '(error "foo")'                            
    
    Error: error ("foo")
      error("foo")
      eval((error "foo") t)
      command-line-1(("--eval" "(setq debug-on-error t)" "--eval" "(error \"foo\")"))
      command-line()
      normal-top-level()
    
    Debugger entered--Lisp error: (error "foo")
      error("foo")
      eval((error "foo") t)
      command-line-1(("--eval" "(setq debug-on-error t)" "--eval" "(error \"foo\")"))
      command-line()
      normal-top-level()
    
    %

I think I'm in part to blame for this one.  It seems that one of them
comes from the "normal" debugger and the other from
`debug-early--handler`.


        Stefan





This bug report was last modified 133 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.