From: Christopher Schmidt <christopher@ch.ristopher.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 12196@debbugs.gnu.org
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) [thread overview]
Message-ID: <877gs218a3@ch.ristopher.com> (raw)
In-Reply-To: <83oblrqwc1.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 31 Aug 2012 11:50:22 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Christopher Schmidt <christopher@ch.ristopher.com>
>> 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
next prev parent reply other threads:[~2012-09-10 10:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-14 4:54 bug#12196: 24.1.50; setting cache-long-line-scans to non-nil freezes Emacs Michael Heerdegen
2012-08-15 16:36 ` Eli Zaretskii
2012-08-24 12:19 ` Michael Heerdegen
2012-08-24 13:35 ` Eli Zaretskii
2012-08-26 11:53 ` Christopher Schmidt
2012-08-31 8:50 ` Eli Zaretskii
2012-09-10 10:28 ` Christopher Schmidt [this message]
2012-09-10 11:10 ` Eli Zaretskii
2012-09-10 13:19 ` Christopher Schmidt
2012-09-10 17:10 ` Eli Zaretskii
2012-09-10 17:31 ` Christopher Schmidt
2012-09-10 18:43 ` Eli Zaretskii
2012-09-17 17:17 ` Christopher Schmidt
2012-09-17 18:38 ` Eli Zaretskii
2012-09-17 18:53 ` Christopher Schmidt
2012-09-17 20:18 ` Eli Zaretskii
2012-09-18 7:25 ` Christopher Schmidt
2012-09-18 8:02 ` Eli Zaretskii
2012-08-26 15:58 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877gs218a3@ch.ristopher.com \
--to=christopher@ch.ristopher.com \
--cc=12196@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).