GNU bug report logs - #25156
26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table

Previous Next

Package: emacs;

Reported by: Peter Wang <ptr.wang <at> gmail.com>

Date: Sat, 10 Dec 2016 14:02:02 UTC

Severity: normal

Tags: notabug

Found in version 26.0.50

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


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

From: npostavs <at> users.sourceforge.net
To: Peter Wang <ptr.wang <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 25156 <at> debbugs.gnu.org
Subject: Re: bug#25156: 26.0.50;
 `describe-text-properties' hangs with 100% cpu usage when property is
 a char-table
Date: Sat, 10 Dec 2016 10:29:44 -0500
Peter Wang <ptr.wang <at> gmail.com> writes:

> BTW, I also found that `describe-variable' has the same problem.
>
> (describe-variable 'lisp-mode-syntax-table)
>
> I have not looked into this yet, it could be the same bug.
>
> On Sat, Dec 10, 2016 at 11:03 PM, Peter Wang <ptr.wang <at> gmail.com> wrote:
>
>  A simplest test case is like:
>
>  (describe-property-list (list 'syntax-table lisp-mode-syntax-table))
>
>  evaluating this Elisp expression will hang with 100% CPU usage.

Neither of these hang for me from emacs -Q, using latest master (fc0fd24c105b)

(benchmark 1 '(describe-variable 'lisp-mode-syntax-table)) ;=> "Elapsed time: 1.272053s (0.161946s in 6 GCs)"
(benchmark 1 '(describe-property-list (list 'syntax-table lisp-mode-syntax-table))) ;=> "Elapsed time: 1.165824s (0.139516s in 5 GCs)"





This bug report was last modified 8 years and 221 days ago.

Previous Next


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