From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Intervals crash Date: Thu, 23 Sep 2010 14:23:24 -0400 Message-ID: <87aan82uar.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1285266215 20032 80.91.229.12 (23 Sep 2010 18:23:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2010 18:23:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 23 20:23:34 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OyqSE-0003Qy-2Q for ged-emacs-devel@m.gmane.org; Thu, 23 Sep 2010 20:23:34 +0200 Original-Received: from localhost ([127.0.0.1]:53174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyqSD-0006hs-G3 for ged-emacs-devel@m.gmane.org; Thu, 23 Sep 2010 14:23:33 -0400 Original-Received: from [140.186.70.92] (port=53230 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyqS7-0006hn-Rt for emacs-devel@gnu.org; Thu, 23 Sep 2010 14:23:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyqS6-0000pB-PN for emacs-devel@gnu.org; Thu, 23 Sep 2010 14:23:27 -0400 Original-Received: from pantheon-po24.its.yale.edu ([130.132.50.118]:43074) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyqS6-0000ot-Me; Thu, 23 Sep 2010 14:23:26 -0400 Original-Received: from furry (dhcp128036014154.central.yale.edu [128.36.14.154]) (authenticated bits=0) by pantheon-po24.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o8NINOP5030983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 23 Sep 2010 14:23:24 -0400 Original-Received: by furry (Postfix, from userid 1000) id 6BA5416D402; Thu, 23 Sep 2010 14:23:24 -0400 (EDT) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130675 Archived-At: I'm getting a crash due to your recent EMACS_UINT change. emacs -Q C-x C-f tr TAB => crash #0 abort () at emacs.c:423 #1 0x0824356b in delete_interval (i=0x84a8cbc) at intervals.c:1269 #2 0x08243a36 in merge_interval_right (i=0x84a8cbc) at intervals.c:1474 #3 0x08242d93 in adjust_intervals_for_insertion (tree=0x84b7e7c, position=12, length=8) at intervals.c:1027 #4 0x0824396d in offset_intervals (buffer=0x85de228, start=12, length=8) at intervals.c:1436 #5 0x08191207 in insert_from_string_1 (string=141199641, pos=0, pos_byte=0, nchars=8, nbytes=8, inherit=0, before_markers=0) at insdel.c:1087 #6 0x08190ddf in insert_from_string (string=141199641, pos=0, pos_byte=0, length=8, length_byte=8, inherit=0) at insdel.c:986 ... Lisp Backtrace: "completion--replace" (0xbfffd654) "completion--do-completion" (0xbfffd944) "minibuffer-complete" (0xbfffdc54) ... The LENGTH macro in intervals.h:114 has to be able to return a negative number. This is probably worth reverting, until you come up with a proper fix.