Issue #23571: Enhance Py_FatalError()
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 24 Mar 2015 10:24:06 +0000 (11:24 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 24 Mar 2015 10:24:06 +0000 (11:24 +0100)
commit0e98a76b65161b74a23f64e05a8075b46d908d10
tree0a997ce4fe390468530efbbc88c8d9dafd21346c
parent2e3998fae0996bbb349a4696071f0582f8c799c0
Issue #23571: Enhance Py_FatalError()

* Display the current Python stack if an exception was raised but the exception
  has no traceback
* Disable faulthandler if an exception was raised (before it was only disabled
  if no exception was raised)
* To display the current Python stack, call PyGILState_GetThisThreadState()
  which works even if the GIL was released
Python/pythonrun.c