From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#4175: 23.1; nxml-mode: Internal error in rng-validate-mode triggered Date: Fri, 12 Feb 2016 11:12:23 +0100 Message-ID: <87lh6qz188.fsf@gmx.net> References: <87tyz9qaqd.fsf@stupidchicken.com> <87r5u9r3io.fsf@thialfi.karme.de> <83bn7m8kfo.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1455272025 6559 80.91.229.3 (12 Feb 2016 10:13:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2016 10:13:45 +0000 (UTC) Cc: Andrew Hyatt , 4175@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 12 11:13:34 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aUAjF-0001us-EE for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Feb 2016 11:13:33 +0100 Original-Received: from localhost ([::1]:59390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUAjB-0004pG-Dr for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Feb 2016 05:13:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUAin-0004Ak-7o for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 05:13:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUAij-00045a-Ts for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 05:13:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUAij-00045Q-R3 for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 05:13:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aUAij-00078p-Ni for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 05:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Feb 2016 10:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4175 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 4175-submit@debbugs.gnu.org id=B4175.145527195327411 (code B ref 4175); Fri, 12 Feb 2016 10:13:01 +0000 Original-Received: (at 4175) by debbugs.gnu.org; 12 Feb 2016 10:12:33 +0000 Original-Received: from localhost ([127.0.0.1]:37273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aUAiH-000783-9N for submit@debbugs.gnu.org; Fri, 12 Feb 2016 05:12:33 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:51353) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aUAiF-00077m-NA for 4175@debbugs.gnu.org; Fri, 12 Feb 2016 05:12:32 -0500 Original-Received: from rosalinde ([89.245.120.155]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MJk04-1aT4ma1t0m-0017jv; Fri, 12 Feb 2016 11:12:24 +0100 In-Reply-To: <83bn7m8kfo.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 12 Feb 2016 09:19:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-Provags-ID: V03:K0:61saP7pkknFY2J2GscwTi6pNPz7wIXV1Osql46cctqexLggIQHt w4HauUmWgOGqOogtIPlT2g+33Fdklx7kh2kFhHVxP0X8mNXnm2SzAgCOo+a120vbC78mDHn kTweETBm1VptHwfyQGR9uEQ9+er8t90slNV+/+KlQhdTOz2YqZ2YfHzeeGJM5RhqHPovtIr IIK5W8OHdOY1CrI2HmS8Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:EUPBgmS2D58=:QjfWGteMqXWF55y0Er7gBo Q8iiVQ3F3K0+ipE4/bllTK+s6Pvj5q4isVEhaMoLkb9Jf/9NssUQCisNkOrw/CvJNv+bxQ9z4 tkJUbUu32KxcJS9oLKKy45Obo0Aqaxo+boevDrfwgCKTvveJ1vaNh2E5D38UQx9u3wyFNTc56 /aczh8eDwII/aSpWSMQsyjkdsEvk4JoV1aG7na/hKY+7la/t7A6rXmEaiIZd2Dy02Vkrpii/F wb4FJl+dQaZPZuzB4PLPl/kGesR0bAbqi4A6Bjo727LB++BwIOcCgxB2p8YEomLl3bj2qoKJe 7EPzmLtMF5htl8IjJ3ecdtLkhBsMk2M+Pdloh/OOi5aQtyXP6Kn8be2xwJzys8nblEV25jWHz 7njnC1yPdKCgT61QnhmUgoOy6kj9vH5bDL2cbqbwA34+2FbLOJ0uoVfm0Hv4bp87YJgLQ9Rch wlfDBfRCwzog7lWEFHtPT1VQ0EmhPrpjZP9ghnOcVRqmD72cbdkDuVkYlQ97tuMY/orcIQAtq mX/emqP7Qviu+bRA0nmX0z6CpFWk11UvLUTxgYJf5xXFL0M2VtETO/a8bmGTNp4RiIqXblI++ CkP2dwra85EbFBcOE/ybyar3IJQ1NXxT4qNPBuKjGIEXLLiDatRRe+Kega1UcFddRNP23svxc X1kMLdYgQW+q+50Dx8CCZpg+2q4eTBqqy7n9aNSQFsDAvbuPHiAG51Ru/ihaRrGwAAOwNwJjr Q5UaOntN7kCbWcReg9FEKUmfTB+MRhcn2vT5qUS9knyOQjpWG4lYveLAEjA= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112923 Archived-At: --=-=-= Content-Type: text/plain On Fri, 12 Feb 2016 09:19:39 +0200 Eli Zaretskii wrote: >> From: Andrew Hyatt >> Date: Thu, 11 Feb 2016 23:23:52 -0500 >> Cc: 4175@debbugs.gnu.org >> >> > emacs -Q >> > M-: (progn >> > (switch-to-buffer >> > (find-file >> > (url-file-local-copy >> > "http://karme.de/delme/test.svg"))) >> > (nxml-mode) >> > (switch-to-buffer "*Messages*")) >> > >> > I also attached the test file. If really needed I can create a stripped >> > down version. >> >> I've verified this is still a problem in Emacs 25. > > It doesn't happen for me, FWIW. > > Can you show the offending regexp, and what code in nxml-mode creates > it? 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). Here's the backtrace: --=-=-= Content-Type: text/plain Content-Disposition: attachment Content-Transfer-Encoding: 8bit Content-Description: 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(#) #[nil "\204