From: "Drew Adams" <drew.adams@oracle.com>
To: "'Eli Zaretskii'" <eliz@gnu.org>
Cc: 12908@debbugs.gnu.org, 12908-done@debbugs.gnu.org
Subject: bug#12908: 24.3.50; file `emacs_backtrace.txt'?
Date: Fri, 16 Nov 2012 11:22:51 -0800 [thread overview]
Message-ID: <5F469B1E1F824FA8B16159BB2E0DE869@us.oracle.com> (raw)
In-Reply-To: <838va14blm.fsf@gnu.org>
> It's written in the current directory of the Emacs process, and only
> if you click NO on the abort dialog.
I don't understand. If you click NO then you are saying that you do NOT want to
participate in debugging the crash. Why would Emacs insist in that case in
writing a backtrace file for debugging to your hard drive?
That does not seem very friendly (or useful) on the part of Emacs.
> > I looked in the Emacs manual, the Elisp manual, and NEWS for some
> > information about this file, but found nothing (so there is
> > a doc bug, at least).
>
> Right, now fixed (revision 110913 on the trunk).
>
> > What is the file for
>
> It contains the call-stack backtrace, which could be used to find the
> sequence of function calls that led to the crash. Similar to what GDB
> produces when you type "bt".
So it could be used for debugging. But it is written only if a user says that
s?he does NOT want to debug the crash.
I understand that such a NO means, in particular, that s?he does not want to use
gdb, but it can also mean that s?he does not want to bother with any debugging
etc. Why assume that s?he wants a backtrace file written?
> > how are users to use it
>
> Users should include it with their bug reports.
Does my having included it in this bug report help in some way?
I'm guessing no, but would love to be shown wrong.
> If you have the addr2line.exe program on your disk, you can
> produce a more readable backtrace from these numbers, see
> the Emacs user manual for details.
And if you do not have addr2line? Is the backtrace really useful for anyone in
that case? Did the backtrace I included here help at all?
(Not rhetorical questions.)
> > and control whether and where it is written
>
> You can't. It's always written in the current directory of the Emacs
> process, which is normally a single directory determined by what your
> desktop shortcut says.
Why not let users decide where the file is written, and record that directory
(of the process) as part of the file content (or record it elsewhere)?
Sounds like shades of Unix .core files. At least there are ways for users to
turn off writing such coredumps (and even ways to turn that off selectively, for
given directories).
You've closed the bug, considering, I imagine, that it is only a doc bug and
that you have now documented it, so end of story.
I don't see it that way. Emacs is now writing something to arbitrary user
directories. That is something new and not necessarily always welcome. Please
consider working on this aspect some more. Thx.
next prev parent reply other threads:[~2012-11-16 19:22 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-16 18:30 bug#12908: 24.3.50; file `emacs_backtrace.txt'? Drew Adams
2012-11-16 18:40 ` Juanma Barranquero
2012-11-16 19:08 ` Drew Adams
2012-11-16 19:42 ` Eli Zaretskii
2012-11-16 21:02 ` Drew Adams
2012-11-17 7:23 ` Eli Zaretskii
2012-11-17 16:36 ` Drew Adams
2012-11-16 21:49 ` Stefan Monnier
2012-11-17 7:27 ` Eli Zaretskii
2012-11-16 19:00 ` Eli Zaretskii
2012-11-16 19:22 ` Drew Adams [this message]
2012-11-16 19:39 ` Eli Zaretskii
2012-11-16 20:56 ` Drew Adams
2012-11-17 7:21 ` Eli Zaretskii
2012-11-17 16:36 ` Drew Adams
2012-11-17 18:45 ` Paul Eggert
2012-11-17 19:09 ` Eli Zaretskii
2012-11-17 19:29 ` Paul Eggert
2012-11-17 19:42 ` Eli Zaretskii
2012-11-17 21:25 ` Paul Eggert
2012-11-17 23:08 ` bug#12911: " Drew Adams
2012-11-18 1:12 ` Paul Eggert
2012-11-18 1:19 ` bug#12911: " Paul Eggert
2012-11-18 3:55 ` Eli Zaretskii
2012-11-18 3:56 ` Eli Zaretskii
2012-11-18 4:04 ` Eli Zaretskii
2012-11-18 5:19 ` Paul Eggert
2012-11-18 17:16 ` bug#12911: 24.3.50; let users decide where (& perhaps whether) `emacs_backtrace.txt' files are written Eli Zaretskii
2012-11-18 19:18 ` Paul Eggert
2012-11-18 21:10 ` Eli Zaretskii
2012-11-19 1:44 ` Stefan Monnier
2012-11-19 3:50 ` Eli Zaretskii
2012-11-17 23:01 ` bug#12908: 24.3.50; file `emacs_backtrace.txt'? Drew Adams
2012-11-18 1:24 ` Paul Eggert
2012-11-18 3:58 ` Eli Zaretskii
2012-11-18 4:40 ` Drew Adams
2012-11-18 17:53 ` bug#12911: 24.3.50; let users decide where (& perhaps whether) `emacs_backtrace.txt' files are written Eli Zaretskii
2012-11-18 18:42 ` Drew Adams
2012-11-18 5:19 ` bug#12908: 24.3.50; file `emacs_backtrace.txt'? Paul Eggert
2012-11-18 17:08 ` bug#12911: 24.3.50; let users decide where (& perhaps whether) `emacs_backtrace.txt' files are written Eli Zaretskii
2012-11-18 7:08 ` bug#12908: 24.3.50; file `emacs_backtrace.txt'? Achim Gratz
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5F469B1E1F824FA8B16159BB2E0DE869@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=12908-done@debbugs.gnu.org \
--cc=12908@debbugs.gnu.org \
--cc=eliz@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.