René's URL Explorer Experiment


Title: fix(monitor): release `Monitor._thread_lock` after fork (#6148) by vokracko · Pull Request #6159 · getsentry/sentry-python · GitHub

Open Graph Title: fix(monitor): release `Monitor._thread_lock` after fork (#6148) by vokracko · Pull Request #6159 · getsentry/sentry-python

X Title: fix(monitor): release `Monitor._thread_lock` after fork (#6148) by vokracko · Pull Request #6159 · 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: Description If os.fork() runs while another thread holds Monitor._thread_lock, the child process inherits the lock locked. The holding thread does not exist in the child, so the lock can never be r...

X Description: Description If os.fork() runs while another thread holds Monitor._thread_lock, the child process inherits the lock locked. The holding thread does not exist in the child, so the lock can never be r...

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

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:70034d15-9de9-a79e-6c63-651777a1a0b6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB430:21C1C3:29E87C:3A6EA9:6B008835
html-safe-nonce9dafca985f6bcfda10093e699d437ab27968e0be2b07335f5f7d81604b656bd7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDMwOjIxQzFDMzoyOUU4N0M6M0E2RUE5OjZCMDA4ODM1IiwidmlzaXRvcl9pZCI6IjgzODA0Mzg1MTg3MzE2NzE2MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9c9466164473dfeb322d4eb77c085de96c695b2aeca29ee8bd35dd7b39251850
hovercard-subject-tagpull_request:3595243354
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/6159/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/81cbff01c741a9581e42b601a9e663883c625ec6798846cbb4f0728be9bed988/getsentry/sentry-python/pull/6159
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/81cbff01c741a9581e42b601a9e663883c625ec6798846cbb4f0728be9bed988/getsentry/sentry-python/pull/6159
og:image:altDescription If os.fork() runs while another thread holds Monitor._thread_lock, the child process inherits the lock locked. The holding thread does not exist in the child, so the lock can never be r...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevokracko
hostnamegithub.com
expected-hostnamegithub.com
None4d3d8e50f02c1d7bf86d5acfa1d3bfe9366abd6528a6b429eb07a168429d2b61
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
releasedb758f8e02b8257935fb03edf81a3e76eb3abd11
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/6159#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F6159
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%2F6159
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/6159
Reloadhttps://github.com/getsentry/sentry-python/pull/6159
Reloadhttps://github.com/getsentry/sentry-python/pull/6159
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 requests41 (41)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
getsentry:masterhttps://github.com/getsentry/sentry-python/tree/master
vokracko:fix/monitor-thread-lock-fork-6148https://github.com/vokracko/sentry-python/tree/fix/monitor-thread-lock-fork-6148
Conversationhttps://github.com/getsentry/sentry-python/pull/6159
Commits2 (2)https://github.com/getsentry/sentry-python/pull/6159/commits
Checkshttps://github.com/getsentry/sentry-python/pull/6159/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/6159/files
fix(monitor): release Monitor._thread_lock after fork (#6148)https://github.com/getsentry/sentry-python/pull/6159#top
ericapisanihttps://github.com/ericapisani
getsentry:masterhttps://github.com/getsentry/sentry-python/tree/master
vokracko:fix/monitor-thread-lock-fork-6148https://github.com/vokracko/sentry-python/tree/fix/monitor-thread-lock-fork-6148
https://github.com/vokracko
vokrackohttps://github.com/vokracko
Apr 28, 2026https://github.com/getsentry/sentry-python/pull/6159#issue-4342402656
Monitor._thread_lock leaked into forked children causing deadlocks #6148https://github.com/getsentry/sentry-python/issues/6148
PY-2390https://linear.app/getsentry/issue/PY-2390/monitor-thread-lock-leaked-into-forked-children-causing-child
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6159
https://github.com/lukas-vokracko-b2c2
fix(monitor): release Monitor._thread_lock after fork (https://github.com/getsentry/sentry-python/pull/6159/commits/f7c1661a64a73cf61eb16792e6c0b147352beee6
getsentry#6148https://github.com/getsentry/sentry-python/issues/6148
)https://github.com/getsentry/sentry-python/pull/6159/commits/f7c1661a64a73cf61eb16792e6c0b147352beee6
f7c1661https://github.com/getsentry/sentry-python/pull/6159/commits/f7c1661a64a73cf61eb16792e6c0b147352beee6
getsentry#6148https://github.com/getsentry/sentry-python/issues/6148
https://github.com/apps/sentry-s-classifier-app
sentry-s-classifier-apphttps://github.com/apps/sentry-s-classifier-app
issue-already-assigned https://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3Aissue-already-assigned
violating-contribution-guidelines https://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3Aviolating-contribution-guidelines
Apr 28, 2026https://github.com/getsentry/sentry-python/pull/6159#event-24943169943
https://github.com/apps/sentry-s-classifier-app
sentry-s-classifier-apphttps://github.com/apps/sentry-s-classifier-app
Apr 28, 2026https://github.com/getsentry/sentry-python/pull/6159#issuecomment-4334408551
contributing guidelineshttps://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6159
https://github.com/apps/sentry-s-classifier-app
sentry-s-classifier-apphttps://github.com/apps/sentry-s-classifier-app
Apr 28, 2026https://github.com/getsentry/sentry-python/pull/6159#event-24943170894
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Apr 28, 2026https://github.com/getsentry/sentry-python/pull/6159#event-24943930945
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
violating-contribution-guidelines https://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3Aviolating-contribution-guidelines
issue-already-assigned https://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3Aissue-already-assigned
Apr 28, 2026https://github.com/getsentry/sentry-python/pull/6159#event-24944018930
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
April 28, 2026 13:50https://github.com/getsentry/sentry-python/pull/6159#event-24950430549
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
code ownerhttps://github.com/getsentry/sentry-python/blob/9c1d4757a0dea6bb9debe204ab2504af07c0242f/.github/CODEOWNERS#L1
April 28, 2026 13:50https://github.com/getsentry/sentry-python/pull/6159#event-24950431061
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Apr 28, 2026 https://github.com/getsentry/sentry-python/pull/6159#pullrequestreview-4189415328
View reviewed changes https://github.com/getsentry/sentry-python/pull/6159/files/f7c1661a64a73cf61eb16792e6c0b147352beee6
cursorhttps://github.com/apps/cursor
https://github.com/getsentry/sentry-python/pull/6159#pullrequestreview-4189415328
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?data=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImJ1Z2JvdC12MiJ9.eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aTpiN2JhMjllYy04N2Y3LTQ4OTUtOTE5Ni01NDAyZWQ4M2I2ZTQiLCJlbmNyeXB0aW9uS2V5IjoiNk4tbWhRaXc3U0lqMjV5LUxacFlBc282cHM4NEg3SGVqNFp2aWpQb0tBbyIsImJyYW5jaCI6ImZpeC9tb25pdG9yLXRocmVhZC1sb2NrLWZvcmstNjE0OCIsInJlcG9Pd25lciI6ImdldHNlbnRyeSIsInJlcG9OYW1lIjoic2VudHJ5LXB5dGhvbiJ9LCJpYXQiOjE3NzczODQ1MzEsImV4cCI6MTc3OTk3NjUzMX0.HZjFAx_SxJsgGSkBTNC6h3wVSheVBU95zbLVwecfQw5gCL29cm0GZm8c172km_1hsF2T2VJ7N9i971xtgIihrV46L7AmOQym8q479jAjJtqmHiyvnFNhmGwfv2F062P_eD4DWbiOAEwzEAqan6q6S0Wb9CsPYs9hlnqzwKa5K94jDFG7RyNdo5wGYfdkFT0buDaDi0gXGq6v6KTp4py9B0UMJZUAJdXJhUlMxmO_uGjdF16SSkcK2tdjWvM7rdK6yceHwq3n_ecTDbcMR1fBbEke6TCE58rRWgFzwuaRM09JiWm0zmWvkEgRT5geUR_jXMId7QbxL1u7_BLUw8o4Qg
Cursor dashboardhttps://www.cursor.com/dashboard/bugbot
Cursor Bugbothttps://cursor.com/bugbot
f7c1661https://github.com/getsentry/sentry-python/commit/f7c1661a64a73cf61eb16792e6c0b147352beee6
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6159
sentry_sdk/monitor.pyhttps://github.com/getsentry/sentry-python/pull/6159/files/f7c1661a64a73cf61eb16792e6c0b147352beee6#diff-c4b654954a5ee25d931b5c03418648f7d7baa8afe37d76cd84b33db14b738b71
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6159
https://github.com/lukas-vokracko-b2c2
fix(monitor): avoid leaking Monitor via register_at_fork callbackhttps://github.com/getsentry/sentry-python/pull/6159/commits/ee55769e3a2379b5e08b006761512ba1670a037e
ee55769https://github.com/getsentry/sentry-python/pull/6159/commits/ee55769e3a2379b5e08b006761512ba1670a037e
https://github.com/vokracko
vokrackohttps://github.com/vokracko
ericapisanihttps://github.com/ericapisani
April 28, 2026 18:12https://github.com/getsentry/sentry-python/pull/6159#event-24960224695
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
Apr 29, 2026 https://github.com/getsentry/sentry-python/pull/6159#pullrequestreview-4197085024
View reviewed changes https://github.com/getsentry/sentry-python/pull/6159/files/ee55769e3a2379b5e08b006761512ba1670a037e
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
Apr 29, 2026https://github.com/getsentry/sentry-python/pull/6159#issuecomment-4343823024
@vokrackohttps://github.com/vokracko
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6159
https://github.com/ericapisani
ericapisanihttps://github.com/ericapisani
051cc01https://github.com/getsentry/sentry-python/commit/051cc01640a29bfd64b1f1e2e3414c02f027dd1b
Apr 29, 2026https://github.com/getsentry/sentry-python/pull/6159#event-24990636933
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6159
https://github.com/vokracko
vokrackohttps://github.com/vokracko
April 29, 2026 13:53https://github.com/getsentry/sentry-python/pull/6159#event-24993205353
publish: getsentry/sentry-python@2.59.0 getsentry/publish#8047 https://github.com/getsentry/publish/issues/8047
publish: getsentry/sentry-python@2.59.0a1 getsentry/publish#8063 https://github.com/getsentry/publish/issues/8063
https://github.com/VenkateswarluNagineni
VenkateswarluNaginenihttps://github.com/VenkateswarluNagineni
Jul 31, 2026 https://github.com/getsentry/sentry-python/pull/6159#ref-issue-4344995315
Introduce fork-safety fix to SessionFlusher and BackgroundWorker #6164 https://github.com/getsentry/sentry-python/issues/6164
mgalignianahttps://github.com/mgaligniana
Aug 9, 2026 https://github.com/getsentry/sentry-python/pull/6159#ref-commit-7eead77
https://github.com/vokracko
https://github.com/mgaligniana
fix(monitor): releasehttps://github.com/mgaligniana/sentry-python/commit/7eead77f96b4d5f004703fb9db3f5078ef0613a0
Monitor._thread_lockhttps://github.com/mgaligniana/sentry-python/commit/7eead77f96b4d5f004703fb9db3f5078ef0613a0
after fork (https://github.com/mgaligniana/sentry-python/commit/7eead77f96b4d5f004703fb9db3f5078ef0613a0
getsentry#6148https://github.com/getsentry/sentry-python/issues/6148
…https://github.com/mgaligniana/sentry-python/commit/7eead77f96b4d5f004703fb9db3f5078ef0613a0
7eead77https://github.com/mgaligniana/sentry-python/commit/7eead77f96b4d5f004703fb9db3f5078ef0613a0
getsentry#6159https://github.com/getsentry/sentry-python/pull/6159
getsentry#6148https://github.com/getsentry/sentry-python/issues/6148
https://linear.app/getsentry/issue/PY-2390/monitor-thread-lock-leaked-into-forked-children-causing-childhttps://linear.app/getsentry/issue/PY-2390/monitor-thread-lock-leaked-into-forked-children-causing-child
https://github.com/BetterAndBetterII
BetterAndBetterIIhttps://github.com/BetterAndBetterII
Aug 27, 2026 https://github.com/getsentry/sentry-python/pull/6159#ref-pullrequest-5271556908
fix(profiler): reset ThreadContinuousScheduler lock after fork #7275 https://github.com/getsentry/sentry-python/pull/7275
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%2F6159
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-python/pull/6159/files/f7c1661a64a73cf61eb16792e6c0b147352beee6
https://github.com/ericapisani
ericapisani https://github.com/ericapisani
https://github.com/getsentry/sentry-python/pull/6159/files/ee55769e3a2379b5e08b006761512ba1670a037e
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6159
Monitor._thread_lock leaked into forked children causing deadlocks https://github.com/getsentry/sentry-python/issues/6148
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6159
https://github.com/vokracko
https://github.com/ericapisani
https://github.com/sentrivana
https://github.com/lukas-vokracko-b2c2
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.