This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients ZackerySpytz, graingert, matrixise, serhiy.storchaka, vstinner
Date 2019-05-22.15:30:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I merged my PR #13187, so I reject PR #13175.

In the python-dev thread, there is no consensus in favor of -X abortunraisable option. The few people who pronounce them on this option were more against it.

At least, you can now very easily reimplement it in a few line of pure Python using the new sys.unraisablehook! For example, add this code to Lib/
if 'abortunraisable' in sys._xoptions:
    import signal
    def abort_hook(unraisable,
                   # keep a reference to continue to work
                   # during Python shutdown
    sys.unraisablehook = abort_hook

Example with attached
$ ./python -X dev 
Exception ignored in: <function wr_callback at 0x7fa973faf870>
Traceback (most recent call last):
  File "", line 7, in wr_callback
    raise ValueError(42)
ValueError: 42

$ ./python -X abortunraisable 
Aborted (core dumped)

$ ./python -X abortunraisable -X faulthandler 
Fatal Python error: Aborted

Current thread 0x00007fed6edc7740 (most recent call first):
  File "/home/vstinner/prog/python/master/Lib/", line 649 in abort_hook
  File "", line 11 in <module>
Aborted (core dumped)
Date User Action Args
2019-05-22 15:30:01vstinnersetrecipients: + vstinner, serhiy.storchaka, graingert, matrixise, ZackerySpytz
2019-05-22 15:30:01vstinnersetmessageid: <>
2019-05-22 15:30:01vstinnerlinkissue36829 messages
2019-05-22 15:30:00vstinnercreate