all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: larsi@gnus.org, camel322@gmail.com, 6540-done@debbugs.gnu.org
Subject: bug#6540: 23.2; 23.2.1 (i386-mingw-nt6.1.7600) crashes too
Date: Sat, 07 Jan 2012 14:09:24 +0200	[thread overview]
Message-ID: <83y5tjg1e3.fsf@gnu.org> (raw)
In-Reply-To: <83aa5zhqdx.fsf@gnu.org>

> Date: Sat, 07 Jan 2012 10:24:10 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: camel322@gmail.com, 6540@debbugs.gnu.org
> 
> > From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> > Date: Sat, 07 Jan 2012 05:36:43 +0100
> > Cc: 6540@debbugs.gnu.org
> > 
> > Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> > 
> > > oCameLo <camel322@gmail.com> writes:
> > >
> > >> Steps to reproduce:
> > >>
> > >>  - emacs -q
> > >>
> > >>  - (setq cache-long-line-scans t)
> > >>    C-x C-e
> > >>
> > >>  - (insert (prin1-to-string (x-list-fonts "*")))
> > >>    C-j
> > >
> > > I'm unable to reproduce this with Emacs 24 under Linux.  Has this bug
> > > gone away in Emacs 24 for you, too?

I guess this couldn't be reproduced on GNU/Linux because all font
names there are pure ASCII.  On Windows, x-list-fonts includes several
non-ASCII characters, in font names such as this:

 "-outline-Counterfeit² B-normal-normal-normal-*-*-*-*-*-p-*-iso10646-1"

There are, indeed, such fonts on MS-Windows.

This bug is triggered only when non-ASCII text is inserted into a
buffer, because it used byte positions where character positions were
expected.

(Actually, I wonder how come we didn't see this until now, the bug
being so glaring; I guess the number of people using
cache-long-line-scans is nil.)

>   Breakpoint 1, w32_abort () at w32fns.c:7193
>   7193      button = MessageBox (NULL,
>   (gdb) bt
>   #0  w32_abort () at w32fns.c:7193
>   #1  0x012f7f19 in set_cache_region (c=0x357d1a0, start=269, end=110364,
>       value=1) at region-cache.c:387
>   #2  0x012f860b in know_region_cache (buf=0x32a6000, c=0x357d1a0, start=269,
>       end=110364) at region-cache.c:694
>   #3  0x010fbc5d in scan_buffer (target=10, start=110361, end=1, count=-1,
>       shortage=0x0, allow_quit=0) at search.c:793

Here, a buffer of 110361 characters was scanned back for a new line,
but know_region_cache is passed 110364 as the buffer end, which is the
value of ZV_BYTE, not of ZV.

Fixed in revision 106820 on the trunk.

I'm closing this bug report (again ;-).






      reply	other threads:[~2012-01-07 12:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-30 12:29 bug#6540: 23.2; Crash on large file when `cache-long-line-scans' is set and point moved to eob David Maus
2011-01-24 14:56 ` bug#6540: 23.2; 23.2.1 (i386-mingw-nt6.1.7600) crashes too oCameLo
2011-09-21 21:14   ` Lars Magne Ingebrigtsen
2012-01-07  4:36     ` Lars Magne Ingebrigtsen
2012-01-07  8:24       ` Eli Zaretskii
2012-01-07 12:09         ` Eli Zaretskii [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83y5tjg1e3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=6540-done@debbugs.gnu.org \
    --cc=camel322@gmail.com \
    --cc=larsi@gnus.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.