From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.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: Sun, 10 Jul 2022 11:24:21 +0200 Message-ID: <87wncl48xm.fsf@gmx.net> References: <87tyz9qaqd.fsf@stupidchicken.com> <87r5u9r3io.fsf@thialfi.karme.de> <83bn7m8kfo.fsf@gnu.org> <87lh6qz188.fsf@gmx.net> <83oabm6ssd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15652"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Eli Zaretskii , 4175@debbugs.gnu.org, ahyatt@gmail.com To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 10 11:26:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oATCt-0003vf-36 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Jul 2022 11:26:27 +0200 Original-Received: from localhost ([::1]:44036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oATCr-0006rY-RX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Jul 2022 05:26:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oATBW-0005n2-C3 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2022 05:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42357) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oATBW-0006TM-33 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2022 05:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oATBV-0003g6-RL for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2022 05:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2022 09:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4175 X-GNU-PR-Package: emacs Original-Received: via spool by 4175-submit@debbugs.gnu.org id=B4175.165744507314095 (code B ref 4175); Sun, 10 Jul 2022 09:25:01 +0000 Original-Received: (at 4175) by debbugs.gnu.org; 10 Jul 2022 09:24:33 +0000 Original-Received: from localhost ([127.0.0.1]:36254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oATB3-0003fH-Ak for submit@debbugs.gnu.org; Sun, 10 Jul 2022 05:24:33 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:40467) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oATB1-0003f3-AW for 4175@debbugs.gnu.org; Sun, 10 Jul 2022 05:24:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1657445062; bh=B6PHsXB/XL32e9WeB7fFVe85uZqDuCS3Wfl/7Dnwyfg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=biA43rKTslhb/EoCpn3fq1t9q31lAxDZjZ7QaZYPqE6pB7nrzKD1Tp5+TMKijFdjK ctt7g98rdkPoovfnU+TrH0pZoXU8TY7tpkjSOqZR0VSaAa6hmGtu4dBsPpwqgr7qe9 VmWKp0CIUnmAVPZcxx/QzbKenrvoPO9AID6b1HXQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.83]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MbivG-1nZTfE0Pbq-00dI3e; Sun, 10 Jul 2022 11:24:22 +0200 In-Reply-To: (Stefan Kangas's message of "Sat, 9 Jul 2022 19:53:42 -0700") X-Provags-ID: V03:K1:zXGfAZknMN1pjssu7mCa0nUfISITpho2ZQ/NzPZTmMlobBk89Oc bEtQNDUBqpQQXSmvIlj4tkulyVUVSFUrBw/pGh+5wvJRA5awfE7eCER9aiO9/3lI078qlY/ WpFEF+BDJe5k4BSJr8uHsFHvSuTvicANyR4znd1I0Hg+lEWKXxpqOM6aewFqlICt4OwZDA9 tg4poNJ1Cutr5PANrej0w== X-UI-Out-Filterresults: notjunk:1;V03:K0:WQy5PL5ND7w=:FML30wICX4X0dTRShh8dTg uS69zMDqS8rPUdBI80YrdfWAQmm3RmACNjyehO/l4q+uKjo/7gDEl01kb9sLwcP49wrbFZsdK nPgfkoV9GK0pCXd6CSMBx+IGCUFIZCOaIhvWWWADbv8iiMGSFmziIMJ17nNCq+nbSJ+MaqrGs F/DxOek4e1YmUU1x5vaAn1uq7ZSjo2zlyCUMUAjPFQS/idAq0NdAlSvoGWaFkpg7Ct8muVtpz Wgu5Ma4O6U4JVx52H977uPzujgBzDV8n2eAqCsyCXFIuSvqB2NJ5QJIYbAvCEHGhq/pC5LB7z wvUP4DY1AZGIyz9X30EeimJj+90zcVrmaylCHpFLj4pkE1Yet1Peh2DrISMDelKmI3v0Dar7P ZcmEyVRvEiMjbNP6Ni49lX/rd20bKgcIulgUimalDgKGZ5txPtG2jHmmrcUU1vuYjdg/fSGo2 h4kyxAO/y9lPc/TMgYWj3tFVimgn8YwEGmOKntzr9MXbSBGn0wEjoxsjuNbqcHMziiu1BbgDo k3ZDqXx1FnfR4faWsDrIDonWM6pKDrZVvkg/KCTwXjK5aGI1tRZ1I/+egTkPq5WMp/gdD67oR tkqY2XNkQY6640qW7606ASbl7r7VMF2E9sZddbzHFp6PujijG9PA596MT0psCL9GzO7rGa/5l HhyfnI5pAlde7KgWun/d/lyiFJt09wrLmGEO773Dxq7q51O4av0TPY3albY5TfxvAhO+96Vqq +rCiNJ9zbKlDSGXKvNTFNLajjZB5dM+DTmy/oK0al7F7f9iIV2LaeWntMMJ8KBAtr9oHOGvx X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236548 Archived-At: On Sat, 9 Jul 2022 19:53:42 -0700 Stefan Kangas wrote: > Eli Zaretskii writes: > >>> From: Stephen Berman >>> Cc: Andrew Hyatt , 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(#) >> >> 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