GNU bug report logs - #25176
26.0.50; nxml-mode hangs on first failing isearch after opening big file

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Kevin Brubeck Unhammer <unhammer@HIDDEN>; merged with #33887; dated Sun, 11 Dec 2016 21:49:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 25176 33887. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 25176 <at> debbugs.gnu.org:


Received: (at 25176) by debbugs.gnu.org; 17 Apr 2019 23:50:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 17 19:50:44 2019
Received: from localhost ([127.0.0.1]:41041 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hGuKB-00023t-Jc
	for submit <at> debbugs.gnu.org; Wed, 17 Apr 2019 19:50:43 -0400
Received: from mail-qt1-f180.google.com ([209.85.160.180]:35761)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1hGuK9-00023X-4w; Wed, 17 Apr 2019 19:50:41 -0400
Received: by mail-qt1-f180.google.com with SMTP id h39so339523qte.2;
 Wed, 17 Apr 2019 16:50:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=a9nzTRl1TODbmWUx5ywgDk1ezi71ewGjpmATJ1Pv3bs=;
 b=pd5rk/52cV1LNW7eRR+tsd8Dm+Hj+PIRE5qR+AAKPK6MyGuUIB61mSvdxw2ZofoQYw
 fFvzJNPKsbS9yTV7jgtFoKjBMmOY1HFeNpSsg8zY4A8Lldfv0hyF3AkZYSwCSO/gzJM2
 cUSkwfp/0rihLvIMMAPc94/3+dMEsnXWrErJvvbHI9ekgTEBaoZF37gq3DVbJ62pSlUm
 YeyYkvHkzuHS/T7fkKwSY8ItknnkpfZFMIy5UTUWmZ1YtE7a3bae7SVYAr/MOfELzTeU
 gCCDbfTaw/mDV5wREvyPvUT9j+NQ7PEGP2cJVKYfVFV58hUZKW+d5xE6dXeseTGV69/t
 89lQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=a9nzTRl1TODbmWUx5ywgDk1ezi71ewGjpmATJ1Pv3bs=;
 b=JhRB6b4DASSgiKCaMgLvlUoQcmXTvBbRgaiGVI1m0dTgOxO7vzCYO8FNYq4bCf9kBN
 pA1CM6XIh60jp10FW5vDNTiMRUnFyZWadd5NxeDoUoY2mkHrM7MUams6nz6MnM0ShOGv
 FCo8WeqPjtWmASOGrGrRisoTfJCJnZVIjpsm4pU6wKKIKEMDN5Z+ZGq1cPIIIzJKsXqg
 oHQJ1I8Dq8nvrhcGKd/MT1EySm0sOrDHHN82zg3d9NLQGUriUdv2xjzxuSq8LDJJGWoG
 cdM8OYlw6G25v+FoNq4YWxpngd8cEZNodHbhDrPiVR6Rqe+38ZdTUsPi0TAwv+QNxvmZ
 r35A==
X-Gm-Message-State: APjAAAWFwxrlkW2mmQb5mzech7waetsO8pnFkNAXtcVQBHZURmQVSx9y
 Kz4FaBqkk6pHoG9B/8FXUrtMiumf
X-Google-Smtp-Source: APXvYqz8hYLJNUH82PHSyCHfCCeC7bci7qTOQkgAQ5iUV85R1Kze8is7iqLm+rSsu6srqfm9IPOSeA==
X-Received: by 2002:a0c:8af7:: with SMTP id 52mr73860255qvw.169.1555545035510; 
 Wed, 17 Apr 2019 16:50:35 -0700 (PDT)
Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 27sm309009qtp.49.2019.04.17.16.50.34
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Wed, 17 Apr 2019 16:50:34 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Kevin Brubeck Unhammer <unhammer@HIDDEN>
Subject: Re: bug#25176: 26.0.50;
 nxml-mode hangs on first failing isearch after opening big file
References: <87zik2t9we.fsf@HIDDEN>
Date: Wed, 17 Apr 2019 19:50:34 -0400
In-Reply-To: <87zik2t9we.fsf@HIDDEN> (Kevin Brubeck Unhammer's message of
 "Sun, 11 Dec 2016 22:48:17 +0100")
Message-ID: <87imvcw5rp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 25176
Cc: 25176 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

merge 25176 33887
quit

Kevin Brubeck Unhammer <unhammer@HIDDEN> writes:

> To reproduce:
>
> $ wget https://unhammer.org/k/nxml-isearch-hang.xml
> $ emacs -Q nxml-isearch-hang.xml
> # Then in emacs, answer yes and isearch for e.g. "x-x":
> y C-s x - x
>
> Now it'll hang, and require a C-g. A subsequent search, however, is
> instant.

The file is now 404, but I this sounds the same as Bug#33887 "26.1;
Emacs hangs for several seconds when going to the end of an XML file in
nXML mode".




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25176; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Dec 2016 21:48:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 11 16:48:34 2016
Received: from localhost ([127.0.0.1]:38485 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cGByz-0001qE-Rl
	for submit <at> debbugs.gnu.org; Sun, 11 Dec 2016 16:48:34 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50632)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <unhammer@HIDDEN>) id 1cGByx-0001pz-WC
 for submit <at> debbugs.gnu.org; Sun, 11 Dec 2016 16:48:32 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <unhammer@HIDDEN>) id 1cGByr-0001fy-LX
 for submit <at> debbugs.gnu.org; Sun, 11 Dec 2016 16:48:26 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:54059)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <unhammer@HIDDEN>) id 1cGByr-0001fq-Iu
 for submit <at> debbugs.gnu.org; Sun, 11 Dec 2016 16:48:25 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41595)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <unhammer@HIDDEN>) id 1cGByq-0004OV-0Z
 for bug-gnu-emacs@HIDDEN; Sun, 11 Dec 2016 16:48:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <unhammer@HIDDEN>) id 1cGByl-0001dj-S3
 for bug-gnu-emacs@HIDDEN; Sun, 11 Dec 2016 16:48:24 -0500
Received: from out4-smtp.messagingengine.com ([66.111.4.28]:55730)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <unhammer@HIDDEN>) id 1cGByl-0001dP-Na
 for bug-gnu-emacs@HIDDEN; Sun, 11 Dec 2016 16:48:19 -0500
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id B5FCC2077A;
 Sun, 11 Dec 2016 16:48:18 -0500 (EST)
Received: from frontend1 ([10.202.2.160])
 by compute1.internal (MEProxy); Sun, 11 Dec 2016 16:48:18 -0500
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
 messagingengine.com; h=content-type:date:from:message-id
 :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc
 :x-sasl-enc; s=smtpout; bh=IogcKMH3+nG8Rx924IJUSmWHQyU=; b=PqQoR
 9GfWenWvbdxveyoNu8H2uIfidvpcxpWgkkCs/IHvruaoY/IFVP25JjYnegJQlY4G
 O+dFQM75HaTHXDdZ6XWDF7JKuG6zjf8mtcinTgySeKKpeDBP78F901dZv/hneBVn
 jFXuCIQLxc+hxNoZyh+gSnvTt00O7BqmQslPDo=
X-ME-Sender: <xms:oslNWM9s623KsFv2ps_1RE500L0Fejhns7RU2yVI7mR1R3OE2JiQtg>
X-Sasl-enc: LCurPh/HTCsGtZA49IPrCS5bHcUBGMjIoaGoyJEj0dmh 1481492898
From: Kevin Brubeck Unhammer <unhammer@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.0.50;
 nxml-mode hangs on first failing isearch after opening big file
Date: Sun, 11 Dec 2016 22:48:17 +0100
Message-ID: <87zik2t9we.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)



Hi,

I think I've found a strange performance bug in nxml-mode, where the
first failing isearch will hang and require a C-g, whereas the second
(for the same string or any other) is near-instant.

To reproduce:

$ wget https://unhammer.org/k/nxml-isearch-hang.xml
$ emacs -Q nxml-isearch-hang.xml
# Then in emacs, answer yes and isearch for e.g. "x-x":
y C-s x - x

Now it'll hang, and require a C-g. A subsequent search, however, is
instant.

If I rename the file to end in .txt so it opens in fundamental-mode, I
don't get the hang. This is quite annoying, since I very often open huge
xml files and immediately start isearching for something, meaning I
always have to wait for the hang, C-g, then search again.




In GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-12-09 built on lgw01-51
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:	Ubuntu 16.04.1 LTS


Configured using:
 'configure --build=x86_64-linux-gnu --prefix=/usr
 '--includedir=${prefix}/include' '--mandir=${prefix}/share/man'
 '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var
 --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu'
 '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode
 --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib
 --program-suffix=-snapshot --with-modules=yes --with-x=yes
 --with-x-toolkit=gtk3 --with-xwidgets=yes 'CFLAGS=-g -O2
 -fstack-protector-strong -Wformat -Werror=format-security'
 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS LIBSYSTEMD

Important settings:
  value of $LANG: nn_NO.UTF-8
  value of $XMODIFIERS: 
  locale-coding-system: utf-8




Acknowledgement sent to Kevin Brubeck Unhammer <unhammer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#25176; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 18 Apr 2019 00:00:01 UTC

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