GNU bug report logs - #18696
Emacs freezes for a while visitin Conf (.ini)) buffers

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: Angelo Graziosi <angelo.graziosi@HIDDEN>; dated Sun, 12 Oct 2014 08:25:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 18696) by debbugs.gnu.org; 14 Oct 2014 18:43:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 14 14:43:59 2014
Received: from localhost ([127.0.0.1]:43484 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Xe74g-00065r-QX
	for submit <at> debbugs.gnu.org; Tue, 14 Oct 2014 14:43:59 -0400
Received: from pruche.dit.umontreal.ca ([132.204.246.22]:47350)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1Xe74e-00065g-L1
 for 18696 <at> debbugs.gnu.org; Tue, 14 Oct 2014 14:43:56 -0400
Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242])
 by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s9EIhsW3006532;
 Tue, 14 Oct 2014 14:43:54 -0400
Received: by ceviche.home (Postfix, from userid 20848)
 id 485CC66089; Tue, 14 Oct 2014 14:43:49 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Angelo Graziosi <angelo.graziosi@HIDDEN>
Subject: Re: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers
Message-ID: <jwv1tqaqyse.fsf-monnier+emacsbugs@HIDDEN>
References: <543A3AB2.3010301@HIDDEN> <838ukl8z1i.fsf@HIDDEN>
 <543A56F3.4010701@HIDDEN>
Date: Tue, 14 Oct 2014 14:43:49 -0400
In-Reply-To: <543A56F3.4010701@HIDDEN> (Angelo Graziosi's message of "Sun,
 12 Oct 2014 12:24:51 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV5094=0
X-NAI-Spam-Version: 2.3.0.9378 : core <5094> : inlines <1396> : streams
 <1316777> : uri <1824899>
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: 18696
Cc: Eli Zaretskii <eliz@HIDDEN>, 18696 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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.3 (-)

> Indeed.. it is this in my initialization file:
>   (which-function-mode t)
> and, considering the structure of that setup.ini file, this 'freezing' could
> be expected..

Actually IIUC which-function-mode shouldn't cause such a slow down.
If it does, it's probably because the major mode doesn't have special
support for which-function-mode, so it falls back on using imenu's
support, i.e. it needs to scan the whole buffer.

This said, scanning the whole buffer shouldn't be that sow, unless you
really have very many sections.  So it might also simply be a bug in the
way the major mode supports imenu (e.g. the regexp used is inefficient).


        Stefan




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

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


Received: (at 18696) by debbugs.gnu.org; 12 Oct 2014 10:24:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 12 06:24:53 2014
Received: from localhost ([127.0.0.1]:41486 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XdGKb-0004DN-2Q
	for submit <at> debbugs.gnu.org; Sun, 12 Oct 2014 06:24:53 -0400
Received: from smtp204.alice.it ([82.57.200.100]:34566)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <angelo.graziosi@HIDDEN>) id 1XdGKZ-0004DD-5p
 for 18696 <at> debbugs.gnu.org; Sun, 12 Oct 2014 06:24:52 -0400
Received: from [192.168.1.101] (79.53.15.78) by smtp204.alice.it (8.6.060.43)
 (authenticated as angelo.graziosi@HIDDEN)
 id 542BEACC02D9F5F3; Sun, 12 Oct 2014 12:24:49 +0200
Message-ID: <543A56F3.4010701@HIDDEN>
Date: Sun, 12 Oct 2014 12:24:51 +0200
From: Angelo Graziosi <angelo.graziosi@HIDDEN>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
 rv:31.0) Gecko/20100101 Thunderbird/31.1.2
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers
References: <543A3AB2.3010301@HIDDEN> <838ukl8z1i.fsf@HIDDEN>
In-Reply-To: <838ukl8z1i.fsf@HIDDEN>
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 18696
Cc: 18696 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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: -0.0 (/)



Il 12/10/2014 10:36, Eli Zaretskii ha scritto:
>
> If this is not in "emacs -Q", there's likely some optional feature
> that causes that.

Indeed.. it is this in my initialization file:

   (which-function-mode t)


and, considering the structure of that setup.ini file, this 'freezing' 
could be expected..


Thanks,
  Angelo.




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

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


Received: (at 18696) by debbugs.gnu.org; 12 Oct 2014 08:36:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 12 04:36:58 2014
Received: from localhost ([127.0.0.1]:41466 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XdEe8-0001XB-6y
	for submit <at> debbugs.gnu.org; Sun, 12 Oct 2014 04:36:58 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:58947)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1XdEe5-0001X1-1k
 for 18696 <at> debbugs.gnu.org; Sun, 12 Oct 2014 04:36:54 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
 a-mtaout20.012.net.il (HyperSendmail v2007.08) id
 <0NDB00K00P5EJX00@HIDDEN> for 18696 <at> debbugs.gnu.org;
 Sun, 12 Oct 2014 11:36:50 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NDB00KW1P9EGO30@HIDDEN>;
 Sun, 12 Oct 2014 11:36:50 +0300 (IDT)
Date: Sun, 12 Oct 2014 11:36:41 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers
In-reply-to: <543A3AB2.3010301@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Angelo Graziosi <angelo.graziosi@HIDDEN>
Message-id: <838ukl8z1i.fsf@HIDDEN>
References: <543A3AB2.3010301@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 18696
Cc: 18696 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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 (+)

> Date: Sun, 12 Oct 2014 10:24:18 +0200
> From: Angelo Graziosi <angelo.graziosi@HIDDEN>
> 
> I have see this trying to visit Cygwin setup.ini files [*], for example:
> 
>    ftp://mirrors.kernel.org/sourceware/cygwin/x86_64/setup.ini
> 
> 
> (it is a file of about 2.5 MiB).
> 
> After C-x C-f setup.ini, Emacs freezes (or hangs, if you prefer) and 
> does not respond for a while (> 1 minute), CPU is at 80-100%. Then it 
> works fine. Maybe it is processing the file but I wonder if this 
> 'freezing' is to be expected.

If this is in "emacs -Q", then I cannot reproduce this in a MinGW
build.  (You didn't say which version, so I tried the 24.3.94 pretest
and a recent trunk.)

If this is not in "emacs -Q", there's likely some optional feature
that causes that.

In any case, attaching a debugger during the freeze and looking what
does the main thread do should shed some light on this.




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

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


Received: (at submit) by debbugs.gnu.org; 12 Oct 2014 08:24:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 12 04:24:52 2014
Received: from localhost ([127.0.0.1]:41461 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XdESR-0001DD-K4
	for submit <at> debbugs.gnu.org; Sun, 12 Oct 2014 04:24:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52485)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <angelo.graziosi@HIDDEN>) id 1XdESP-0001D5-OP
 for submit <at> debbugs.gnu.org; Sun, 12 Oct 2014 04:24:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <angelo.graziosi@HIDDEN>) id 1XdESF-0004Qu-Np
 for submit <at> debbugs.gnu.org; Sun, 12 Oct 2014 04:24:49 -0400
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,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:33078)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <angelo.graziosi@HIDDEN>) id 1XdESF-0004Qq-KQ
 for submit <at> debbugs.gnu.org; Sun, 12 Oct 2014 04:24:39 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54179)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <angelo.graziosi@HIDDEN>) id 1XdES8-0001U9-4A
 for bug-gnu-emacs@HIDDEN; Sun, 12 Oct 2014 04:24:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <angelo.graziosi@HIDDEN>) id 1XdES0-0004OB-KH
 for bug-gnu-emacs@HIDDEN; Sun, 12 Oct 2014 04:24:32 -0400
Received: from smtp201.alice.it ([82.57.200.97]:29585)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <angelo.graziosi@HIDDEN>) id 1XdES0-0004Np-Dy
 for bug-gnu-emacs@HIDDEN; Sun, 12 Oct 2014 04:24:24 -0400
Received: from [192.168.1.101] (79.53.15.78) by smtp201.alice.it (8.6.060.43)
 (authenticated as angelo.graziosi@HIDDEN)
 id 540979130C60CB69 for bug-gnu-emacs@HIDDEN; Sun, 12 Oct 2014 10:24:22 +0200
Message-ID: <543A3AB2.3010301@HIDDEN>
Date: Sun, 12 Oct 2014 10:24:18 +0200
From: Angelo Graziosi <angelo.graziosi@HIDDEN>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
 rv:31.0) Gecko/20100101 Thunderbird/31.1.2
MIME-Version: 1.0
To: bug-gnu-emacs@HIDDEN
Subject: Emacs freezes for a while visitin Conf (.ini)) buffers
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
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.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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 (-----)

I have see this trying to visit Cygwin setup.ini files [*], for example:

   ftp://mirrors.kernel.org/sourceware/cygwin/x86_64/setup.ini


(it is a file of about 2.5 MiB).

After C-x C-f setup.ini, Emacs freezes (or hangs, if you prefer) and 
does not respond for a while (> 1 minute), CPU is at 80-100%. Then it 
works fine. Maybe it is processing the file but I wonder if this 
'freezing' is to be expected.

I have experimented this with Cygwin and MSYS2-MinGW64 builds.


Ciao,
  Angelo.

---
[*] Mode line shows it is in Config[Colon] mode




Acknowledgement sent to Angelo Graziosi <angelo.graziosi@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#18696; 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: Fri, 31 Oct 2014 17:00:04 UTC

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