GNU bug report logs - #4175
23.1; nxml-mode: Internal error in rng-validate-mode triggered

Previous Next

Package: emacs;

Reported by: karme <karme <at> karme.de>

Date: Mon, 17 Aug 2009 12:05:04 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Mattias EngdegÄrd <mattiase <at> acm.org>, Eli Zaretskii <eliz <at> gnu.org>, 4175 <at> debbugs.gnu.org, ahyatt <at> 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
On Sat, 9 Jul 2022 19:53:42 -0700 Stefan Kangas <stefan <at> marxist.se> wrote:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> From: Stephen Berman <stephen.berman <at> gmx.net>
>>> Cc: Andrew Hyatt <ahyatt <at> gmail.com>,  4175 <at> 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




This bug report was last modified 2 years and 339 days ago.

Previous Next


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