From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Schmidt Newsgroups: gmane.emacs.bugs Subject: bug#12196: 24.1.50; setting cache-long-line-scans to non-nil freezes Emacs Date: Mon, 10 Sep 2012 11:28:35 +0100 (BST) Message-ID: <877gs218a3@ch.ristopher.com> References: <87has6ysxn.fsf@web.de> <834no4jeoa.fsf@gnu.org> <87ehmwscrt.fsf@web.de> <83ehmwh0pn.fsf@gnu.org> <87sjb9g981@ch.ristopher.com> <83oblrqwc1.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347272982 14805 80.91.229.3 (10 Sep 2012 10:29:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2012 10:29:42 +0000 (UTC) Cc: 12196@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 10 12:29:44 2012 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 1TB1FQ-00068h-8o for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 12:29:44 +0200 Original-Received: from localhost ([::1]:52673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB1FM-0001or-TK for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 06:29:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB1FE-0001mz-SL for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 06:29:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB1FA-0003p4-Jp for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 06:29:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB1FA-0003ou-GI for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 06:29:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TB1Fi-0000QL-8z for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 06:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Schmidt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Sep 2012 10:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12196 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13472729681548 (code B ref -1); Mon, 10 Sep 2012 10:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Sep 2012 10:29:28 +0000 Original-Received: from localhost ([127.0.0.1]:51429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB1FA-0000Ou-BG for submit@debbugs.gnu.org; Mon, 10 Sep 2012 06:29:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49031) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB1F7-0000Oi-E3 for submit@debbugs.gnu.org; Mon, 10 Sep 2012 06:29:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB1ET-0003Xk-7A for submit@debbugs.gnu.org; Mon, 10 Sep 2012 06:28:51 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:33951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB1ES-0003XP-St for submit@debbugs.gnu.org; Mon, 10 Sep 2012 06:28:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB1ER-0001hx-R1 for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 06:28:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB1EL-0003Tp-R8 for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 06:28:43 -0400 Original-Received: from ristopher.com ([146.185.21.93]:55980 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB1EL-0003Tg-J9; Mon, 10 Sep 2012 06:28:37 -0400 Original-Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id 3484820DC1; Mon, 10 Sep 2012 11:28:35 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1347272915; bh=x+syAh19oGSOIo81oNDqmTuPgkEv1282afsR5YFDhkE=; h=From:To:Cc:Subject:In-Reply-To:Message-ID:References:MIME-Version: Content-Type:Date; b=GQW8w9K7cc7fuhTZ25jGhirOioDk5cOSOAccNPhCj/i7Djw/E9uuak7mUVzA0ET/V fNw1ymEHOcpVquXyG1wZF58mqVt86RkAz9RrueKoKOLSBPgwKH2VtE5TbUH+KzFJKP ouoZxRJn1+UfN91N87Wy0oJF6bzDJU6h2nUd/H8U= In-Reply-To: <83oblrqwc1.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 31 Aug 2012 11:50:22 +0300") Mail-Followup-To: Eli Zaretskii , bug-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:64030 Archived-At: Eli Zaretskii writes: >> From: Christopher Schmidt >> Date: Sun, 26 Aug 2012 12:53:49 +0100 (BST) >> >> Setting cache-long-line-scans to t in various buffer that are meant >> to be displayed in a window, such as *Info*, *Help* etc., works just >> fine. Setting the default value of cache-long-line-scans to t in my >> init.el makes Emacs freeze whenever I try to view a remote post in >> Gnus. > > Does it only freeze in Gnus for you, then? Yes. It depends on the post I am trying to look at - although I can usually reproduce the issue after trying about four of five posts. >> Do you want me to investigate? > > Yes, please. Please follow the advice in etc/DEBUG to find out where > and why is Emacs looping. GNU Emacs 24.2.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-09-10; emacs-bzr-version is "109965 cyd@gnu.org-20120910032510-vrblnwlfnsb0cx3s". Emacs loops here: #0 scan_buffer (target=10, start=6730, end=6749, count=1, shortage=0x7fff171cbbf0, allow_quit=1) at search.c:742 #1 0x000000000059844f in find_before_next_newline (from=6730, to=0, cnt=1) at search.c:945 #2 0x00000000005c8c1f in Fline_end_position (n=4) at editfns.c:808 #3 0x000000000058cdcb in Fend_of_line (n=4) at cmds.c:201 p start_byte $11 = 6750 p cursor $12 = (unsigned char *) 0x3ddc6ad ");\n\n\treturn 0;\n}\n\n\n" p base $13 = (unsigned char *) 0x3ddc6ad ");\n\n\treturn 0;\n}\n\n\n" These values do not change. At the beginning of loop (search.c:669): p start $14 = 6730 p end $15 = 6749 target is '\n' of course. Ultimately the problem boils down to region_cache_forward (search.c:686) always returning 0 from the first invocation, thus start_byte (search.c:688) is not modified throughout the loop. #0 region_cache_forward (buf=0x4f1db30, c=0x4bae990, pos=6750, next=0x7fff171cbb38) at region-cache.c:706 #1 0x0000000000597995 in scan_buffer (target=10, start=6730, end=6749, count=1, shortage=0x7fff171cbbf0, allow_quit=1) at search.c:687 p buf->text->z $21 = 6749 I realise I am not much of a help here. Unfortunately I do not have time ATM to dig into the C source and understand how the newline cache works. Christopher