aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2012-11-16 20:54:42 +0200
committerEli Zaretskii2012-11-16 20:54:42 +0200
commita33da68be0fd3dd306155955210ddca6b521f28d (patch)
tree8979712d3c0c2973d55ad6261a8121a06aa9bfe3
parent60c4ee668296b705cb359f3915c78fddd4bfcfdf (diff)
downloademacs-a33da68be0fd3dd306155955210ddca6b521f28d.tar.gz
emacs-a33da68be0fd3dd306155955210ddca6b521f28d.zip
Fix bug #12908 with documentation of emacs_backtrace.txt on MS-Windows.
doc/emacs/trouble.texi (Crashing): Add information about MS-Windows and the emacs_backtrace.txt file. etc/NEWS: Mention emacs_backtrace.txt.
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/trouble.texi35
-rw-r--r--etc/NEWS4
3 files changed, 29 insertions, 15 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index fbdb6363b34..9fad60d2a8c 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,8 @@
12012-11-16 Eli Zaretskii <eliz@gnu.org>
2
3 * trouble.texi (Crashing): Add information about MS-Windows and
4 the emacs_backtrace.txt file. (Bug#12908)
5
12012-11-13 Chong Yidong <cyd@gnu.org> 62012-11-13 Chong Yidong <cyd@gnu.org>
2 7
3 * building.texi (Multithreaded Debugging): gdb-stopped-hooks is 8 * building.texi (Multithreaded Debugging): gdb-stopped-hooks is
diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi
index 1a891a62b33..705cd5a4bbe 100644
--- a/doc/emacs/trouble.texi
+++ b/doc/emacs/trouble.texi
@@ -282,18 +282,23 @@ itself, and the reserve supply may not be enough.
282@subsection When Emacs Crashes 282@subsection When Emacs Crashes
283 283
284@cindex crash report 284@cindex crash report
285@cindex backtrace
286@cindex @file{emacs_backtrace.txt} file, MS-Windows
285 Emacs is not supposed to crash, but if it does, it produces a 287 Emacs is not supposed to crash, but if it does, it produces a
286@dfn{crash report} prior to exiting. The crash report is printed to 288@dfn{crash report} prior to exiting. The crash report is printed to
287the standard error stream. If Emacs was started from a graphical 289the standard error stream. If Emacs was started from a graphical
288desktop, the standard error stream is commonly redirected to a file 290desktop on a GNU or Unix system, the standard error stream is commonly
289such as @file{~/.xsession-errors}, so you can look for the crash 291redirected to a file such as @file{~/.xsession-errors}, so you can
290report there. 292look for the crash report there. On MS-Windows, the crash report is
293written to a file named @file{emacs_backtrace.txt} in the current
294directory of the Emacs process, in addition to the standard error
295stream.
291 296
292 The format of the crash report depends on the platform. On some 297 The format of the crash report depends on the platform. On some
293platforms, such as those using the GNU C Library, the crash report 298platforms, such as those using the GNU C Library, the crash report
294includes a @dfn{backtrace} describing the execution state prior to 299includes a @dfn{backtrace} describing the execution state prior to
295crashing, which can be used to help debug the crash. Here is an 300crashing, which can be used to help debug the crash. Here is an
296example: 301example for a GNU system:
297 302
298@example 303@example
299Fatal error 11: Segmentation fault 304Fatal error 11: Segmentation fault
@@ -320,22 +325,24 @@ backtrace with source-code line numbers:
320 325
321@example 326@example
322sed -n 's/.*\[\(.*\)]$/\1/p' @var{backtrace} | 327sed -n 's/.*\[\(.*\)]$/\1/p' @var{backtrace} |
323 addr2line -Cfip -e @var{bindir}/emacs 328 addr2line -Cfip -e @var{bindir}/@var{emacs-binary}
324@end example 329@end example
325 330
326@noindent 331@noindent
327Here, @var{backtrace} is the name of a text file containing a copy of 332Here, @var{backtrace} is the name of a text file containing a copy of
328the backtrace, and @var{bindir} is the name of the directory that 333the backtrace, @var{bindir} is the name of the directory that
329contains the Emacs executable. 334contains the Emacs executable, and @var{emacs-binary} is the name of
335the Emacs executable file, normally @file{emacs} on GNU and Unix
336systems and @file{emacs.exe} on MS-Windows and MS-DOS.
330 337
331@cindex core dump 338@cindex core dump
332 Optionally, Emacs can generate a @dfn{core dump} when it crashes. A 339 Optionally, Emacs can generate a @dfn{core dump} when it crashes, on
333core dump is a file containing voluminous data about the state of the 340systems that support core files. A core dump is a file containing
334program prior to the crash, usually examined by loading it into a 341voluminous data about the state of the program prior to the crash,
335debugger such as GDB. On many platforms, core dumps are disabled by 342usually examined by loading it into a debugger such as GDB. On many
336default, and you must explicitly enable them by running the shell 343platforms, core dumps are disabled by default, and you must explicitly
337command @samp{ulimit -c unlimited} (e.g.@: in your shell startup 344enable them by running the shell command @samp{ulimit -c unlimited}
338script). 345(e.g.@: in your shell startup script).
339 346
340@node After a Crash 347@node After a Crash
341@subsection Recovery After a Crash 348@subsection Recovery After a Crash
diff --git a/etc/NEWS b/etc/NEWS
index d81cf7f1bb4..a03c2e2f638 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -210,7 +210,9 @@ This minor mode replaces `toggle-read-only', which is now obsolete.
210** Emacs now generates backtraces on fatal errors. 210** Emacs now generates backtraces on fatal errors.
211On encountering a fatal error, Emacs now outputs a textual description 211On encountering a fatal error, Emacs now outputs a textual description
212of the fatal signal, and a short backtrace on platforms like glibc 212of the fatal signal, and a short backtrace on platforms like glibc
213that support backtraces. 213that support backtraces, and also on MS-Windows. On Windows, the
214backtrace is also written to the 'emacs_backtrace.txt' file in the
215directory where Emacs was running.
214 216
215--- 217---
216** If your Emacs was built from a bzr checkout, the new variable 218** If your Emacs was built from a bzr checkout, the new variable