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: crash in RC branch Date: Wed, 06 Nov 2002 23:49:01 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1036646072 24710 80.91.224.249 (7 Nov 2002 05:14:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 7 Nov 2002 05:14:32 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 189ezt-0006QE-00 for ; Thu, 07 Nov 2002 06:14:29 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 189f8i-0006FE-00 for ; Thu, 07 Nov 2002 06:23:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 189ewa-0000Ce-00; Thu, 07 Nov 2002 00:11:04 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 189ebK-0001js-00 for emacs-devel@gnu.org; Wed, 06 Nov 2002 23:49:06 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 189ebG-0001hY-00 for emacs-devel@gnu.org; Wed, 06 Nov 2002 23:49:05 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 189ebF-0001gw-00 for emacs-devel@gnu.org; Wed, 06 Nov 2002 23:49:01 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 189ebF-0003DC-00; Wed, 06 Nov 2002 23:49:01 -0500 Original-To: pot@gnu.org In-reply-to: (message from Francesco Potorti` on Tue, 05 Nov 2002 16:50:31 +0100) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9211 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9211 I visited a big (about 17 MB) rmail file. After a while, since Emacs took a long time to load it, I hit C-g. Then I don't know exactly what I did, and I do not manage to print the value of recent_keys in a coprehensible way. The only way to debug this is by working backwards from the crash site. Analize why it crashed, and then see where the data came from. Try to work back as far as you can. Information such as what you typed is relevant only if it helps you do this backward analysis. What made it abort is the first condition. In fact, in current_buffer: pt = 17566287 (position) own_text.z = 981 (BUF_Z) Ok, so PT is wrong. The question is, where did it get set wrong? The value clearly relates to the size of the file The gap size is big (as it was in the previous crash) gpt = 970, z = 981, gpt_byte = 970, z_byte = 981, gap_size = 17571308, I suspect that the gap was made big in order to accommodate the file's text, but then it did not all get inserted. I suggest you take a look at the code in Finsert_file_contents to see if there is a way it can quit, setting PT based on the text it WOULD HAVE inserted. Maybe you can insert some calls to abort at the places that can QUIT in Finsert_file_contents, checking that PT is <= Z. Then if this happens again it will abort earlier where you have a chance of seeimg why;