René's URL Explorer Experiment


Title: fix(profiler): Prevent buffer race condition during rapid start/stop cycles by ericapisani · Pull Request #5622 · getsentry/sentry-python · GitHub

Open Graph Title: fix(profiler): Prevent buffer race condition during rapid start/stop cycles by ericapisani · Pull Request #5622 · getsentry/sentry-python

X Title: fix(profiler): Prevent buffer race condition during rapid start/stop cycles by ericapisani · Pull Request #5622 · getsentry/sentry-python

Description: The official Python SDK for Sentry.io. Contribute to getsentry/sentry-python development by creating an account on GitHub.

Open Graph Description: Fixes #5621 and PY-2127 Fix a race condition in ContinuousScheduler where the profiler thread's cleanup could destroy a buffer created by a concurrent ensure_running() call. The Problem During ...

X Description: Fixes #5621 and PY-2127 Fix a race condition in ContinuousScheduler where the profiler thread's cleanup could destroy a buffer created by a concurrent ensure_running() call. The Problem Dur...

Opengraph URL: https://github.com/getsentry/sentry-python/pull/5622

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:25cf07fb-3d68-5948-264d-681a4feb917a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE6E0:2F4BD9:5AB266:7A7693:6B00D064
html-safe-nonce174c7109fbba6ae78cbf7a14de9808b2e2e21d485c7487183d0eec087ece4607
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkUwOjJGNEJEOTo1QUIyNjY6N0E3NjkzOjZCMDBEMDY0IiwidmlzaXRvcl9pZCI6IjUyMDk0NjI3NDY3NTU2ODI0MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac12fcad9e42f38e0adfc4378caf09f796d32ac00da82e822b8e484cbef4b43dca
hovercard-subject-tagpull_request:3373937053
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-python/5622/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c562c130465953892b5e0bdfc302ac975b4ed2531f4a635f601d34498c160b61/getsentry/sentry-python/pull/5622
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c562c130465953892b5e0bdfc302ac975b4ed2531f4a635f601d34498c160b61/getsentry/sentry-python/pull/5622
og:image:altFixes #5621 and PY-2127 Fix a race condition in ContinuousScheduler where the profiler thread's cleanup could destroy a buffer created by a concurrent ensure_running() call. The Problem During ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericapisani
hostnamegithub.com
expected-hostnamegithub.com
None85bbdfe2b6ba16e234513bc6ceff5d848ef8449820c900692a2b4e67061931e5
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4943239a6d2c591325dad6e5c313e1cafda877f6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/5622#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5622
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5622
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/5622
Reloadhttps://github.com/getsentry/sentry-python/pull/5622
Reloadhttps://github.com/getsentry/sentry-python/pull/5622
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests42 (42)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
ericapisanihttps://github.com/ericapisani
masterhttps://github.com/getsentry/sentry-python/tree/master
ep/investigate-flaky-gevent-testshttps://github.com/getsentry/sentry-python/tree/ep/investigate-flaky-gevent-tests
Conversationhttps://github.com/getsentry/sentry-python/pull/5622
Commits7 (7)https://github.com/getsentry/sentry-python/pull/5622/commits
Checkshttps://github.com/getsentry/sentry-python/pull/5622/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/5622/files
fix(profiler): Prevent buffer race condition during rapid start/stop cycleshttps://github.com/getsentry/sentry-python/pull/5622#top
ericapisanihttps://github.com/ericapisani
masterhttps://github.com/getsentry/sentry-python/tree/master
ep/investigate-flaky-gevent-testshttps://github.com/getsentry/sentry-python/tree/ep/investigate-flaky-gevent-tests
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
Mar 9, 2026https://github.com/getsentry/sentry-python/pull/5622#issue-4046156746
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5622
#5621https://github.com/getsentry/sentry-python/issues/5621
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5622
ericapisanihttps://github.com/ericapisani
February 23, 2026 15:34https://github.com/getsentry/sentry-python/pull/5622#commits-pushed-5f3f54e
https://github.com/ericapisani
https://github.com/claude
fix(profiler): Prevent buffer race condition during rapid start/stop …https://github.com/getsentry/sentry-python/pull/5622/commits/5f3f54e9d549b15a8d617ba82bfad9d24a00c5d6
5f3f54ehttps://github.com/getsentry/sentry-python/pull/5622/commits/5f3f54e9d549b15a8d617ba82bfad9d24a00c5d6
https://github.com/ericapisani
Merge branch 'master' into ep/investigate-flaky-gevent-testshttps://github.com/getsentry/sentry-python/pull/5622/commits/5c8f200cc28c6ad89709212c7ff9aa96f47eb502
5c8f200https://github.com/getsentry/sentry-python/pull/5622/commits/5c8f200cc28c6ad89709212c7ff9aa96f47eb502
https://github.com/ericapisani
https://github.com/claude
ref(profiler): Remove dead code in run() cleanuphttps://github.com/getsentry/sentry-python/pull/5622/commits/b38ad699bacbc15dc55734beb7ca94d63cfef795
b38ad69https://github.com/getsentry/sentry-python/pull/5622/commits/b38ad699bacbc15dc55734beb7ca94d63cfef795
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Mar 9, 2026https://github.com/getsentry/sentry-python/pull/5622#issuecomment-4024452768
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5622
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5622
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Mar 9, 2026https://github.com/getsentry/sentry-python/pull/5622#issuecomment-4024461099
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5622
Codecov Actionhttps://github.com/getsentry/codecov-action
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5622
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
March 10, 2026 19:19https://github.com/getsentry/sentry-python/pull/5622#event-23444159714
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
code ownerhttps://github.com/getsentry/sentry-python/blob/adcd90ca92aa173ae39aac094adf71f1a4f51b22/.github/CODEOWNERS#L1
March 10, 2026 19:19https://github.com/getsentry/sentry-python/pull/5622#event-23444159951
ericapisanihttps://github.com/ericapisani
March 10, 2026 15:19https://github.com/getsentry/sentry-python/pull/5622#commits-pushed-1f8f4e9
https://github.com/ericapisani
Merge branch 'master' into ep/investigate-flaky-gevent-testshttps://github.com/getsentry/sentry-python/pull/5622/commits/1f8f4e98f85137c30c3dbc8b5c30bec9b48279e9
1f8f4e9https://github.com/getsentry/sentry-python/pull/5622/commits/1f8f4e98f85137c30c3dbc8b5c30bec9b48279e9
https://github.com/ericapisani
Merge branch 'master' into ep/investigate-flaky-gevent-testshttps://github.com/getsentry/sentry-python/pull/5622/commits/467b8e498186fdbf9c9f0099ce5cfb86a890007e
467b8e4https://github.com/getsentry/sentry-python/pull/5622/commits/467b8e498186fdbf9c9f0099ce5cfb86a890007e
https://github.com/Zylphrex
Zylphrexhttps://github.com/Zylphrex
Mar 13, 2026 https://github.com/getsentry/sentry-python/pull/5622#pullrequestreview-3944316199
View reviewed changes https://github.com/getsentry/sentry-python/pull/5622/files/467b8e498186fdbf9c9f0099ce5cfb86a890007e
Zylphrexhttps://github.com/Zylphrex
https://github.com/getsentry/sentry-python/pull/5622#pullrequestreview-3944316199
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5622
ericapisanihttps://github.com/ericapisani
March 13, 2026 14:19https://github.com/getsentry/sentry-python/pull/5622#commits-pushed-5d82933
https://github.com/ericapisani
remove unused import in testhttps://github.com/getsentry/sentry-python/pull/5622/commits/5d82933e84f71518caf94e225d89d16f2f0f6944
5d82933https://github.com/getsentry/sentry-python/pull/5622/commits/5d82933e84f71518caf94e225d89d16f2f0f6944
https://github.com/ericapisani
Merge branch 'ep/investigate-flaky-gevent-tests' of github.com:getse…https://github.com/getsentry/sentry-python/pull/5622/commits/83f5c6e57f96ada2b7e2d2aee2fcc578ca9408e1
83f5c6ehttps://github.com/getsentry/sentry-python/pull/5622/commits/83f5c6e57f96ada2b7e2d2aee2fcc578ca9408e1
https://github.com/apps/sentry
sentryhttps://github.com/apps/sentry
Mar 13, 2026 https://github.com/getsentry/sentry-python/pull/5622#pullrequestreview-3944384830
View reviewed changes https://github.com/getsentry/sentry-python/pull/5622/files/83f5c6e57f96ada2b7e2d2aee2fcc578ca9408e1
sentry_sdk/profiler/continuous_profiler.pyhttps://github.com/getsentry/sentry-python/pull/5622/files/83f5c6e57f96ada2b7e2d2aee2fcc578ca9408e1#diff-42f17389bb4787ed95f1b793129be10b5c6c89132ab5fbf0df6b3e4126e9d2cd
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5622
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
2ce933dhttps://github.com/getsentry/sentry-python/commit/2ce933d37dbed43185b4287352866f6980d8a39a
Mar 16, 2026https://github.com/getsentry/sentry-python/pull/5622#event-23598725316
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5622
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
March 16, 2026 08:28https://github.com/getsentry/sentry-python/pull/5622#event-23598726281
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
Mar 16, 2026 https://github.com/getsentry/sentry-python/pull/5622#ref-issue-4081076916
Investigate potential race conditions in the teardown methods of the profilers #5673 https://github.com/getsentry/sentry-python/issues/5673
https://github.com/apps/sentry-release-bot
sentry-release-bothttps://github.com/apps/sentry-release-bot
Mar 17, 2026 https://github.com/getsentry/sentry-python/pull/5622#ref-issue-4088788354
publish: getsentry/sentry-python@2.55.0 getsentry/publish#7485 https://github.com/getsentry/publish/issues/7485
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
Apr 14, 2026 https://github.com/getsentry/sentry-python/pull/5622#ref-pullrequest-4262981618
fix(profiler): Stop nulling buffer on teardown #6075 https://github.com/getsentry/sentry-python/pull/6075
ericapisanihttps://github.com/ericapisani
Apr 15, 2026 https://github.com/getsentry/sentry-python/pull/5622#ref-commit-fe7e848
https://github.com/ericapisani
fix(profiler): Stop nulling buffer on teardown (https://github.com/getsentry/sentry-python/commit/fe7e848e6bb0271797b562662cd1561baf173a6a
#6075https://github.com/getsentry/sentry-python/pull/6075
)https://github.com/getsentry/sentry-python/commit/fe7e848e6bb0271797b562662cd1561baf173a6a
fe7e848https://github.com/getsentry/sentry-python/commit/fe7e848e6bb0271797b562662cd1561baf173a6a
#5622 (comment)https://github.com/getsentry/sentry-python/pull/5622#discussion_r2931508792
#5673https://github.com/getsentry/sentry-python/issues/5673
mgalignianahttps://github.com/mgaligniana
Aug 9, 2026 https://github.com/getsentry/sentry-python/pull/5622#ref-commit-35a07ec
https://github.com/ericapisani
https://github.com/mgaligniana
fix(profiler): Stop nulling buffer on teardown (https://github.com/mgaligniana/sentry-python/commit/35a07ec095f9671b931574d84fe7995596ff5109
getsentry#6075https://github.com/getsentry/sentry-python/pull/6075
)https://github.com/mgaligniana/sentry-python/commit/35a07ec095f9671b931574d84fe7995596ff5109
35a07echttps://github.com/mgaligniana/sentry-python/commit/35a07ec095f9671b931574d84fe7995596ff5109
getsentry#5622 (comment)https://github.com/getsentry/sentry-python/pull/5622#discussion_r2931508792
getsentry#5673https://github.com/getsentry/sentry-python/issues/5673
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5622
https://github.com/apps/sentry
sentry[bot] https://github.com/apps/sentry
https://github.com/getsentry/sentry-python/pull/5622/files/83f5c6e57f96ada2b7e2d2aee2fcc578ca9408e1
https://github.com/Zylphrex
Zylphrex https://github.com/Zylphrex
https://github.com/getsentry/sentry-python/pull/5622/files/467b8e498186fdbf9c9f0099ce5cfb86a890007e
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5622
Investigate flaky gevent test https://github.com/getsentry/sentry-python/issues/5621
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/5622
https://github.com/ericapisani
https://github.com/Zylphrex
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.