Title: Add support for thread sanitizer (TSAN) via `--with-thread-sanitizer` · Issue #112536 · python/cpython · GitHub
Open Graph Title: Add support for thread sanitizer (TSAN) via `--with-thread-sanitizer` · Issue #112536 · python/cpython
X Title: Add support for thread sanitizer (TSAN) via `--with-thread-sanitizer` · Issue #112536 · python/cpython
Description: Feature or enhancement GCC and Clang provide ThreadSanitizer, a tool that detects data races. We should add support for thread sanitizer to CPython. Note that Python already supports the memory and address sanitizers. Add --with-thread-s...
Open Graph Description: Feature or enhancement GCC and Clang provide ThreadSanitizer, a tool that detects data races. We should add support for thread sanitizer to CPython. Note that Python already supports the memory and...
X Description: Feature or enhancement GCC and Clang provide ThreadSanitizer, a tool that detects data races. We should add support for thread sanitizer to CPython. Note that Python already supports the memory and...
Opengraph URL: https://github.com/python/cpython/issues/112536
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for thread sanitizer (TSAN) via `--with-thread-sanitizer`","articleBody":"# Feature or enhancement\n\nGCC and Clang provide ThreadSanitizer, a tool that detects data races. We should add support for thread sanitizer to CPython. Note that Python already supports the memory and address sanitizers.\n\n* Add `--with-thread-sanitizer` as a configure option\n* Define `_Py_THREAD_SANITIZER` if thread-sanitizer is enabled (see, e.g., `_Py_ADDRESS_SANITIZER` in `pyport.h`)\n* Move the definition of `_Py_NO_SANITIZE_THREAD` from `obmalloc.c` to a place that's more widely available (like `pyport.h`). We're going to need this in a few places\n\nEventually, it would be helpful to have a continuous build for the combination of `--disable-gil --with-thread-sanitizer`. Note that we probably won't want to run all the tests. ThreadSanitizer is slow and also not very useful for single-threaded tests. We should collect a subset of our tests that use threading for the ThreadSanitizer continuous build.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-112648\n* gh-113232\n* gh-116555\n* gh-116558\n* gh-116601\n* gh-116872\n* gh-116896\n* gh-116898\n* gh-116911\n* gh-116924\n* gh-116926\n* gh-116929\n* gh-116953\n* gh-117702\n* gh-117713\n* gh-123833\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2023-11-29T20:02:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/112536/cpython/issues/112536"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2bd829f3-611c-33e0-7cdd-ba0df7539a55 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C786:115883:38667:48A44:696B31D4 |
| html-safe-nonce | eb5a7b24c4a044d561d7c1578f9448b65916981981924ef306338773e5d8fd11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzg2OjExNTg4MzozODY2Nzo0OEE0NDo2OTZCMzFENCIsInZpc2l0b3JfaWQiOiI0MDY1MzkwOTQwNjMxMjgyMTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 134624cfabaec4a5f78fab2fdc6bff3d30842cda2ffea6d4f9eda376e14e470a |
| hovercard-subject-tag | issue:2017329953 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/112536/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f3269d5edfd06fafd7451d9f65a1f68ad41c9133fc3ccffa1b20c47c90224964/python/cpython/issues/112536 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f3269d5edfd06fafd7451d9f65a1f68ad41c9133fc3ccffa1b20c47c90224964/python/cpython/issues/112536 |
| og:image:alt | Feature or enhancement GCC and Clang provide ThreadSanitizer, a tool that detects data races. We should add support for thread sanitizer to CPython. Note that Python already supports the memory and... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width