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: infloop when removing character Date: Thu, 07 Aug 2003 02:05:02 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: main.gmane.org 1060237085 25027 80.91.224.253 (7 Aug 2003 06:18:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2003 06:18:05 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Aug 07 08:18:28 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ke6W-00028V-00 for ; Thu, 07 Aug 2003 08:18:28 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19keBq-0005Dr-00 for ; Thu, 07 Aug 2003 08:23:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19kdvu-0004Ra-N3 for emacs-devel@quimby.gnus.org; Thu, 07 Aug 2003 02:07:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19kduw-00040R-8Z for emacs-devel@gnu.org; Thu, 07 Aug 2003 02:06:30 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19kduM-0003fK-2G for emacs-devel@gnu.org; Thu, 07 Aug 2003 02:06:25 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19kduL-0003fE-Rf for emacs-devel@gnu.org; Thu, 07 Aug 2003 02:05:53 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.20) id 19kdtW-0004wr-Hr; Thu, 07 Aug 2003 02:05:02 -0400 Original-To: Simon Josefsson In-reply-to: (message from Simon Josefsson on Mon, 04 Aug 2003 23:08:54 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15826 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15826 809 while (--cursor != ceiling_addr && *cursor != '\n') (gdb) n 814 if (++count == 0) This loop increases count. (gdb) p count $8 = -516 Ok. Program received signal SIGTSTP, Stopped (user). 0x08140f15 in scan_newline (start=1086115847, start_byte=513066, limit=1, limit_byte=1, count=-9641, allow_quit=0) at search.c:809 809 while (--cursor != ceiling_addr && *cursor != '\n') (gdb) p count $9 = -9641 Something made count smaller. Apparently some other code did run. Can you find out what happened? Did the first call to scan_newline return and did it get called again? Please try using the `finish' command as explained in etc/DEBUG.