René's URL Explorer Experiment


Title: test_hashlib fails when run on Free Threading with TSAN · Issue #153201 · python/cpython · GitHub

Open Graph Title: test_hashlib fails when run on Free Threading with TSAN · Issue #153201 · python/cpython

X Title: test_hashlib fails when run on Free Threading with TSAN · Issue #153201 · python/cpython

Description: Crash report TSAN CI job: https://github.com/python/cpython/actions/runs/28747943876/job/85377269260?pr=152717 test_hashlib fails when run on Free Threading with TSAN on the main branch. Commands: export CC=clang export TSAN_OPTIONS="$PW...

Open Graph Description: Crash report TSAN CI job: https://github.com/python/cpython/actions/runs/28747943876/job/85377269260?pr=152717 test_hashlib fails when run on Free Threading with TSAN on the main branch. Commands: ...

X Description: Crash report TSAN CI job: https://github.com/python/cpython/actions/runs/28747943876/job/85377269260?pr=152717 test_hashlib fails when run on Free Threading with TSAN on the main branch. Commands: ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_hashlib fails when run on Free Threading with TSAN","articleBody":"# Crash report\n\nTSAN CI job: https://github.com/python/cpython/actions/runs/28747943876/job/85377269260?pr=152717\n\ntest_hashlib fails when run on Free Threading with TSAN on the main branch.\n\nCommands:\n\n```\nexport CC=clang\nexport TSAN_OPTIONS=\"$PWD/log_path=san_log suppressions=$PWD/Tools/tsan/suppressions_free_threading.txt handle_segv=0\"\n\n./configure --config-cache --with-thread-sanitizer --with-pydebug --disable-gil\nmake -j4\n./python -m test --tsan-parallel --parallel-threads=4 -j4 -W --timeout=600 --slowest\n```\n\nTests output (truncated):\n\n```\nUsing random seed: 1463135961\n0:00:00 load avg: 2.65 mem: 267.1 MiB Run 2 tests in parallel using 2 worker processes (timeout: 10 min, worker timeout: 15 min)\n0:00:06 load avg: 2.76 mem: 611.2 MiB [1/2] test_abc passed\n0:00:14 load avg: 2.78 mem: 278.3 MiB [2/2/1] test_hashlib worker non-zero exit code (Exit code 66)\ntest_algorithms_available (test.test_hashlib.HashLibTestCase.test_algorithms_available) [threads=4] ... ok\ntest_algorithms_guaranteed (test.test_hashlib.HashLibTestCase.test_algorithms_guaranteed) [threads=4] ... ok\n(...)\ntest_scrypt_types (test.test_hashlib.TestScrypt.test_scrypt_types) [threads=4] ... ok\ntest_scrypt_validate (test.test_hashlib.TestScrypt.test_scrypt_validate) [threads=4] ... ok\n\n----------------------------------------------------------------------\nRan 88 tests in 9.698s\n\nOK (skipped=56)\n\n== Tests result: FAILURE ==\n```\n\nTSAN logs (truncated):\n\n```\nWARNING: ThreadSanitizer: data race (pid=30628)\n  Read of size 8 at 0x721c0000e3a8 by thread T456:\n    #0 memcmp \u003cnull\u003e (python+0x10d49e) (BuildId: 5899a6ff881ea0db9e292325f4f3bbeaba9715e6)\n    #1 \u003cnull\u003e \u003cnull\u003e (libcrypto.so.3+0x24f2d1) (BuildId: 6608be85412b580cc4873b0421a014a9cc2a7b41)\n    #2 pbkdf2_hmac /home/runner/work/cpython/cpython/./Modules/clinic/_hashopenssl.c.h:1490:20 (_hashlib.cpython-316td-x86_64-linux-gnu.so+0x7299) (BuildId: 1c2fdd533a623cb5e65ca60ec9662a58487ffb8b)\n\n  Previous write of size 8 at 0x721c0000e3a8 by thread T454 (mutexes: write M0, write M1):\n    #0 memcpy \u003cnull\u003e (python+0xfc022) (BuildId: 5899a6ff881ea0db9e292325f4f3bbeaba9715e6)\n    #1 \u003cnull\u003e \u003cnull\u003e (libcrypto.so.3+0x24f0e6) (BuildId: 6608be85412b580cc4873b0421a014a9cc2a7b41)\n    #2 pbkdf2_hmac /home/runner/work/cpython/cpython/./Modules/clinic/_hashopenssl.c.h:1490:20 (_hashlib.cpython-316td-x86_64-linux-gnu.so+0x7299) (BuildId: 1c2fdd533a623cb5e65ca60ec9662a58487ffb8b)\n\n  Mutex M0 (0x721000000500) created at:\n    #0 pthread_rwlock_init \u003cnull\u003e (python+0x103e6e) (BuildId: 5899a6ff881ea0db9e292325f4f3bbeaba9715e6)\n    #1 CRYPTO_THREAD_lock_new \u003cnull\u003e (libcrypto.so.3+0x275485) (BuildId: 6608be85412b580cc4873b0421a014a9cc2a7b41)\n    #2 CRYPTO_THREAD_run_once \u003cnull\u003e (libcrypto.so.3+0x27556c) (BuildId: 6608be85412b580cc4873b0421a014a9cc2a7b41)\n    #3 run_exec_func /home/runner/work/cpython/cpython/Objects/moduleobject.c:707:15 (python+0x374a4a) (BuildId: 5899a6ff881ea0db9e292325f4f3bbeaba9715e6)\n\n  Mutex M1 (0x7210000008c0) created at:\n    #0 pthread_rwlock_init \u003cnull\u003e (python+0x103e6e) (BuildId: 5899a6ff881ea0db9e292325f4f3bbeaba9715e6)\n    #1 CRYPTO_THREAD_lock_new \u003cnull\u003e (libcrypto.so.3+0x275485) (BuildId: 6608be85412b580cc4873b0421a014a9cc2a7b41)\n    #2 CRYPTO_THREAD_run_once \u003cnull\u003e (libcrypto.so.3+0x27556c) (BuildId: 6608be85412b580cc4873b0421a014a9cc2a7b41)\n    #3 run_exec_func /home/runner/work/cpython/cpython/Objects/moduleobject.c:707:15 (python+0x374a4a) (BuildId: 5899a6ff881ea0db9e292325f4f3bbeaba9715e6)\n```\n\nFull TSAN logs: [tsan_full.log](https://github.com/user-attachments/files/29707099/tsan_full.log).","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-07-06T14:26:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/153201/cpython/issues/153201"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7a513424-7296-1ba6-9bdd-5e5600f26662
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8518:6EB9C:DF5A3:137321:6A4DBA61
html-safe-nonce0e78e129975dc3e5957a57de6020daae88c510e20628e042ea9f092bfe8d5cd5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTE4OjZFQjlDOkRGNUEzOjEzNzMyMTo2QTREQkE2MSIsInZpc2l0b3JfaWQiOiI3MTM5OTE5NDk4MjUzODEwMjczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac54b9b2925313596107c0c6ea37ce1ede0117e6b53b812eff833ce09604085fe9
hovercard-subject-tagissue:4820076235
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/153201/issue_layout
twitter:imagehttps://opengraph.githubassets.com/14abe7f97d0d171c1bc8c5d81c242b3050f3fbfcf923392cd1105368673656cb/python/cpython/issues/153201
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/14abe7f97d0d171c1bc8c5d81c242b3050f3fbfcf923392cd1105368673656cb/python/cpython/issues/153201
og:image:altCrash report TSAN CI job: https://github.com/python/cpython/actions/runs/28747943876/job/85377269260?pr=152717 test_hashlib fails when run on Free Threading with TSAN on the main branch. Commands: ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
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
release32f7b614aca06e6bbd89842b1370df1328264f68
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/153201#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F153201
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F153201
Sign up https://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/153201
Reloadhttps://github.com/python/cpython/issues/153201
Reloadhttps://github.com/python/cpython/issues/153201
Please reload this pagehttps://github.com/python/cpython/issues/153201
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/153201
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
test_hashlib fails when run on Free Threading with TSANhttps://github.com/python/cpython/issues/153201#top
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%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/vstinner
vstinnerhttps://github.com/vstinner
on Jul 6, 2026https://github.com/python/cpython/issues/153201#issue-4820076235
https://github.com/python/cpython/actions/runs/28747943876/job/85377269260?pr=152717https://github.com/python/cpython/actions/runs/28747943876/job/85377269260?pr=152717
tsan_full.loghttps://github.com/user-attachments/files/29707099/tsan_full.log
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%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.