diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-01 10:13:55 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-01 10:13:55 (GMT) |
commit | d727e23243ab5479b03aab1f924ca7ec0bccbcb6 (patch) | |
tree | c05dc8b13da2bebd300684b462af046384c2379a /Doc | |
parent | bc6a4db66d576b29462a965e78f4d4a1dce494f0 (diff) | |
download | cpython-d727e23243ab5479b03aab1f924ca7ec0bccbcb6.zip cpython-d727e23243ab5479b03aab1f924ca7ec0bccbcb6.tar.gz cpython-d727e23243ab5479b03aab1f924ca7ec0bccbcb6.tar.bz2 |
Issue #11393: The fault handler handles also SIGABRT
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/faulthandler.rst | 14 | ||||
-rw-r--r-- | Doc/using/cmdline.rst | 5 |
2 files changed, 10 insertions, 9 deletions
diff --git a/Doc/library/faulthandler.rst b/Doc/library/faulthandler.rst index 7b106bc..106da45 100644 --- a/Doc/library/faulthandler.rst +++ b/Doc/library/faulthandler.rst @@ -6,10 +6,10 @@ This module contains functions to dump the Python traceback explicitly, on a fault, after a timeout or on a user signal. Call :func:`faulthandler.enable` to -install fault handlers for :const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGBUS` -and :const:`SIGILL` signals. You can also enable them at startup by setting the -:envvar:`PYTHONFAULTHANDLER` environment variable or by using :option:`-X` -``faulthandler`` command line option. +install fault handlers for :const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, +:const:`SIGBUS` and :const:`SIGILL` signals. You can also enable them at +startup by setting the :envvar:`PYTHONFAULTHANDLER` environment variable or by +using :option:`-X` ``faulthandler`` command line option. The fault handler is compatible with system fault handlers like Apport or the Windows fault handler. The module uses an alternative stack for signal @@ -48,9 +48,9 @@ Fault handler state .. function:: enable(file=sys.stderr, all_threads=False) Enable the fault handler: install handlers for :const:`SIGSEGV`, - :const:`SIGFPE`, :const:`SIGBUS` and :const:`SIGILL` signals to dump the - Python traceback. It dumps the traceback of the current thread, or all - threads if *all_threads* is ``True``, into *file*. + :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and :const:`SIGILL` + signals to dump the Python traceback. It dumps the traceback of the current + thread, or all threads if *all_threads* is ``True``, into *file*. .. function:: disable() diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index 8a5a662..72b77cd 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -502,8 +502,9 @@ These environment variables influence Python's behavior. If this environment variable is set, :func:`faulthandler.enable` is called at startup: install a handler for :const:`SIGSEGV`, :const:`SIGFPE`, - :const:`SIGBUS` and :const:`SIGILL` signals to dump the Python traceback. - This is equivalent to :option:`-X` ``faulthandler`` option. + :const:`SIGABRT`, :const:`SIGBUS` and :const:`SIGILL` signals to dump the + Python traceback. This is equivalent to :option:`-X` ``faulthandler`` + option. Debug-mode variables |