1
0
Fork 0
python-docs-fr/library/faulthandler.po

250 lines
7.5 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: 2023-02-12 11:56+0100\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:49
msgid "Module :mod:`pdb`"
msgstr ""
#: library/faulthandler.rst:49
msgid "Interactive source code debugger for Python programs."
msgstr ""
#: library/faulthandler.rst:51
msgid "Module :mod:`traceback`"
msgstr ""
#: library/faulthandler.rst:52
msgid ""
"Standard interface to extract, format and print stack traces of Python "
"programs."
msgstr ""
#: library/faulthandler.rst:55
msgid "Dumping the traceback"
msgstr ""
#: library/faulthandler.rst:59
msgid ""
"Dump the tracebacks of all threads into *file*. If *all_threads* is "
"``False``, dump only the current thread."
msgstr ""
#: library/faulthandler.rst:62
msgid ""
":func:`traceback.print_tb`, which can be used to print a traceback object."
msgstr ""
#: library/faulthandler.rst:82 library/faulthandler.rst:146
msgid "Added support for passing file descriptor to this function."
msgstr ""
#: library/faulthandler.rst:69
msgid "Fault handler state"
msgstr ""
#: library/faulthandler.rst:73
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:79
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:85
msgid "On Windows, a handler for Windows exception is also installed."
msgstr ""
#: library/faulthandler.rst:88
msgid ""
"The dump now mentions if a garbage collector collection is running if "
"*all_threads* is true."
msgstr ""
#: library/faulthandler.rst:94
msgid ""
"Disable the fault handler: uninstall the signal handlers installed by :func:"
"`enable`."
msgstr ""
#: library/faulthandler.rst:99
msgid "Check if the fault handler is enabled."
msgstr ""
#: library/faulthandler.rst:103
msgid "Dumping the tracebacks after a timeout"
msgstr ""
#: library/faulthandler.rst:107
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:115
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:119
msgid "This function is implemented using a watchdog thread."
msgstr ""
#: library/faulthandler.rst:121
msgid "This function is now always available."
msgstr ""
#: library/faulthandler.rst:129
msgid "Cancel the last call to :func:`dump_traceback_later`."
msgstr ""
#: library/faulthandler.rst:133
msgid "Dumping the traceback on a user signal"
msgstr ""
#: library/faulthandler.rst:137
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:141
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:155
msgid "Not available on Windows."
msgstr ""
#: library/faulthandler.rst:151
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:161
msgid "Issue with file descriptors"
msgstr ""
#: library/faulthandler.rst:163
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:171
msgid "Example"
msgstr "Exemple"
#: library/faulthandler.rst:173
msgid ""
"Example of a segmentation fault on Linux with and without enabling the fault "
"handler:"
msgstr ""