unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: covici@ccs.covici.com
To: Christoph Scholtes <cschol2112@gmail.com>
Cc: eliz@gnu.org, Paul Eggert <eggert@cs.ucla.edu>,
	rms@gnu.org, emacs-devel@gnu.org
Subject: Re: The emacs_backtrace "feature"
Date: Sat, 22 Sep 2012 10:23:08 -0400	[thread overview]
Message-ID: <29464.1348323788@ccs.covici.com> (raw)
In-Reply-To: <505DC2FC.10609@gmail.com>

Christoph Scholtes <cschol2112@gmail.com> wrote:

> On 9/22/2012 6:05 AM, Richard Stallman wrote:
> >      Core dumps are better than backtraces if they're available, but
> >      modern GNUish distributions often disable them, alas, and they're
> >      a pain to send via email, and it's nice to have a bit more info
> >      than 'Fatal error 27' when Emacs crashes.
> >
> > If you get a core dump, you can run GDB and make a backtrace
> > and mail that.
> 
> If you get a core dump, you _have_ to run GDB and make a
> backtrace. Some users might not know how nor care to know how to
> generate a backtrace from a core dump. I believe this is independent
> of the platform they are running on.
> 
> I think an automated way of generating backtraces is a good idea. The
> more we can automate the process of gathering information in case of a
> crash, the more likely users are to submit that information.
> 
> What do you think about the following:
> 
> Check if gdb is available (on startup, or when the crash happens).
> If it is, run something like 'gdb -batch-silent -ex 'thread apply all
> bt full'' and save backtrace to a file that can be attached to bug
> report.
> If it isn't, fall back to the backtrace() function and generate at
> least something.
> 
> Or we ask the user what she wants to do:
> 
> 1. Create backtrace (with or without gdb) and attach to bug report
> 2. Attach debugger
> 3. Nothing
> 
> This could be an option, too, like debug-on-error:
> create-backtrace-on-error or something like that.

The problem is that crashes happen in a way which precludes automation
of the backtrace.  The only thing is to give the user instructions as to
what to do with the core dump, even as to how to make sure he can get a
core dump at all.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@ccs.covici.com



  reply	other threads:[~2012-09-22 14:23 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-21  9:49 The emacs_backtrace "feature" Eli Zaretskii
2012-09-21  9:58 ` Andreas Schwab
2012-09-21 10:17   ` Eli Zaretskii
2012-09-21 12:00     ` Andreas Schwab
2012-09-21 19:29   ` Florian Weimer
2012-09-21 19:45     ` Paul Eggert
2012-09-24 15:52       ` Steinar Bang
2012-09-21 12:24 ` Óscar Fuentes
2012-09-21 16:35   ` Stefan Monnier
2012-09-21 16:49 ` Stephen J. Turnbull
2012-09-21 17:07   ` Tom Tromey
2012-09-21 17:41   ` Andreas Schwab
2012-09-21 19:37 ` Paul Eggert
2012-09-22 12:05   ` Richard Stallman
2012-09-22 13:54     ` Christoph Scholtes
2012-09-22 14:23       ` covici [this message]
2012-09-24 15:55     ` Steinar Bang
2012-09-24 17:29       ` Paul Eggert
2012-09-22 12:41   ` Eli Zaretskii
2012-09-22 19:28     ` Paul Eggert
2012-09-23 13:05     ` Stephen J. Turnbull
2012-09-23 14:19       ` Andreas Schwab
2012-09-23 19:30         ` Stephen J. Turnbull
2012-09-23 21:01           ` Nix
2012-09-24  5:00             ` Stephen J. Turnbull
2012-09-24  9:29               ` Nix
2012-09-24 23:55                 ` Stephen J. Turnbull
2012-09-29 19:31   ` Juri Linkov
2012-09-29 20:01     ` Eli Zaretskii
2012-09-29 20:51       ` Paul Eggert
2012-09-29 21:19         ` Eli Zaretskii
2012-09-30  1:30           ` Paul Eggert
2012-09-30  9:44             ` messages-buffer-max-lines (was: The emacs_backtrace "feature") Juri Linkov
2012-10-01  5:51               ` messages-buffer-max-lines Paul Eggert
2012-10-01  6:50                 ` messages-buffer-max-lines Chong Yidong
2012-09-30  1:48       ` The emacs_backtrace "feature" Stefan Monnier
2012-09-30  7:14         ` Eli Zaretskii
2012-09-30  7:24           ` Paul Eggert
2012-10-01  2:54         ` Chong Yidong
2012-10-01 11:43           ` Lars Magne Ingebrigtsen
2012-09-21 21:40 ` Richard Stallman
2012-09-22  6:53   ` Stephen J. Turnbull
2012-09-24 14:27   ` Lars Ingebrigtsen

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=29464.1348323788@ccs.covici.com \
    --to=covici@ccs.covici.com \
    --cc=cschol2112@gmail.com \
    --cc=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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).