unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: unpredictable emacs 21 crashes
       [not found] <xkk7p6kap2.fsf@maxwell.astro.utoronto.ca>
@ 2002-06-15 14:14 ` Richard Stallman
  2002-06-16  5:43   ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2002-06-15 14:14 UTC (permalink / raw)
  Cc: emacs-devel

    (gdb) up
    #1  0x80d6044 in fatal_error_signal ()
    (gdb) up
    #2  <signal handler called>
    (gdb) up
    #3  0x811d476 in mark_object ()
    (gdb) up

This is a failure in GC.  It is natural that there would be many stack
frames recursively calling mark_object.  To find where GC was called,
try moving up the stack many frames at once.  Use `up 100' for
instance.  Try various numbers; do a binary search.

Most likely, whatever called GC won't be relevant.
The crash is probably due to invalid data.  To analyze it
you need to study the data being worked on in the innermost frames.
By working back one frame at a time, you can see what data structure
the invalid objects are found in.  The vector last_marked (see
alloc.c) can help you trace this back.

Once you see if there is a pattern to that, we might have an idea
where to look for the real problem.

This analysis process is nontrivial, but there's no shortcut
except to be very very lucky.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: unpredictable emacs 21 crashes
  2002-06-15 14:14 ` unpredictable emacs 21 crashes Richard Stallman
@ 2002-06-16  5:43   ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2002-06-16  5:43 UTC (permalink / raw)
  Cc: reid+usenet, emacs-devel


On Sat, 15 Jun 2002, Richard Stallman wrote:

> Most likely, whatever called GC won't be relevant.
> The crash is probably due to invalid data.  To analyze it
> you need to study the data being worked on in the innermost frames.
> By working back one frame at a time, you can see what data structure
> the invalid objects are found in.  The vector last_marked (see
> alloc.c) can help you trace this back.

There's some information about debugging these problems in etc/DEBUG.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-16  5:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <xkk7p6kap2.fsf@maxwell.astro.utoronto.ca>
2002-06-15 14:14 ` unpredictable emacs 21 crashes Richard Stallman
2002-06-16  5:43   ` Eli Zaretskii

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).