METADATA 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Metadata-Version: 2.1
  2. Name: faulthandler
  3. Version: 3.2
  4. Summary: Display the Python traceback on a crash
  5. Home-page: https://faulthandler.readthedocs.io/
  6. Author: Victor Stinner
  7. Author-email: victor.stinner@gmail.com
  8. License: BSD (2-clause)
  9. Platform: UNKNOWN
  10. Classifier: Development Status :: 5 - Production/Stable
  11. Classifier: Intended Audience :: Developers
  12. Classifier: License :: OSI Approved :: BSD License
  13. Classifier: Operating System :: OS Independent
  14. Classifier: Natural Language :: English
  15. Classifier: Programming Language :: C
  16. Classifier: Programming Language :: Python
  17. Classifier: Programming Language :: Python :: 3
  18. Classifier: Topic :: Software Development :: Debuggers
  19. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  20. +++++++++++++
  21. Fault handler
  22. +++++++++++++
  23. .. image:: https://img.shields.io/pypi/v/faulthandler.svg
  24. :alt: Latest release on the Python Cheeseshop (PyPI)
  25. :target: https://pypi.python.org/pypi/faulthandler
  26. .. image:: https://travis-ci.org/vstinner/faulthandler.svg?branch=master
  27. :alt: Build status of faulthandler on Travis CI
  28. :target: https://travis-ci.org/vstinner/faulthandler
  29. .. image:: http://unmaintained.tech/badge.svg
  30. :target: http://unmaintained.tech/
  31. :alt: No Maintenance Intended
  32. Fault handler for SIGSEGV, SIGFPE, SIGABRT, SIGBUS and SIGILL signals: display
  33. the Python traceback and restore the previous handler. Allocate an alternate
  34. stack for this handler, if sigaltstack() is available, to be able to allocate
  35. memory on the stack, even on stack overflow (not available on Windows).
  36. Import the module and call faulthandler.enable() to enable the fault handler.
  37. Alternatively you can set the PYTHONFAULTHANDLER environment variable to a
  38. non-empty value.
  39. The fault handler is called on catastrophic cases and so it can only use
  40. signal-safe functions (eg. it doesn't allocate memory on the heap). That's why
  41. the traceback is limited: it only supports ASCII encoding (use the
  42. backslashreplace error handler for non-ASCII characters) and limits each string
  43. to 100 characters, doesn't print the source code in the traceback (only the
  44. filename, the function name and the line number), is limited to 100 frames and
  45. 100 threads.
  46. By default, the Python traceback is written to the standard error stream. Start
  47. your graphical applications in a terminal and run your server in foreground to
  48. see the traceback, or pass a file to faulthandler.enable().
  49. faulthandler is implemented in C using signal handlers to be able to dump a
  50. traceback on a crash or when Python is blocked (eg. deadlock).
  51. This module is the backport for CPython 2.7. faulthandler is part of CPython
  52. standard library since CPython 3.3: `faulthandler
  53. <http://docs.python.org/dev/library/faulthandler.html>`_. For PyPy,
  54. faulthandler is builtin since PyPy 5.5: use ``pypy -X faulthandler``.
  55. Website:
  56. https://faulthandler.readthedocs.io/
  57. faulthandler 3.2 is the last version released by Victor Stinner. I maintained
  58. it for 10 years in my free time for the great pleasure of Python 2 users, but
  59. Python 2 is no longer supported upstream since 2020-01-01. Each faulthandler
  60. release requires me to start my Windows VM, install Python 2.7 in 32-bit and
  61. 64-bit, install an old C compiler just for Python 2.7, and type manually some
  62. commands to upload Windows binaries. Moreover, I have to fix some issues on
  63. Travis CI and many small boring tasks. The maintenance is far from being free.
  64. In 10 years, I got zero "thank you" (and 0€), only bug reports :-)