aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2012-09-04 11:29:04 -0700
committerPaul Eggert2012-09-04 11:29:04 -0700
commitcf29dd84d205e1c78fed5d1ea0006a382658598c (patch)
tree7e6806fdd94ef53cda78db6b29a4df0276408eb4 /etc
parent972debf2e7381b4fd2c70f9c1fd585d8bd137917 (diff)
downloademacs-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/ChangeLog5
-rw-r--r--etc/NEWS5
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 @@
12012-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
12012-09-01 Paul Eggert <eggert@cs.ucla.edu> 62012-09-01 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Better seeds for (random). 8 Better seeds for (random).
diff --git a/etc/NEWS b/etc/NEWS
index e4a612f6a9e..9a38deef05c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -97,6 +97,11 @@ machines. Other functions that use this format, such as
97file-attributes and format-time-string, have been changed accordingly. 97file-attributes and format-time-string, have been changed accordingly.
98Old-format time stamps are still accepted. 98Old-format time stamps are still accepted.
99 99
100** Emacs now generates backtraces on fatal errors.
101On encountering a fatal error, Emacs now outputs a textual description
102of the fatal signal, and a short backtrace on platforms like glibc
103that 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
101name, group names known to the system (where possible). 106name, group names known to the system (where possible).
102 107