GNU bug report logs -
#874
Args out of range with new auto-composition implementation
Previous Next
Reported by: "Juanma Barranquero" <lekktu <at> gmail.com>
Date: Wed, 3 Sep 2008 16:30:03 UTC
Severity: normal
Found in version 23.0.60
Done: "Juanma Barranquero" <lekktu <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 874 in the body.
You can then email your comments to 874 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#874
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
"Juanma Barranquero" <lekktu <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
;;; testbug.el ;;;
(column-number-mode 1)
(defun testbug ()
(interactive)
(split-window)
(other-window 1)
(pop-to-buffer (get-buffer-create "testbug")))
;;;;;;;;;;;;;;;;;
emacs -Q -l testbug.el
C-h H
M-: (goto-char 276) <RET> ;; or move the cursor to any auto-composed char
M-x testbug <RET>
=> "Args out of range: 274, 274"
(and the windows are not correctly painted.)
At home's laptop I can reproduce the bug at will; as a weird
datapoint, at work I've only been able to reproduce it when the buffer
is called "*ielm*", even if IELM is *not* loaded.
emacs-devel discussion (including a backtrace):
http://lists.gnu.org/archive/html/emacs-devel/2008-09/msg00045.html
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#874
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
"Juanma Barranquero" <lekktu <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #10 received at 874 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Wed, Sep 3, 2008 at 18:21, Juanma Barranquero <lekktu <at> gmail.com> wrote:
> emacs -Q -l testbug.el
> C-h H
> M-: (goto-char 276) <RET> ;; or move the cursor to any auto-composed char
> M-x testbug <RET>
>
> => "Args out of range: 274, 274"
Curious. The out of range error is caused by this code in
textprop.c:validate_interval_range
if (!(BUF_BEGV (b) <= XINT (*begin) && XINT (*begin) <= XINT (*end)
&& XINT (*end) <= BUF_ZV (b)))
args_out_of_range (*begin, *end);
At that point,
BUF_BEGV (b) = 1
BUF_ZV (b) = 1
XINT (*begin) = 274
XINT (*end) = 274
where *begin and *end point to the position in buffer "HELLO", but b
(and hence object, from which b is extracted) points to the just
created buffer "testbug":
(gdb) p object
$1 = 64949764
(gdb) xbuffer
$2 = (struct buffer *) 0x3df0e00
(unsigned char *) 0x3de6880 "testbug"
so it's no wonder it fails.
bug marked as found in version 23.0.60.
Request was from
"Juanma Barranquero" <lekktu <at> gmail.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Tue, 09 Sep 2008 15:40:04 GMT)
Full text and
rfc822 format available.
Reply sent to
"Juanma Barranquero" <lekktu <at> gmail.com>
:
You have taken responsibility.
Full text and
rfc822 format available.
Notification sent to
"Juanma Barranquero" <lekktu <at> gmail.com>
:
bug acknowledged by developer.
Full text and
rfc822 format available.
Message #17 received at 874-done <at> emacsbugs.donarmstrong.com (full text, mbox):
On Fri, Sep 12, 2008 at 08:32, Kenichi Handa <handa <at> m17n.org> wrote:
> Anyway, I've just installed a workaround of not handling
> automatic composition if the current buffer is not
> associated with a window.
That fixes the problem. Thanks.
Juanma
bug archived.
Request was from
Debbugs Internal Request <don <at> donarmstrong.com>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Fri, 10 Oct 2008 14:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 252 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.