all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Stefan Kangas <stefan@marxist.se>
Cc: "Mattias Engdegård" <mattiase@acm.org>,
	"Eli Zaretskii" <eliz@gnu.org>,
	4175@debbugs.gnu.org, ahyatt@gmail.com
Subject: bug#4175: 23.1; nxml-mode: Internal error in rng-validate-mode triggered
Date: Sun, 10 Jul 2022 11:24:21 +0200	[thread overview]
Message-ID: <87wncl48xm.fsf@gmx.net> (raw)
In-Reply-To: <CADwFkmnpz673nF-mO+tpiDVFu00tYg4_42YGDgOKNmUqSsDaRQ@mail.gmail.com> (Stefan Kangas's message of "Sat, 9 Jul 2022 19:53:42 -0700")

On Sat, 9 Jul 2022 19:53:42 -0700 Stefan Kangas <stefan@marxist.se> wrote:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Stephen Berman <stephen.berman@gmx.net>
>>> Cc: Andrew Hyatt <ahyatt@gmail.com>,  4175@debbugs.gnu.org
>>> Date: Fri, 12 Feb 2016 11:12:23 +0100
>>>
>>> I can reproduce it in a91b4b51ddf2575d821adb8b84fdf32cff83886e (GNU
>>> Emacs 25.0.90.2 (x86_64-suse-linux-gnu, GTK+ Version 3.14.15) of
>>> 2016-02-11).
>>
>> How large is the run-time stack on that system?
>>
>>> Here's the backtrace:
>>>
>>> Debugger entered--Lisp error: (error "Stack overflow in regexp matcher")
>>>   looking-at("\\(\\(?:\\(xmlns\\)\\|[_[:alpha:]][-._[:alnum:]]*\\)\\(:[_[:alpha:]][-._[:alnum:]]*\\)?\\)[
>>> 	\n]*=\\(?:[
>>> 	\n]*\\('[^<'&
>>> \n	]*\\([&
>>> \n	][^<']*\\)?'\\|\"[^<\"&
>>> \n	]*\\([&
>>> \n	][^<\"]*\\)?\"\\)\\(?:\\([
>>> 	\n]*>\\)\\|\\(?:\\([
>>> 	\n]*/\\)\\(>\\)?\\)\\|\\([
>>> 	\n]+\\)\\)\\)?")
>>>   xmltok-scan-attributes()
>>>   xmltok-scan-after-lt()
>>>   xmltok-forward()
>>>   rng-forward()
>>>   rng-do-some-validation-1(rng-validate-while-idle-continue-p)
>>>   rng-do-some-validation(rng-validate-while-idle-continue-p)
>>>   rng-validate-while-idle(#<buffer url25099xa>)
>>
>> Thanks.  Perhaps some regexp guru could suggest how to make this
>> regexp less greedy.
>
> Maybe Mattias could take a look?

FWIW, I cannot reproduce the error now with -Q in Emacs 27/28/29: in all
cases the mode line of the buffer containing the XML file says "nXML
valid" (both when executing the recipe with the URL, which is still
valid, as well as with the test.svg file provided in the bug thread.)

Steve Berman





  reply	other threads:[~2022-07-10  9:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-12  0:15 bug#4175: 23.1; nxml-mode: Internal error in rng-validate-mode triggered Chong Yidong
     [not found] ` <87r5u9r3io.fsf@thialfi.karme.de>
2016-02-12  4:23   ` Andrew Hyatt
2016-02-12  7:19     ` Eli Zaretskii
2016-02-12 10:12       ` Stephen Berman
2016-02-12 12:02         ` Eli Zaretskii
2016-02-12 12:14           ` Stephen Berman
2016-02-12 15:15             ` Eli Zaretskii
2022-07-10  2:53           ` Stefan Kangas
2022-07-10  9:24             ` Stephen Berman [this message]
2022-07-10 10:48               ` Stefan Kangas
2022-07-10 11:00             ` Mattias Engdegård
2022-07-10 13:06               ` Stefan Kangas
  -- strict thread matches above, loose matches on Subject: below --
2009-08-17 11:59 karme

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=87wncl48xm.fsf@gmx.net \
    --to=stephen.berman@gmx.net \
    --cc=4175@debbugs.gnu.org \
    --cc=ahyatt@gmail.com \
    --cc=eliz@gnu.org \
    --cc=mattiase@acm.org \
    --cc=stefan@marxist.se \
    /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.