unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: crash in RC branch
Date: Wed, 06 Nov 2002 23:49:01 -0500	[thread overview]
Message-ID: <E189ebF-0003DC-00@fencepost.gnu.org> (raw)
In-Reply-To: <E1895yJ-0007Xa-00@pot.cnuce.cnr.it> (message from Francesco Potorti` on Tue, 05 Nov 2002 16:50:31 +0100)

    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;

  reply	other threads:[~2002-11-07  4:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-03 23:36 crash in RC branch Francesco Potorti`
2002-11-04 17:50 ` Francesco Potorti`
2002-11-06  4:49   ` Richard Stallman
2002-11-06  6:41     ` Eli Zaretskii
2002-11-06 12:22       ` Francesco Potorti`
2002-11-07 14:45         ` Eli Zaretskii
2002-11-07 22:05           ` Francesco Potorti`
2002-11-09 21:30             ` Eli Zaretskii
2002-11-10  8:03               ` Francesco Potorti`
2002-11-10 14:09                 ` Eli Zaretskii
2002-11-07 15:07       ` Richard Stallman
2002-11-05 15:50 ` Francesco Potorti`
2002-11-07  4:49   ` Richard Stallman [this message]
2002-12-23 20:58 ` Richard Stallman
2002-12-23 22:10   ` Francesco Potorti`
2002-12-24  6:19     ` Eli Zaretskii
2002-12-25 21:52     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E189ebF-0003DC-00@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).