René's URL Explorer Experiment


Title: [BUG]: Legacy driver callback bookkeeping races under free-threaded Python, causing native abort · Issue #3282 · NVIDIA/cuda-python · GitHub

Open Graph Title: [BUG]: Legacy driver callback bookkeeping races under free-threaded Python, causing native abort · Issue #3282 · NVIDIA/cuda-python

X Title: [BUG]: Legacy driver callback bookkeeping races under free-threaded Python, causing native abort · Issue #3282 · NVIDIA/cuda-python

Description: Is this a duplicate? I confirmed there appear to be no duplicate issues for this bug and that I agree to the Code of Conduct Type of Bug Runtime Error Component cuda.bindings Describe the bug A nightly CI job aborted with exit code 134 w...

Open Graph Description: Is this a duplicate? I confirmed there appear to be no duplicate issues for this bug and that I agree to the Code of Conduct Type of Bug Runtime Error Component cuda.bindings Describe the bug A nig...

X Description: Is this a duplicate? I confirmed there appear to be no duplicate issues for this bug and that I agree to the Code of Conduct Type of Bug Runtime Error Component cuda.bindings Describe the bug A nig...

Opengraph URL: https://github.com/NVIDIA/cuda-python/issues/3282

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: Legacy driver callback bookkeeping races under free-threaded Python, causing native abort","articleBody":"### Is this a duplicate?\n\n- [x] I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cuda-python/issues) for this bug and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md)\n\n### Type of Bug\n\nRuntime Error\n\n### Component\n\ncuda.bindings\n\n### Describe the bug\n\nA nightly CI job aborted with exit code 134 while running tests/legacy_api/test_legacy_cuda.py::test_culogs_functions with four parallel threads.\n[Failing job](https://github.com/NVIDIA/cuda-python/actions/runs/40791244909/job/123179307143)\n\nEnvironment:\n- Commit: d649075a50b97245b63381052481f2eaadd57f1c\n- Linux aarch64, Python 3.15.2 free-threaded\n- CUDA Toolkit 13.4.2, NVIDIA driver 595.99.02, L4 GPU\n- pytest-run-parallel==0.10.0, --parallel-threads=4, --count=5\nThe Python stack points to cuLogsUnregisterCallback(callback_handle). Disassembly of the exact wheel places the native abort in map-node deletion during std::map::erase().\nThe legacy bindings store callback allocations in the shared m_global._allocated C++ map. \n\ncuLogsRegisterCallback inserts entries, while cuLogsUnregisterCallback frees callback data and erases entries without synchronization. Concurrent access under free-threaded Python is the likely cause of memory corruption. Async-notification callback APIs also access this map.\n\nExpected behavior: concurrent registration and unregistration of independent callbacks completes safely.\n\nSuggested fix: synchronize callback bookkeeping at the binding-generation source, covering all APIs that share the map, and add concurrent regression coverage. Serializing the affected test could provide an interim CI mitigation.\n\nThe full CUDA test has not been reproduced locally. The matching ARM Python 3.14t job passed on the same driver version, suggesting an intermittent race.\n\nSome history: \n\nRecent test changes likely exposed an older bug. I found no recent change introducing the unsafe map operations.\n- May 2025: The cuLogs* wrappers already used the shared map without synchronization. ([#597](https://github.com/NVIDIA/cuda-python/pull/597))\n- September 2, 2026: CI enabled four parallel test threads for free-threaded Python. ([#2194](https://github.com/NVIDIA/cuda-python/pull/2194))\n- October 5: test_culogs_functions was added, exercising registration and cleanup. ([#2978](https://github.com/NVIDIA/cuda-python/pull/2978))\n- October 15: Context pooling increased actual overlap between worker threads. The commit explicitly notes that context creation previously kept them apart. This is the strongest candidate for making the existing race easier to trigger. ([#3122](https://github.com/NVIDIA/cuda-python/pull/3122))\n\n\n### How to Reproduce\n\nNot reproducible. \n\n### Expected behavior\n\nExpected behavior: concurrent registration and unregistration of independent callbacks completes safely.\n\n\n### Operating System\n\n_No response_\n\n### nvidia-smi output\n\n_No response_","author":{"url":"https://github.com/jpascucci-nv","@type":"Person","name":"jpascucci-nv"},"datePublished":"2026-10-29T15:15:21Z","url":"https://github.com/NVIDIA/cuda-python/issues/3282"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:594f723b-9e6d-f1af-6feb-eee8d8512853
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC54E:D6380:1585EF:1DDE73:6AF8374A
html-safe-nonce07a3584f6777f32c4bab447c1376ef38ee04b1f676534a1d0affd9799099bd40
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTRFOkQ2MzgwOjE1ODVFRjoxRERFNzM6NkFGODM3NEEiLCJ2aXNpdG9yX2lkIjoiODE3Mzc0Njk2NzExNzU3NjAxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca1423c5d15fa1cd3507a221677b3d51606473bda99470ea85f2826d13b0bd89d
hovercard-subject-tagissue:6102722384
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NVIDIA/cuda-python/3282/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d6a766158cf20cae50f814b1c6fe1da2f2eacf2afa7e6736b76177ffec173dbd/NVIDIA/cuda-python/issues/3282
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d6a766158cf20cae50f814b1c6fe1da2f2eacf2afa7e6736b76177ffec173dbd/NVIDIA/cuda-python/issues/3282
og:image:altIs this a duplicate? I confirmed there appear to be no duplicate issues for this bug and that I agree to the Code of Conduct Type of Bug Runtime Error Component cuda.bindings Describe the bug A nig...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejpascucci-nv
hostnamegithub.com
expected-hostnamegithub.com
None5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db
turbo-cache-controlno-preview
go-importgithub.com/NVIDIA/cuda-python git https://github.com/NVIDIA/cuda-python.git
octolytics-dimension-user_id1728152
octolytics-dimension-user_loginNVIDIA
octolytics-dimension-repository_id381173759
octolytics-dimension-repository_nwoNVIDIA/cuda-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id381173759
octolytics-dimension-repository_network_root_nwoNVIDIA/cuda-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
release653be32ff5c755082a4db662491bfbbcfc9112c1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NVIDIA/cuda-python/issues/3282#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fcuda-python%2Fissues%2F3282
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%2FNVIDIA%2Fcuda-python%2Fissues%2F3282
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NVIDIA%2Fcuda-python
Reloadhttps://github.com/NVIDIA/cuda-python/issues/3282
Reloadhttps://github.com/NVIDIA/cuda-python/issues/3282
Reloadhttps://github.com/NVIDIA/cuda-python/issues/3282
NVIDIAhttps://github.com/NVIDIA
cuda-pythonhttps://github.com/NVIDIA/cuda-python
Codehttps://github.com/NVIDIA/cuda-python
Issues219 (219)https://github.com/NVIDIA/cuda-python/issues
Pull requests92 (92)https://github.com/NVIDIA/cuda-python/pulls
Discussionshttps://github.com/NVIDIA/cuda-python/discussions
Actionshttps://github.com/NVIDIA/cuda-python/actions
Projectshttps://github.com/NVIDIA/cuda-python/projects
Wikihttps://github.com/NVIDIA/cuda-python/wiki
Security and qualityhttps://github.com/NVIDIA/cuda-python/security
Insightshttps://github.com/NVIDIA/cuda-python/pulse
https://github.com/NVIDIA/cuda-python
New issuehttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/3282
New issuehttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/3282
Bughttps://github.com/NVIDIA/cuda-python/issues?q=type:"Bug"
#3308https://github.com/NVIDIA/cuda-python/pull/3308
#3462https://github.com/NVIDIA/cuda-python/pull/3462
[BUG]: Legacy driver callback bookkeeping races under free-threaded Python, causing native aborthttps://github.com/NVIDIA/cuda-python/issues/3282#top
#3308https://github.com/NVIDIA/cuda-python/pull/3308
#3462https://github.com/NVIDIA/cuda-python/pull/3462
https://github.com/lijinf2
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
bugSomething isn't workinghttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22bug%22
cuda.bindings nexthttps://github.com/NVIDIA/cuda-python/milestone/53
https://github.com/jpascucci-nv
jpascucci-nvhttps://github.com/jpascucci-nv
on Oct 29, 2026https://github.com/NVIDIA/cuda-python/issues/3282#issue-6102722384
duplicate issueshttps://github.com/NVIDIA/cuda-python/issues
Code of Conducthttps://github.com/NVIDIA/cuda-python/issues/CODE_OF_CONDUCT.md
Failing jobhttps://github.com/NVIDIA/cuda-python/actions/runs/40791244909/job/123179307143
d649075https://github.com/NVIDIA/cuda-python/commit/d649075a50b97245b63381052481f2eaadd57f1c
#597https://github.com/NVIDIA/cuda-python/pull/597
#2194https://github.com/NVIDIA/cuda-python/pull/2194
#2978https://github.com/NVIDIA/cuda-python/pull/2978
#3122https://github.com/NVIDIA/cuda-python/pull/3122
jpascucci-nvhttps://github.com/jpascucci-nv
bugSomething isn't workinghttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22bug%22
on Oct 29, 2026https://github.com/NVIDIA/cuda-python/issues/3282#event-34600975775
rparolinhttps://github.com/rparolin
lijinf2https://github.com/lijinf2
on Oct 29, 2026https://github.com/NVIDIA/cuda-python/issues/3282#event-34614998851
rparolinhttps://github.com/rparolin
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
on Oct 29, 2026https://github.com/NVIDIA/cuda-python/issues/3282#event-34615009562
rparolinhttps://github.com/rparolin
Bughttps://github.com/NVIDIA/cuda-python/issues?q=type:"Bug"
on Oct 29, 2026https://github.com/NVIDIA/cuda-python/issues/3282#event-34615018463
https://github.com/juenglin
juenglinhttps://github.com/juenglin
on Oct 29, 2026https://github.com/NVIDIA/cuda-python/issues/3282#issuecomment-6510799409
Failing job: Test win-64 / Python 3.14t, CUDA 13.4.2 (wheels), GPU a100 (MCDM)https://github.com/NVIDIA/cuda-python/actions/runs/40969465318/job/123783898813
https://github.com/lijinf2
lijinf2https://github.com/lijinf2
on Oct 30, 2026https://github.com/NVIDIA/cuda-python/issues/3282#issuecomment-6515788567
@jpascucci-nvhttps://github.com/jpascucci-nv
@juenglinhttps://github.com/juenglin
lijinf2https://github.com/lijinf2
completedhttps://github.com/NVIDIA/cuda-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3308https://github.com/NVIDIA/cuda-python/pull/3308
on Nov 2, 2026https://github.com/NVIDIA/cuda-python/issues/3282#event-34949129763
Andy-Josthttps://github.com/Andy-Jost
on Nov 2, 2026https://github.com/NVIDIA/cuda-python/issues/3282#event-34966042548
Fix crash when registering/unregistering callbacks concurrently under…https://github.com/srimanachanta/cuda-python/commit/65935f1ae3462a5622dfafc663540b381c41f99c
https://docs.github.com/articles/closing-issues-via-commit-messages
65935f1https://github.com/srimanachanta/cuda-python/commit/65935f1ae3462a5622dfafc663540b381c41f99c
lijinf2https://github.com/lijinf2
cuda.core nexthttps://github.com/NVIDIA/cuda-python/milestone/54
on Nov 3, 2026https://github.com/NVIDIA/cuda-python/issues/3282#event-35057607352
https://github.com/lijinf2
lijinf2https://github.com/lijinf2
on Nov 3, 2026https://github.com/NVIDIA/cuda-python/issues/3282#issuecomment-6613619798
lijinf2https://github.com/lijinf2
on Nov 3, 2026https://github.com/NVIDIA/cuda-python/issues/3282#event-35057730238
rparolinhttps://github.com/rparolin
cuda.core nexthttps://github.com/NVIDIA/cuda-python/milestone/54
cuda.bindings 13.5.0 & 12.9.10https://github.com/NVIDIA/cuda-python/milestone/51
on Nov 4, 2026https://github.com/NVIDIA/cuda-python/issues/3282#event-35155922360
https://github.com/lijinf2
lijinf2https://github.com/lijinf2
on Nov 4, 2026https://github.com/NVIDIA/cuda-python/issues/3282#issuecomment-6641360350
@juenglinhttps://github.com/juenglin
#3373https://github.com/NVIDIA/cuda-python/issues/3373
#3308https://github.com/NVIDIA/cuda-python/pull/3308
lijinf2https://github.com/lijinf2
on Nov 9, 2026https://github.com/NVIDIA/cuda-python/issues/3282#event-35606146561
Support the driver error logging system #671https://github.com/NVIDIA/cuda-python/issues/671
rparolinhttps://github.com/rparolin
cuda.bindings 13.5.0 & 12.9.10https://github.com/NVIDIA/cuda-python/milestone/51
cuda.bindings nexthttps://github.com/NVIDIA/cuda-python/milestone/53
on Nov 10, 2026https://github.com/NVIDIA/cuda-python/issues/3282#event-35725354865
Sign up for freehttps://github.com/signup?return_to=https://github.com/NVIDIA/cuda-python/issues/3282
Sign in to commenthttps://github.com/login?return_to=https://github.com/NVIDIA/cuda-python/issues/3282
lijinf2https://github.com/lijinf2
P0High priority - Must do!https://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22P0%22
bugSomething isn't workinghttps://github.com/NVIDIA/cuda-python/issues?q=state%3Aopen%20label%3A%22bug%22
Bughttps://github.com/NVIDIA/cuda-python/issues?q=type:"Bug"
cuda.bindings nexthttps://github.com/NVIDIA/cuda-python/milestone/53
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.