From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: emacs hangs when loading image Date: Mon, 27 Dec 2004 13:06:36 -0500 Message-ID: References: <87zn02djst.fsf@confusibombus.emacswiki.org> <41CE8018.4030704@math.ku.dk> <87brcg1qqg.fsf@confusibombus.emacswiki.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1104171300 30228 80.91.229.6 (27 Dec 2004 18:15:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Dec 2004 18:15:00 +0000 (UTC) Cc: larsh@math.ku.dk, storm@cua.dk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 27 19:14:53 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CizOP-0007Tp-00 for ; Mon, 27 Dec 2004 19:14:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CizZD-0002MY-EF for ged-emacs-devel@m.gmane.org; Mon, 27 Dec 2004 13:26:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CizWi-00015Y-Uw for emacs-devel@gnu.org; Mon, 27 Dec 2004 13:23:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CizWh-00014c-B7 for emacs-devel@gnu.org; Mon, 27 Dec 2004 13:23:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CizWg-00014V-Vi for emacs-devel@gnu.org; Mon, 27 Dec 2004 13:23:27 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CizLr-00023f-B7 for emacs-devel@gnu.org; Mon, 27 Dec 2004 13:12:15 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CizGO-0006UZ-8G; Mon, 27 Dec 2004 13:06:36 -0500 Original-To: Alex Schroeder In-reply-to: <87brcg1qqg.fsf@confusibombus.emacswiki.org> (message from Alex Schroeder on Mon, 27 Dec 2004 02:20:39 +0100) 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: main.gmane.org gmane.emacs.devel:31471 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31471 #0 0x08103e63 in adjust_markers_for_replace (from=106, from_byte=106, old_chars=8, old_bytes=106, new_chars=0, new_bytes=0) at insdel.c:493 #1 0x081056f0 in replace_range (from=106, to=114, new=157596715, prepare=1, inherit=0, markers=1) at insdel.c:1622 The args to adjust_markers_for_replace look wrong. Specifically, it is really strange that old_bytes is 106. 8 characters are not likely to occupy 106 bytes. Could you look at the code in replace_range and see how it computed old_bytes? And in general check those values.