diff options
| author | Eli Zaretskii | 2012-11-16 20:54:42 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-11-16 20:54:42 +0200 |
| commit | a33da68be0fd3dd306155955210ddca6b521f28d (patch) | |
| tree | 8979712d3c0c2973d55ad6261a8121a06aa9bfe3 | |
| parent | 60c4ee668296b705cb359f3915c78fddd4bfcfdf (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/emacs/trouble.texi | 35 | ||||
| -rw-r--r-- | etc/NEWS | 4 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-11-13 Chong Yidong <cyd@gnu.org> | 6 | 2012-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 |
| 287 | the standard error stream. If Emacs was started from a graphical | 289 | the standard error stream. If Emacs was started from a graphical |
| 288 | desktop, the standard error stream is commonly redirected to a file | 290 | desktop on a GNU or Unix system, the standard error stream is commonly |
| 289 | such as @file{~/.xsession-errors}, so you can look for the crash | 291 | redirected to a file such as @file{~/.xsession-errors}, so you can |
| 290 | report there. | 292 | look for the crash report there. On MS-Windows, the crash report is |
| 293 | written to a file named @file{emacs_backtrace.txt} in the current | ||
| 294 | directory of the Emacs process, in addition to the standard error | ||
| 295 | stream. | ||
| 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 |
| 293 | platforms, such as those using the GNU C Library, the crash report | 298 | platforms, such as those using the GNU C Library, the crash report |
| 294 | includes a @dfn{backtrace} describing the execution state prior to | 299 | includes a @dfn{backtrace} describing the execution state prior to |
| 295 | crashing, which can be used to help debug the crash. Here is an | 300 | crashing, which can be used to help debug the crash. Here is an |
| 296 | example: | 301 | example for a GNU system: |
| 297 | 302 | ||
| 298 | @example | 303 | @example |
| 299 | Fatal error 11: Segmentation fault | 304 | Fatal error 11: Segmentation fault |
| @@ -320,22 +325,24 @@ backtrace with source-code line numbers: | |||
| 320 | 325 | ||
| 321 | @example | 326 | @example |
| 322 | sed -n 's/.*\[\(.*\)]$/\1/p' @var{backtrace} | | 327 | sed -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 |
| 327 | Here, @var{backtrace} is the name of a text file containing a copy of | 332 | Here, @var{backtrace} is the name of a text file containing a copy of |
| 328 | the backtrace, and @var{bindir} is the name of the directory that | 333 | the backtrace, @var{bindir} is the name of the directory that |
| 329 | contains the Emacs executable. | 334 | contains the Emacs executable, and @var{emacs-binary} is the name of |
| 335 | the Emacs executable file, normally @file{emacs} on GNU and Unix | ||
| 336 | systems 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 |
| 333 | core dump is a file containing voluminous data about the state of the | 340 | systems that support core files. A core dump is a file containing |
| 334 | program prior to the crash, usually examined by loading it into a | 341 | voluminous data about the state of the program prior to the crash, |
| 335 | debugger such as GDB. On many platforms, core dumps are disabled by | 342 | usually examined by loading it into a debugger such as GDB. On many |
| 336 | default, and you must explicitly enable them by running the shell | 343 | platforms, core dumps are disabled by default, and you must explicitly |
| 337 | command @samp{ulimit -c unlimited} (e.g.@: in your shell startup | 344 | enable them by running the shell command @samp{ulimit -c unlimited} |
| 338 | script). | 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 |
| @@ -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. |
| 211 | On encountering a fatal error, Emacs now outputs a textual description | 211 | On encountering a fatal error, Emacs now outputs a textual description |
| 212 | of the fatal signal, and a short backtrace on platforms like glibc | 212 | of the fatal signal, and a short backtrace on platforms like glibc |
| 213 | that support backtraces. | 213 | that support backtraces, and also on MS-Windows. On Windows, the |
| 214 | backtrace is also written to the 'emacs_backtrace.txt' file in the | ||
| 215 | directory 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 |