GNU bug report logs - #54996
Emacs hangs when editing Python code with debug-on-error set to t

Previous Next

Package: emacs;

Reported by: Richard Stanton <rhstanton <at> berkeley.edu>

Date: Sun, 17 Apr 2022 20:17:02 UTC

Severity: normal

Fixed in version 28.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 54996 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rhstanton <at> berkeley.edu, 54996 <at> debbugs.gnu.org
Subject: Re: bug#54996: Emacs hangs when editing Python code with
 debug-on-error set to t
Date: Mon, 18 Apr 2022 13:18:49 +0200
But here we go -- I instrumented Fsignal after loading everything.

gdb) xbacktrace 
"signal" (0xeabde738)
"error" (0xffff8378)
"apply" (0xeabde6e0)
"cl--assertion-failed" (0xeabde668)
"python-nav-end-of-statement" (0xeabde620)
"python-info-end-of-statement-p" (0xeabde5f0)
"python-info-end-of-block-p" (0xeabde598)
"python-nav--forward-sexp" (0xeabde518)
"python-nav-forward-sexp" (0xeabde4c0)
"python-nav-backward-sexp" (0xeabde468)
"python-info-docstring-p" (0xeabde408)
"python-font-lock-syntactic-face-function" (0xeabde3a8)
"font-lock-fontify-syntactically-region" (0xeabde320)
"font-lock-default-fontify-region" (0xeabde2b0)
"font-lock-fontify-region" (0xeabde240)
0x566c35a8 PVEC_COMPILED
"run-hook-wrapped" (0xeabde1c8)

I've now fixed this by avoiding cl-assert (which probably should never
be used inside a function called from font-lock).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





This bug report was last modified 3 years and 86 days ago.

Previous Next


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