GNU bug report logs - #20995
24.5; uncomment XML file results in high CPU utilisation / hanging

Previous Next

Package: emacs;

Reported by: Sam Halliday <sam.halliday <at> gmail.com>

Date: Mon, 6 Jul 2015 20:05:03 UTC

Severity: normal

Tags: confirmed, fixed

Merged with 16449, 22319, 24253, 28040

Found in versions 24.3.50, 24.5, 25.1.50, 25.2

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sam Halliday <sam.halliday <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 20995 <at> debbugs.gnu.org
Subject: bug#20995: 24.5; uncomment XML file results in high CPU utilisation / hanging
Date: Mon, 06 Jul 2015 21:49:26 +0100
[Message part 1 (text/plain, inline)]
Hi Glenn,

Sorry, I was being sloppy.

I tried to minimise the problem and enabling flyspell in the XML file
seems to be the culprit. So:

emacs -Q
M-x file-find "...xml file I gave you..."
M-x flyspell-mode
... go to final comment line...
M-; (i.e. M-x uncomment-region)


I did a (profiler-start) with (setq debug-on-quit t) and got this:

- flyspell-post-command-hook                                     1994  81%
 - byte-code                                                     1994  81%
  - flyspell-word                                                1992  81%
   - sgml-mode-flyspell-verify                                   1989  81%
    - sgml-lexical-context                                       1985  81%
     - sgml-parse-tag-backward                                   1985  81%
      - byte-code                                                1985  81%
       - forward-sexp                                            1985  81%
        - nxml-forward-balanced-item                             1985  81%
         - nxml-forward-single-balanced-item                     1985  81%
          - funcall                                              1985  81%
           + #<compiled 0xf573b1>                                1949  80%


[Message part 2 (text/plain, inline)]
Glenn Morris <rgm <at> gnu.org> writes:

> Sam Halliday wrote:
>
>> I just upgraded from 24.4 to 24.5 on Debian Jessie (self compiled) and
>> if I open an XML file containing the below information, and attempt to
>> M-: uncomment the last comment line in the file, Emacs eats 100%
>> CPU and I have to kill it. I can confirm that it works OK in 24.4:
>
> What does "M-: uncomment" mean? 
> Please give a complete recipe starting from emacs -Q.
>
> FWIW, works fine for me in 24.5 to mark the last comment line and use
> M-x uncomment-region.

-- 
Best regards,
Sam
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 7 years and 341 days ago.

Previous Next


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