forked from AFPy/python-docs-fr
227 lines
7.0 KiB
Plaintext
227 lines
7.0 KiB
Plaintext
# Copyright (C) 2001-2018, Python Software Foundation
|
|
# For licence information, see README file.
|
|
#
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: Python 3\n"
|
|
"Report-Msgid-Bugs-To: \n"
|
|
"POT-Creation-Date: 2021-09-23 16:16+0200\n"
|
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
|
|
"Language: fr\n"
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
#: library/faulthandler.rst:2
|
|
msgid ":mod:`faulthandler` --- Dump the Python traceback"
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:11
|
|
msgid ""
|
|
"This module contains functions to dump Python tracebacks explicitly, on a "
|
|
"fault, after a timeout, or on a user signal. Call :func:`faulthandler."
|
|
"enable` to install fault handlers for the :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 the :option:`-X` "
|
|
"``faulthandler`` command line option."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:18
|
|
msgid ""
|
|
"The fault handler is compatible with system fault handlers like Apport or "
|
|
"the Windows fault handler. The module uses an alternative stack for signal "
|
|
"handlers if the :c:func:`sigaltstack` function is available. This allows it "
|
|
"to dump the traceback even on a stack overflow."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:23
|
|
msgid ""
|
|
"The fault handler is called on catastrophic cases and therefore can only use "
|
|
"signal-safe functions (e.g. it cannot allocate memory on the heap). Because "
|
|
"of this limitation traceback dumping is minimal compared to normal Python "
|
|
"tracebacks:"
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:28
|
|
msgid ""
|
|
"Only ASCII is supported. The ``backslashreplace`` error handler is used on "
|
|
"encoding."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:30
|
|
msgid "Each string is limited to 500 characters."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:31
|
|
msgid ""
|
|
"Only the filename, the function name and the line number are displayed. (no "
|
|
"source code)"
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:33
|
|
msgid "It is limited to 100 frames and 100 threads."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:34
|
|
msgid "The order is reversed: the most recent call is shown first."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:36
|
|
msgid ""
|
|
"By default, the Python traceback is written to :data:`sys.stderr`. To see "
|
|
"tracebacks, applications must be run in the terminal. A log file can "
|
|
"alternatively be passed to :func:`faulthandler.enable`."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:40
|
|
msgid ""
|
|
"The module is implemented in C, so tracebacks can be dumped on a crash or "
|
|
"when Python is deadlocked."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:43
|
|
msgid ""
|
|
"The :ref:`Python Development Mode <devmode>` calls :func:`faulthandler."
|
|
"enable` at Python startup."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:48
|
|
msgid "Dumping the traceback"
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:52
|
|
msgid ""
|
|
"Dump the tracebacks of all threads into *file*. If *all_threads* is "
|
|
"``False``, dump only the current thread."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:73 library/faulthandler.rst:137
|
|
msgid "Added support for passing file descriptor to this function."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:60
|
|
msgid "Fault handler state"
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:64
|
|
msgid ""
|
|
"Enable the fault handler: install handlers for the :const:`SIGSEGV`, :const:"
|
|
"`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and :const:`SIGILL` signals to "
|
|
"dump the Python traceback. If *all_threads* is ``True``, produce tracebacks "
|
|
"for every running thread. Otherwise, dump only the current thread."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:70
|
|
msgid ""
|
|
"The *file* must be kept open until the fault handler is disabled: see :ref:"
|
|
"`issue with file descriptors <faulthandler-fd>`."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:76
|
|
msgid "On Windows, a handler for Windows exception is also installed."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:79
|
|
msgid ""
|
|
"The dump now mentions if a garbage collector collection is running if "
|
|
"*all_threads* is true."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:85
|
|
msgid ""
|
|
"Disable the fault handler: uninstall the signal handlers installed by :func:"
|
|
"`enable`."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:90
|
|
msgid "Check if the fault handler is enabled."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:94
|
|
msgid "Dumping the tracebacks after a timeout"
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:98
|
|
msgid ""
|
|
"Dump the tracebacks of all threads, after a timeout of *timeout* seconds, or "
|
|
"every *timeout* seconds if *repeat* is ``True``. If *exit* is ``True``, "
|
|
"call :c:func:`_exit` with status=1 after dumping the tracebacks. (Note :c:"
|
|
"func:`_exit` exits the process immediately, which means it doesn't do any "
|
|
"cleanup like flushing file buffers.) If the function is called twice, the "
|
|
"new call replaces previous parameters and resets the timeout. The timer has "
|
|
"a sub-second resolution."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:106
|
|
msgid ""
|
|
"The *file* must be kept open until the traceback is dumped or :func:"
|
|
"`cancel_dump_traceback_later` is called: see :ref:`issue with file "
|
|
"descriptors <faulthandler-fd>`."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:110
|
|
msgid "This function is implemented using a watchdog thread."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:112
|
|
msgid "This function is now always available."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:120
|
|
msgid "Cancel the last call to :func:`dump_traceback_later`."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:124
|
|
msgid "Dumping the traceback on a user signal"
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:128
|
|
msgid ""
|
|
"Register a user signal: install a handler for the *signum* signal to dump "
|
|
"the traceback of all threads, or of the current thread if *all_threads* is "
|
|
"``False``, into *file*. Call the previous handler if chain is ``True``."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:132
|
|
msgid ""
|
|
"The *file* must be kept open until the signal is unregistered by :func:"
|
|
"`unregister`: see :ref:`issue with file descriptors <faulthandler-fd>`."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:146
|
|
msgid "Not available on Windows."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:142
|
|
msgid ""
|
|
"Unregister a user signal: uninstall the handler of the *signum* signal "
|
|
"installed by :func:`register`. Return ``True`` if the signal was registered, "
|
|
"``False`` otherwise."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:152
|
|
msgid "Issue with file descriptors"
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:154
|
|
msgid ""
|
|
":func:`enable`, :func:`dump_traceback_later` and :func:`register` keep the "
|
|
"file descriptor of their *file* argument. If the file is closed and its file "
|
|
"descriptor is reused by a new file, or if :func:`os.dup2` is used to replace "
|
|
"the file descriptor, the traceback will be written into a different file. "
|
|
"Call these functions again each time that the file is replaced."
|
|
msgstr ""
|
|
|
|
#: library/faulthandler.rst:162
|
|
msgid "Example"
|
|
msgstr "Exemple"
|
|
|
|
#: library/faulthandler.rst:164
|
|
msgid ""
|
|
"Example of a segmentation fault on Linux with and without enabling the fault "
|
|
"handler:"
|
|
msgstr ""
|