Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.14] gh-137400: Fix thread-safety issues when profiling all threads (gh-137518)#137730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
colesbury merged 3 commits intopython:3.14fromcolesbury:backport-a10152f-3.14
Oct 7, 2025

Conversation

@colesbury
Copy link
Contributor

@colesburycolesbury commentedAug 13, 2025
edited by bedevere-appbot
Loading

There were a few thread-safety issues when profiling or tracing all threads via PyEval_SetProfileAllThreads or PyEval_SetTraceAllThreads:

  • The loop over thread states could crash if a thread exits concurrently (in both the free threading and default build)
  • The modification ofc_profilefunc andc_tracefunc wasn't thread-safe on the free threading build.

(cherry picked from commita10152f)

…hreads (pythongh-137518)There were a few thread-safety issues when profiling or tracing allthreads via PyEval_SetProfileAllThreads or PyEval_SetTraceAllThreads:* The loop over thread states could crash if a thread exits concurrently  (in both the free threading and default build)* The modification of `c_profilefunc` and `c_tracefunc` wasn't  thread-safe on the free threading build.(cherry picked from commita10152f)Co-authored-by: Sam Gross <colesbury@gmail.com>
@colesbury
Copy link
ContributorAuthor

This can wait until 3.14.1

@colesburycolesbury merged commitfb699ef intopython:3.14Oct 7, 2025
67 checks passed
@colesburycolesbury deleted the backport-a10152f-3.14 branchOctober 7, 2025 17:45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees

@colesburycolesbury

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@colesbury@encukou

[8]ページ先頭

©2009-2025 Movatter.jp