Skip to content

Fix issues reported by cpython-review-toolkit in faulthandler#151341

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:faulthandler
Jun 15, 2026
Merged

Fix issues reported by cpython-review-toolkit in faulthandler#151341
vstinner merged 2 commits into
python:mainfrom
vstinner:faulthandler

Conversation

@vstinner

Copy link
Copy Markdown
Member
  • snprintf() is not async-signal-safe: replace it with _Py_DumpDecimal().
  • Fix tid type from 'long' to 'unsigned long'.
  • Replace PyLong_AsLong() with PyLong_AsInt().
  • Avoid unnecessary narrowing cast on _Py_write_noraise() call.

* snprintf() is not async-signal-safe: replace it with
  _Py_DumpDecimal().
* Fix tid type from 'long' to 'unsigned long'.
* Replace PyLong_AsLong() with PyLong_AsInt().
* Avoid unnecessary narrowing cast on _Py_write_noraise() call.
@vstinner

Copy link
Copy Markdown
Member Author

"Android (x86_64)" and "Sanitizers / TSan (free-threading)" failed with: "Error: The operation was canceled." I scheduled new jobs.

@vstinner vstinner merged commit b6a2eef into python:main Jun 15, 2026
91 of 94 checks passed
@vstinner vstinner deleted the faulthandler branch June 15, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant