You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
faulthandler prints "Segmentation fault" on non SIGSEGV signal deaths #96055
The faulthandler module has a hard coded fixed small list of signals that it knows the name of. For anything not in this list it uses the final entry in its table as the value to print in the error message. This is misleading.
Ex: trigger a SIGTRAP in a Python process with faulthandler enabled.
The process exits properly indicating the correct death signal to the OS (Linux on aarch64 in this case), but the message emitted by Python is confusingly:
We should expand that to include more deadly signals. SIGTRAP led someone to notice it here. When we don't have the signal listed in the table it'd be nicer to emit an error message saying that rather than mislabelling it.
Activity
pythongh-96055: Update faulthandler to emit proper unexpect signal name
pythongh-96055: Update faulthandler to emit unexpected signum
pythongh-96055: Update faulthandler to emit proper unexpect signal nu…
pythongh-96055: Update faulthandler to emit proper unexpect signal nu…
pythongh-96055: Update faulthandler to emit proper unexpect signal nu…
gh-96055: Update faulthandler to emit proper unexpect signal number (g…
pythongh-96055: Update faulthandler to emit proper unexpect signal nu…
gh-96055: Update faulthandler to emit proper unexpect signal number (g…
corona10 commentedon Nov 7, 2022
@gpshead Can we close the issue or do we need more action?
gpshead commentedon Nov 7, 2022
Good enough. Thanks!