diff options
| author | Paul Eggert | 2012-09-04 11:29:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-09-04 11:29:04 -0700 |
| commit | cf29dd84d205e1c78fed5d1ea0006a382658598c (patch) | |
| tree | 7e6806fdd94ef53cda78db6b29a4df0276408eb4 /etc | |
| parent | 972debf2e7381b4fd2c70f9c1fd585d8bd137917 (diff) | |
| download | emacs-cf29dd84d205e1c78fed5d1ea0006a382658598c.tar.gz emacs-cf29dd84d205e1c78fed5d1ea0006a382658598c.zip | |
Give more-useful info on a fatal error (Bug#12328).
* doc/emacs/trouble.texi (Crashing): New section, documenting this.
* etc/NEWS: Document the change.
* src/alloc.c [ENABLE_CHECKING]: Do not include <execinfo.h>.
(die) [ENABLE_CHECKING]: Call fatal_error_backtrace instead
of doing the work ourselves.
* src/emacs.c (fatal_error_signal): Let fatal_error_backtrace
do most of the work.
(fatal_error_backtrace): New function, taken from the guts
of the old fatal_error_signal, but with a new option to output
a backtrace.
(shut_down_emacs) [!DOS_NT]: Use strsignal to give more-useful
info about the signal than just its number.
* src/lisp.h (fatal_error_backtrace, emacs_backtrace): New decls.
* src/sysdep.c: Include <execinfo.h>
(emacs_backtrace): New function, taken partly from the previous
code of the 'die' function.
(emacs_abort): Call fatal_error_backtrace rather than abort.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/ChangeLog | 5 | ||||
| -rw-r--r-- | etc/NEWS | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index f3f244c7e39..aa788275256 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-09-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Give more-useful info on a fatal error (Bug#12328). | ||
| 4 | * NEWS: Document the change. | ||
| 5 | |||
| 1 | 2012-09-01 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2012-09-01 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Better seeds for (random). | 8 | Better seeds for (random). |
| @@ -97,6 +97,11 @@ machines. Other functions that use this format, such as | |||
| 97 | file-attributes and format-time-string, have been changed accordingly. | 97 | file-attributes and format-time-string, have been changed accordingly. |
| 98 | Old-format time stamps are still accepted. | 98 | Old-format time stamps are still accepted. |
| 99 | 99 | ||
| 100 | ** Emacs now generates backtraces on fatal errors. | ||
| 101 | On encountering a fatal error, Emacs now outputs a textual description | ||
| 102 | of the fatal signal, and a short backtrace on platforms like glibc | ||
| 103 | that support backtraces. | ||
| 104 | |||
| 100 | ** New functions `system-users', `system-groups' return lists of the user | 105 | ** New functions `system-users', `system-groups' return lists of the user |
| 101 | name, group names known to the system (where possible). | 106 | name, group names known to the system (where possible). |
| 102 | 107 | ||