René's URL Explorer Experiment


Title: Race condition in tracemalloc causes segfaults · Issue #128679 · python/cpython · GitHub

Open Graph Title: Race condition in tracemalloc causes segfaults · Issue #128679 · python/cpython

X Title: Race condition in tracemalloc causes segfaults · Issue #128679 · python/cpython

Description: Crash report What happened? This is a bit of a tricky situation, but it is real and impacting my ability to use tracemalloc. As background, I've added code to Polars to make it record all of its allocations in tracemalloc, and this is en...

Open Graph Description: Crash report What happened? This is a bit of a tricky situation, but it is real and impacting my ability to use tracemalloc. As background, I've added code to Polars to make it record all of its al...

X Description: Crash report What happened? This is a bit of a tricky situation, but it is real and impacting my ability to use tracemalloc. As background, I've added code to Polars to make it record all of it...

Opengraph URL: https://github.com/python/cpython/issues/128679

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Race condition in tracemalloc causes segfaults","articleBody":"# Crash report\r\n\r\n### What happened?\r\n\r\nThis is a bit of a tricky situation, but it is real and impacting my ability to use tracemalloc. As background, I've added code to Polars to make it record all of its allocations in tracemalloc, and this is enabled in debug builds. This then allows writing unit tests that check memory usage, which is very useful in ensuring high memory usage is fixed, and making sure it doesn't get high again.\r\n\r\nUnfortunately, I'm hitting a situation where tracemalloc causes segfaults in multi-threaded situations. I believe that this is a race condition between `PyTraceMalloc_Track()` in a new non-Python thread that does not hold the GIL, and `tracemalloc.stop()` being called in another thread. My hypothesis in detail:\r\n\r\n* Thread 1 does `tracemalloc.start()`.\r\n* Thread 2 does not hold the GIL.\r\n* Thread 2 calls PyTraceMalloc_Track().\r\n* Thread 2 checks if tracemalloc is enabled, the answer is yes.\r\n* Thread 2 starts acquiring the GIL (see PyTraceMalloc_Track implementation). As part of acquiring the GIL memory needs to be allocated.\r\n* Thread 2 therefore once again checks if tracemalloc is enabled (I haven't actually read source code enough to verify if this part is true, but the coredump suggests it probably is). The answer is yes.\r\n* At this point, Thread 1 calls `tracemalloc.stop()`.\r\n* Thread 2 continues as if tracemalloc enabled, but it is not!\r\n* BOOM\r\n\r\nIf this hypothesis is correct, the solution would for GIL acquisition to bypass tracemalloc altogether if it allocates; it's not like it allocates a lot of memory, so not tracking it is fine. This may be difficult in practice, so another approach would involve having an additional lock so there's no race condition around checking if tracemalloc is enabled.\r\n\r\nHere is a stack trace from a coredump from the reproducer (see below) that led me to the above hypothesis:\r\n\r\n```\r\n#0  0x00000000005f0482 in traceback_new () at ../Python/tracemalloc.c:371\r\n#1  0x00000000005f0083 in tracemalloc_add_trace (domain=0, ptr=132539872185888, size=336) at ../Python/tracemalloc.c:471\r\n#2  0x00000000006930db in tracemalloc_alloc (elsize=336, nelem=\u003coptimized out>, ctx=0x9ec4f8 \u003c_PyRuntime+10136>, use_calloc=\u003coptimized out>) at ../Python/tracemalloc.c:541\r\n#3  tracemalloc_raw_alloc (use_calloc=\u003coptimized out>, ctx=0x9ec4f8 \u003c_PyRuntime+10136>, nelem=\u003coptimized out>, elsize=336) at ../Python/tracemalloc.c:715\r\n#4  0x0000000000639a52 in alloc_threadstate (interp=0x9ff6b0 \u003c_PyRuntime+88400>) at ../Python/pystate.c:1452\r\n#5  new_threadstate (interp=0x9ff6b0 \u003c_PyRuntime+88400>, whence=4) at ../Python/pystate.c:1563\r\n#6  0x0000000000480ef0 in PyGILState_Ensure () at ../Python/pystate.c:2766\r\n#7  0x00000000005203fc in PyTraceMalloc_Track (domain=123, ptr=10, size=1) at ../Python/tracemalloc.c:1318\r\n#8  0x0000788b7088774c in tracemalloc_repro::in_thread () at src/lib.rs:23\r\n```\r\n\r\nTo run the reproducer you will need to `pip install rustimport` and have Rust installed. (I tried with Cython, had a hard time, gave up.)\r\n\r\nHere's the Python file:\r\n\r\n```python\r\nimport gc\r\nimport time\r\nimport tracemalloc\r\n\r\nimport rustimport.import_hook\r\n\r\n# rustimport will automatically compile tracemalloc_repro.rs into an extension:\r\nimport tracemalloc_repro\r\n\r\ntracemalloc.start()\r\n# This launches ~50 threads that run in parallel to this one:\r\ntracemalloc_repro.run()\r\n# This happens in parallel to the new threads running:\r\ntracemalloc.stop()\r\ngc.collect()\r\n\r\ntime.sleep(10)\r\n```\r\n\r\nAnd here is the Rust file, you should call it `tracemalloc_repro.rs`:\r\n\r\n```rust\r\n// rustimport\r\n//: [package]\r\n//: name = \"tracemalloc_repro\"\r\n//: version = \"0.1.0\"\r\n//: edition = \"2021\"\r\n//:\r\n//: [lib]\r\n//: name = \"tracemalloc_repro\"\r\n//: crate-type = [\"cdylib\"]\r\n//:\r\n//: [dependencies]\r\n//: pyo3 = {version = \"0.23\", features = [\"extension-module\"]}\r\n//: libc = \"0.2\"\r\n\r\nuse pyo3::prelude::*;\r\nuse libc::{c_int, c_uint, size_t, uintptr_t};\r\n\r\nextern \"C\" {\r\n    fn PyTraceMalloc_Track(domain: c_uint, ptr: uintptr_t, size: size_t) -> c_int;\r\n}\r\n\r\nfn in_thread() {\r\n    let result = unsafe { PyTraceMalloc_Track(123, 10, 1) };\r\n    println!(\"Result of tracking: {result}\");\r\n}\r\n\r\n#[pyfunction]\r\nfn run(py: Python) {\r\n    py.allow_threads(|| {\r\n        // With GIL released, run function in a thread.\r\n        for _ in 0..50 {\r\n            let _ = std::thread::spawn(in_thread);\r\n        }\r\n    });\r\n}\r\n\r\n#[pymodule]\r\nfn tracemalloc_repro(_py: Python, m: &Bound\u003c'_, PyModule>) -> PyResult\u003c()> {\r\n    m.add_function(wrap_pyfunction!(run, m)?)?;\r\n    Ok(())\r\n}\r\n```\r\n\r\nYou can reproduce by calling `repro.py`. Because this is a race condition, you may need to run it a few times; I had more consistent crashes with Python 3.12, but it does crash on Python 3.13. You may need to tweak the number 50 above to make it happen.\r\n\r\n### CPython versions tested on:\r\n\r\n3.12, 3.13\r\n\r\n### Operating systems tested on:\r\n\r\nLinux\r\n\r\n### Output from running 'python -VV' on the command line:\r\n\r\nPython 3.13.1 (main, Dec  4 2024, 08:54:15) [GCC 13.2.0]\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-128695\n* gh-128710\n* gh-128888\n* gh-128893\n* gh-128897\n* gh-128988\n* gh-129022\n* gh-129126\n* gh-129258\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/itamarst","@type":"Person","name":"itamarst"},"datePublished":"2025-01-09T15:20:30Z","url":"https://github.com/python/cpython/issues/128679"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1fd1059e-dd43-c3a2-3651-735746d89496
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCB90:19F84C:3C94DA9:4CF68CA:6B01F3E1
html-safe-nonce5ac397a4afa300ce1fa5ce450a434476e7a0286501a4551ab7f623db3e82df3b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjkwOjE5Rjg0QzozQzk0REE5OjRDRjY4Q0E6NkIwMUYzRTEiLCJ2aXNpdG9yX2lkIjoiMzQ1NDk4MjU3MzU3MzQwMzYxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd0fe50481efd00a16a223ba7d94ca7dd1515bb43313bf1ff1a12d9e997f126dc
hovercard-subject-tagissue:2778112954
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/python/cpython/128679/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f2969e2d3f3951304cecb0cf184399271f754088e2ccc186ceb947244269015a/python/cpython/issues/128679
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f2969e2d3f3951304cecb0cf184399271f754088e2ccc186ceb947244269015a/python/cpython/issues/128679
og:image:altCrash report What happened? This is a bit of a tricky situation, but it is real and impacting my ability to use tracemalloc. As background, I've added code to Polars to make it record all of its al...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameitamarst
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/128679#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F128679
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%2Fpython%2Fcpython%2Fissues%2F128679
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=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/128679
Reloadhttps://github.com/python/cpython/issues/128679
Reloadhttps://github.com/python/cpython/issues/128679
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128679
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128679
Race condition in tracemalloc causes segfaultshttps://github.com/python/cpython/issues/128679#top
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com/itamarst
itamarsthttps://github.com/itamarst
on Jan 9, 2025https://github.com/python/cpython/issues/128679#issue-2778112954
gh-128679: fix race condition in tracemalloc #128695https://github.com/python/cpython/pull/128695
gh-128679: Fix tracemalloc.stop() race condition #128710https://github.com/python/cpython/pull/128710
gh-128679: Redesign tracemalloc locking #128888https://github.com/python/cpython/pull/128888
gh-128679: Fix tracemalloc.stop() race conditions #128893https://github.com/python/cpython/pull/128893
[3.13] gh-128679: Fix tracemalloc.stop() race conditions #128897https://github.com/python/cpython/pull/128897
gh-128679: Skip test_tracemalloc_track_race() on debug build #128988https://github.com/python/cpython/pull/128988
[3.12] gh-128679: Fix tracemalloc.stop() race conditions (#128897) #129022https://github.com/python/cpython/pull/129022
gh-128679: Use _PyThreadState_GET() in tracemalloc.c #129126https://github.com/python/cpython/pull/129126
[3.13] gh-128679: Clear the ref trace in _PyTraceMalloc_Stop() #129258https://github.com/python/cpython/pull/129258
Nexthttps://github.com/python/cpython/issues/128679?timeline_page=1
itamarsthttps://github.com/itamarst
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
on Jan 9, 2025https://github.com/python/cpython/issues/128679#event-15869574258
https://github.com/tom-pytel
tom-pytelhttps://github.com/tom-pytel
on Jan 9, 2025https://github.com/python/cpython/issues/128679#issuecomment-2581172319
https://github.com/itamarst
itamarsthttps://github.com/itamarst
on Jan 9, 2025https://github.com/python/cpython/issues/128679#issuecomment-2581337321
https://github.com/tomasr8
tomasr8https://github.com/tomasr8
on Jan 9, 2025https://github.com/python/cpython/issues/128679#issuecomment-2581377053
@tom-pytelhttps://github.com/tom-pytel
tom-pytelhttps://github.com/tom-pytel
on Jan 9, 2025https://github.com/python/cpython/issues/128679#event-15874712791
pythongh-128679: fix race condition in tracemallochttps://github.com/tom-pytel/cpython/commit/973d08a5f65c99d00dcf1451ba0b04984486a607
pythongh-128679https://github.com/python/cpython/issues/128679
973d08ahttps://github.com/tom-pytel/cpython/commit/973d08a5f65c99d00dcf1451ba0b04984486a607
https://github.com/tom-pytel
tom-pytelhttps://github.com/tom-pytel
on Jan 9, 2025https://github.com/python/cpython/issues/128679#issuecomment-2581443959
ZeroIntensityhttps://github.com/ZeroIntensity
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
on Jan 10, 2025https://github.com/python/cpython/issues/128679#event-15883072543
vstinnerhttps://github.com/vstinner
on Jan 10, 2025https://github.com/python/cpython/issues/128679#event-15883128234
pythongh-128679: Fix tracemalloc.stop() race conditionhttps://github.com/vstinner/cpython/commit/8f58d77bc462a86048fd73dbe4f65d52028c426f
pythongh-128679https://github.com/python/cpython/issues/128679
8f58d77https://github.com/vstinner/cpython/commit/8f58d77bc462a86048fd73dbe4f65d52028c426f
pythongh-128679: Redesign tracemalloc lockinghttps://github.com/vstinner/cpython/commit/c7a0abde3fee0092f28e1d93d03c4f085be94033
pythongh-128679https://github.com/python/cpython/issues/128679
c7a0abdhttps://github.com/vstinner/cpython/commit/c7a0abde3fee0092f28e1d93d03c4f085be94033
pythongh-128679: Redesign tracemalloc lockinghttps://github.com/vstinner/cpython/commit/853a1dfd46475eb796883b555383be07f46ed0b9
pythongh-128679https://github.com/python/cpython/issues/128679
853a1dfhttps://github.com/vstinner/cpython/commit/853a1dfd46475eb796883b555383be07f46ed0b9
pythongh-128679: Redesign tracemalloc lockinghttps://github.com/vstinner/cpython/commit/a415ecb211cf88718af8ccb5e653b7f074a2e341
pythongh-128679https://github.com/python/cpython/issues/128679
a415ecbhttps://github.com/vstinner/cpython/commit/a415ecb211cf88718af8ccb5e653b7f074a2e341
gh-128679: Redesign tracemalloc locking (#128888)https://github.com/python/cpython/commit/36c5e3bcc25700645d19eba65dcdf22acd99a7a8
gh-128679https://github.com/python/cpython/issues/128679
#128888https://github.com/python/cpython/pull/128888
36c5e3bhttps://github.com/python/cpython/commit/36c5e3bcc25700645d19eba65dcdf22acd99a7a8
pythongh-128679: Fix tracemalloc.stop() race conditionshttps://github.com/vstinner/cpython/commit/abed74b355c985a37b200c7b9aa6af70a97f7532
pythongh-128679https://github.com/python/cpython/issues/128679
abed74bhttps://github.com/vstinner/cpython/commit/abed74b355c985a37b200c7b9aa6af70a97f7532
vstinnerhttps://github.com/vstinner
on Jan 18, 2025https://github.com/python/cpython/issues/128679#event-15985984011
pythongh-128679: Skip test_tracemalloc_track_race() on debug buildhttps://github.com/vstinner/cpython/commit/7373ee249640a8164b6ad72306d72ae600408216
pythongh-128679https://github.com/python/cpython/issues/128679
7373ee2https://github.com/vstinner/cpython/commit/7373ee249640a8164b6ad72306d72ae600408216
gh-128679: Skip test_tracemalloc_track_race() on debug build (#128988)https://github.com/python/cpython/commit/9bc19643ed54b2aa8558e87fd3a04e8bd1ea7fb2
gh-128679https://github.com/python/cpython/issues/128679
#128988https://github.com/python/cpython/pull/128988
9bc1964https://github.com/python/cpython/commit/9bc19643ed54b2aa8558e87fd3a04e8bd1ea7fb2
pythongh-128679: Skip test_tracemalloc_track_race() on debug build (p…https://github.com/vstinner/cpython/commit/aa85a7059c79f866326669f11648a4cc539578c1
pythongh-128679https://github.com/python/cpython/issues/128679
p…https://github.com/python/cpython/pull/128988
aa85a70https://github.com/vstinner/cpython/commit/aa85a7059c79f866326669f11648a4cc539578c1
[3.13] gh-128679: Fix tracemalloc.stop() race conditions (#128897)https://github.com/python/cpython/commit/6b47499510e47c0401d1f6cca2660fc12c496e39
gh-128679https://github.com/python/cpython/issues/128679
#128897https://github.com/python/cpython/pull/128897
6b47499https://github.com/python/cpython/commit/6b47499510e47c0401d1f6cca2660fc12c496e39
[3.12] gh-128679: Fix tracemalloc.stop() race conditions (#128897) (#…https://github.com/python/cpython/commit/6df22cbf6049d09f45e214e74345a5159f7e202b
gh-128679https://github.com/python/cpython/issues/128679
#128897https://github.com/python/cpython/pull/128897
#…https://github.com/python/cpython/pull/129022
6df22cbhttps://github.com/python/cpython/commit/6df22cbf6049d09f45e214e74345a5159f7e202b
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jan 19, 2025https://github.com/python/cpython/issues/128679#issuecomment-2600877517
@itamarsthttps://github.com/itamarst
vstinnerhttps://github.com/vstinner
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 19, 2025https://github.com/python/cpython/issues/128679#event-15988973485
https://github.com/itamarst
itamarsthttps://github.com/itamarst
on Jan 19, 2025https://github.com/python/cpython/issues/128679#issuecomment-2600877868
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jan 19, 2025https://github.com/python/cpython/issues/128679#issuecomment-2600877914
@tom-pytelhttps://github.com/tom-pytel
srinivasreddyhttps://github.com/srinivasreddy
on Jan 21, 2025https://github.com/python/cpython/issues/128679#event-16008331660
pythongh-128679: Skip test_tracemalloc_track_race() on debug build (p…https://github.com/srinivasreddy/cpython/commit/e190d1fbaa9bcb968d0fbcb2b758759283936941
pythongh-128679https://github.com/python/cpython/issues/128679
p…https://github.com/python/cpython/pull/128988
e190d1fhttps://github.com/srinivasreddy/cpython/commit/e190d1fbaa9bcb968d0fbcb2b758759283936941
vstinnerhttps://github.com/vstinner
on Jan 21, 2025https://github.com/python/cpython/issues/128679#event-16011643639
pythongh-128679: Use s_PyThreadState_GET() in tracemalloc.chttps://github.com/vstinner/cpython/commit/b8b1d1c1147feadbe5943aa3912633d9361d7b68
pythongh-128679https://github.com/python/cpython/issues/128679
b8b1d1chttps://github.com/vstinner/cpython/commit/b8b1d1c1147feadbe5943aa3912633d9361d7b68
pythongh-128679: Use _PyThreadState_GET() in tracemalloc.chttps://github.com/vstinner/cpython/commit/96146ddfed498303f4b9aa3e73cda16167d64b98
pythongh-128679https://github.com/python/cpython/issues/128679
96146ddhttps://github.com/vstinner/cpython/commit/96146ddfed498303f4b9aa3e73cda16167d64b98
gh-128679: Use _PyThreadState_GET() in tracemalloc.c (#129126)https://github.com/python/cpython/commit/31f149d5b3a5c6cb1160a052c96a35c36f2a27db
gh-128679https://github.com/python/cpython/issues/128679
#129126https://github.com/python/cpython/pull/129126
31f149dhttps://github.com/python/cpython/commit/31f149d5b3a5c6cb1160a052c96a35c36f2a27db
pythongh-128679: Clear the ref trace in _PyTraceMalloc_Stop()https://github.com/vstinner/cpython/commit/14e2553b8e8550a0365289e8530d2d9a06167225
pythongh-128679https://github.com/python/cpython/issues/128679
14e2553https://github.com/vstinner/cpython/commit/14e2553b8e8550a0365289e8530d2d9a06167225
[3.13] gh-128679: Clear the ref tracer in _PyTraceMalloc_Stop() (#129258https://github.com/python/cpython/commit/1ee321b4c0c3d83f5b7becb726a6fcf59de279f5
gh-128679https://github.com/python/cpython/issues/128679
#129258https://github.com/python/cpython/pull/129258
1ee321bhttps://github.com/python/cpython/commit/1ee321b4c0c3d83f5b7becb726a6fcf59de279f5
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/128679
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/128679
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
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.