From: Christopher Wellons <wellons@nullprogram.com>
To: 16344@debbugs.gnu.org
Subject: bug#16344: 24.3; xml-parse-region stuck on specific input, uses lots of memory
Date: Sat, 04 Jan 2014 18:39:30 -0500 [thread overview]
Message-ID: <87ha9jqpu5.fsf@susie.zeus.nullprogram.com> (raw)
The function `xml-parse-region' is never returning from parsing this
specific input. It's saturing a CPU core while using huge quantities of
memory. Fortunately it can be aborted with C-g.
(with-temp-buffer
(insert "<!----><x>< /x>")
(xml-parse-region))
The trigger is a comment followed by at least one opening tag followed
by a stray less-than character. This is not valid XML due to that extra
space in the closing tag, but I'm expecting `xml-parse-region' to signal
an error in the case of invalid input rather than lock up Emacs.
Just for the sake of context, this issue was initially discovered here:
https://github.com/skeeto/elfeed/issues/17
next reply other threads:[~2014-01-04 23:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-04 23:39 Christopher Wellons [this message]
2016-03-02 18:11 ` bug#16344: 24.3; xml-parse-region stuck on specific input, uses lots of memory Ulf Jasper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ha9jqpu5.fsf@susie.zeus.nullprogram.com \
--to=wellons@nullprogram.com \
--cc=16344@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.