From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#4175: 23.1; nxml-mode: Internal error in rng-validate-mode triggered Date: Sat, 9 Jul 2022 19:53:42 -0700 Message-ID: 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; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18562"; 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?= , ahyatt@gmail.com, Stephen Berman , 4175@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 10 04:54:10 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 1oAN5G-0004kP-Hn for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Jul 2022 04:54:10 +0200 Original-Received: from localhost ([::1]:53384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAN5E-0003cd-Ta for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jul 2022 22:54:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAN58-0003cN-HJ for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2022 22:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAN58-0002q3-8y for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2022 22:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oAN58-0001V7-7u for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2022 22:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2022 02:54:02 +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.16574216315744 (code B ref 4175); Sun, 10 Jul 2022 02:54:02 +0000 Original-Received: (at 4175) by debbugs.gnu.org; 10 Jul 2022 02:53:51 +0000 Original-Received: from localhost ([127.0.0.1]:36106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAN4w-0001Ua-Si for submit@debbugs.gnu.org; Sat, 09 Jul 2022 22:53:51 -0400 Original-Received: from mail-pg1-f182.google.com ([209.85.215.182]:38537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oAN4u-0001UN-Nn for 4175@debbugs.gnu.org; Sat, 09 Jul 2022 22:53:49 -0400 Original-Received: by mail-pg1-f182.google.com with SMTP id e132so2088153pgc.5 for <4175@debbugs.gnu.org>; Sat, 09 Jul 2022 19:53:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=MdW+nI/SRzwVS5Y32/Vo9KqNWp+mRrv/K13mMTlzyco=; b=l6gOnJs/NToCamIIh9CCeGNikgxYMWTw0qO0RB8QgLoF2iEavfJnszpWQRgJYLAV7m 3BYLo283N1eOTEjEeMSFXk3ii1xIAO3YexKLrWx1F1Ym78aLEVTd+s+e0l7Sc7QJxoo3 03iaNteu2j7D+islMDDyrLQjDEey3v3se0aEMZJhPiMhC0JLBZiMZVluL5cKfzLcbc5G B9rs1NJzONFOHphZ7JTbzqb9Q0RzzqDvEGeG0SwRkBTC4uKsgQAn9n4i4UBiXjG248CI Uu3LDH9ZVtdNYrkc4HFkFoYiaNRVm/rPBXBs91p3HT1J688tC4gnPDRz2nrJD17zZJOF OmTQ== X-Gm-Message-State: AJIora/69eplAasN6y7+NoBTK69TT5T3AFbx+ojGX3iiDAsjNg/cjW6R IjBWC/fVKb5O9ONnB7BPEngJI+fBdFV5w8xBlLE8c2zF X-Google-Smtp-Source: AGRyM1uObMIkNFlSYJ/2uCmsmdeb1L43d8IhBDGu67AEeUUSid7CE3rHfVM6SbhSkp+l5l8NPnNASZu2gaOhcNtbUaU= X-Received: by 2002:a63:ed48:0:b0:40d:9866:6834 with SMTP id m8-20020a63ed48000000b0040d98666834mr9950883pgk.324.1657421623061; Sat, 09 Jul 2022 19:53:43 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 9 Jul 2022 19:53:42 -0700 In-Reply-To: <83oabm6ssd.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 12 Feb 2016 14:02:10 +0200") 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:236536 Archived-At: 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?