From unknown Mon Aug 18 19:29:49 2025 X-Loop: don@donarmstrong.com Subject: bug#874: Args out of range with new auto-composition implementation Reply-To: "Juanma Barranquero" , 874@debbugs.gnu.org Resent-From: "Juanma Barranquero" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 03 Sep 2008 16:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 874 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122045891614780 (code B ref -1); Wed, 03 Sep 2008 16:30:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.7 required=4.0 tests=AWL,BAYES_00,FOURLA autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 3 Sep 2008 16:21:56 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m83GLqwq014774 for ; Wed, 3 Sep 2008 09:21:53 -0700 Received: by an-out-0708.google.com with SMTP id b20so520455ana.9 for ; Wed, 03 Sep 2008 09:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=9ASGfXZa8ASUZA82jVhuiMPYgzKyPUUxhsm6I8L9NDU=; b=RVBqwiUqt3DbMF8iinmUMD0yTyK3fYk1cpzREgxiT7n68/wsYhu/H3Xf+Nwunvsa8H 4wKUcKv896pukJfSZskp+XO5G8ZC+zSvelp6L5LdRgrSdcuI1ETTgYyDLWMYQY1gX2Gp /PUvjLm/i6siI+GadP2SXoDs4TcWpJ7uuvtVs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=uBiVFbrHG1ixFnztFNB6xmPrRQX3ypmpgaw189m4xo7ZeXew+JEi2qTNgXDG/1gdFp sAg3HiyQlDqtSBcgAblkPcIQFrFkhFD6xs5HyuK9M/lci69Jfs1Tco5i9Tv2OwEt8N1B 9eeJ3wNLk/LoDHOmzlwJ+CDz+bYVw4hJkXgwc= Received: by 10.100.41.8 with SMTP id o8mr9318272ano.11.1220458912012; Wed, 03 Sep 2008 09:21:52 -0700 (PDT) Received: by 10.100.194.19 with HTTP; Wed, 3 Sep 2008 09:21:51 -0700 (PDT) Message-ID: Date: Wed, 3 Sep 2008 18:21:51 +0200 From: "Juanma Barranquero" To: "Emacs Bug Tracker" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline ;;; 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) ;; or move the cursor to any auto-composed char M-x testbug => "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 From unknown Mon Aug 18 19:29:49 2025 X-Loop: don@donarmstrong.com Subject: bug#874: Args out of range with new auto-composition implementation Reply-To: "Juanma Barranquero" , 874@debbugs.gnu.org Resent-From: "Juanma Barranquero" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Sep 2008 15:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 874 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 874-submit@emacsbugs.donarmstrong.com id=B874.12205419503151 (code B ref 874); Thu, 04 Sep 2008 15:35:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.6 required=4.0 tests=AWL,BAYES_00,FOURLA,GMAIL, HAS_BUG_NUMBER,IMPRONONCABLE_2 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 874) by emacsbugs.donarmstrong.com; 4 Sep 2008 15:25:50 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84FPkcY003144 for <874@emacsbugs.donarmstrong.com>; Thu, 4 Sep 2008 08:25:48 -0700 Received: by an-out-0708.google.com with SMTP id b20so622136ana.9 for <874@emacsbugs.donarmstrong.com>; Thu, 04 Sep 2008 08:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=1Fqd5kg9fi1TpP/I2FRVqEoWB9CipdeeYaYGB/bqZFM=; b=X4F6hGKKekL0aX9gnQZDRQgmtgHBYGr2w/jpyUklxVmBAVbRBUu13v5kLEQHUKoWxX AiOwIHjtWXx2TEJhiIL8vKKxKSiENFybtTIlc8USLEUWxbXb+PsY9A7HC03yGL8xsq19 Vg4XTzLBTx0Kh4Bbhmy0ZB2/W63nVOb3r4Kbs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=UGDizx8qn6LRbFEs01IQGVDW02W0f/0kXnNDfYTvo11R8jPeMN7S81myBEnP5NPI5U djRfTedQBtzk0IthHxq80YDtzlZuy4fzHCT61LObcRjXRR7nnyIcAJcRT1IFrZMsTuD5 8Uy/beClh27Q/wB+GqsaPWl3lMn7+FJG53J2Q= Received: by 10.100.112.6 with SMTP id k6mr11056111anc.71.1220541946527; Thu, 04 Sep 2008 08:25:46 -0700 (PDT) Received: by 10.100.194.19 with HTTP; Thu, 4 Sep 2008 08:25:46 -0700 (PDT) Message-ID: Date: Thu, 4 Sep 2008 17:25:46 +0200 From: "Juanma Barranquero" To: 874@debbugs.gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: On Wed, Sep 3, 2008 at 18:21, Juanma Barranquero wrote: > emacs -Q -l testbug.el > C-h H > M-: (goto-char 276) ;; or move the cursor to any auto-composed char > M-x testbug > > => "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. From unknown Mon Aug 18 19:29:49 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "Juanma Barranquero" Subject: bug#874 closed by "Juanma Barranquero" (Re: Args out of range with new auto-composition implementation) Message-ID: References: X-Emacs-PR-Message: they-closed 874 X-Emacs-PR-Package: emacs Reply-To: 874@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1221210307-11750-1" This is a multi-part message in MIME format... ------------=_1221210307-11750-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #874: Args out of range with new auto-composition implementation It has been closed by "Juanma Barranquero" . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact "Juanma Barranquero" <= lekktu@gmail.com> by replying to this email. --=20 874: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D874 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1221210307-11750-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From lekktu@gmail.com Fri Sep 12 01:56:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.1 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 874-done) by emacsbugs.donarmstrong.com; 12 Sep 2008 08:56:48 +0000 Received: from mail-gx0-f19.google.com (mail-gx0-f19.google.com [209.85.217.19]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8C8uinc009257 for <874-done@emacsbugs.donarmstrong.com>; Fri, 12 Sep 2008 01:56:45 -0700 Received: by gxk12 with SMTP id 12so12122640gxk.1 for <874-done@emacsbugs.donarmstrong.com>; Fri, 12 Sep 2008 01:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=4Q2OeKQvE4s1f7DtsTgzk3f/urMCuKiBpe+HunHcvV4=; b=Mk9m8188C2kREaZAX473Au2fIrKiWVMTKEIdtdqvp60mHVapnn8DjNbPTh3fW6abTV 8qrDt5ny8NxtMKl6zvIRr3J2W3/SyYzwpNa9evFm1K3i2rbiP/+koUZyi7UD16GH5x1F 51beMMu1LPARi3L41G3pelrsupmV0ZZtaywcA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ZkiX+4QDk21Hj72nacwJdlu0A54YC5cnA0sUGBNVyYYT4ZfJ310z0ytRrhX4o4a9n8 DA0C0itrApaxXy7kNPtMIkju8tI63W+tkixYmabRuBA8olLLo8w0J7XDbWBl+T2RCq/A hFXAu7OLZvgN7WMKoDece+w1+feEtICVmg+Zs= Received: by 10.100.209.5 with SMTP id h5mr4907642ang.18.1221209799280; Fri, 12 Sep 2008 01:56:39 -0700 (PDT) Received: by 10.100.13.13 with HTTP; Fri, 12 Sep 2008 01:56:39 -0700 (PDT) Message-ID: Date: Fri, 12 Sep 2008 10:56:39 +0200 From: "Juanma Barranquero" To: "Kenichi Handa" Subject: Re: Args out of range with new auto-composition implementation Cc: emacs-devel@gnu.org, 874-done@debbugs.gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: On Fri, Sep 12, 2008 at 08:32, Kenichi Handa 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 ------------=_1221210307-11750-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From lekktu@gmail.com Wed Sep 3 09:21:56 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.7 required=4.0 tests=AWL,BAYES_00,FOURLA autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 3 Sep 2008 16:21:56 +0000 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m83GLqwq014774 for ; Wed, 3 Sep 2008 09:21:53 -0700 Received: by an-out-0708.google.com with SMTP id b20so520455ana.9 for ; Wed, 03 Sep 2008 09:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=9ASGfXZa8ASUZA82jVhuiMPYgzKyPUUxhsm6I8L9NDU=; b=RVBqwiUqt3DbMF8iinmUMD0yTyK3fYk1cpzREgxiT7n68/wsYhu/H3Xf+Nwunvsa8H 4wKUcKv896pukJfSZskp+XO5G8ZC+zSvelp6L5LdRgrSdcuI1ETTgYyDLWMYQY1gX2Gp /PUvjLm/i6siI+GadP2SXoDs4TcWpJ7uuvtVs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=uBiVFbrHG1ixFnztFNB6xmPrRQX3ypmpgaw189m4xo7ZeXew+JEi2qTNgXDG/1gdFp sAg3HiyQlDqtSBcgAblkPcIQFrFkhFD6xs5HyuK9M/lci69Jfs1Tco5i9Tv2OwEt8N1B 9eeJ3wNLk/LoDHOmzlwJ+CDz+bYVw4hJkXgwc= Received: by 10.100.41.8 with SMTP id o8mr9318272ano.11.1220458912012; Wed, 03 Sep 2008 09:21:52 -0700 (PDT) Received: by 10.100.194.19 with HTTP; Wed, 3 Sep 2008 09:21:51 -0700 (PDT) Message-ID: Date: Wed, 3 Sep 2008 18:21:51 +0200 From: "Juanma Barranquero" To: "Emacs Bug Tracker" Subject: Args out of range with new auto-composition implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline ;;; 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) ;; or move the cursor to any auto-composed char M-x testbug => "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 ------------=_1221210307-11750-1--