René's URL Explorer Experiment


Title: Build Failure in posixmodule.c with Clang, ThreadSanitizer, and free-threaded build enabled · Issue #140159 · python/cpython · GitHub

Open Graph Title: Build Failure in posixmodule.c with Clang, ThreadSanitizer, and free-threaded build enabled · Issue #140159 · python/cpython

X Title: Build Failure in posixmodule.c with Clang, ThreadSanitizer, and free-threaded build enabled · Issue #140159 · python/cpython

Description: Description: A build failure occurs in Modules/posixmodule.c when compiling CPython from the main branch using Clang with ThreadSanitizer and the --disable-gil flag. The compilation fails with two distinct types of errors: The compiler r...

Open Graph Description: Description: A build failure occurs in Modules/posixmodule.c when compiling CPython from the main branch using Clang with ThreadSanitizer and the --disable-gil flag. The compilation fails with two ...

X Description: Description: A build failure occurs in Modules/posixmodule.c when compiling CPython from the main branch using Clang with ThreadSanitizer and the --disable-gil flag. The compilation fails with two ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build Failure in posixmodule.c with Clang, ThreadSanitizer, and free-threaded build enabled","articleBody":"**Description:**\n\nA build failure occurs in `Modules/posixmodule.c` when compiling CPython from the `main` branch using Clang with ThreadSanitizer and the `--disable-gil` flag.\n\nThe compilation fails with two distinct types of errors:\n1.  The compiler reports that the `statx` struct has no member named `stx_atomic_write_unit_max_opt`. This error originates from the `MM` macro expansion within the `pystatx_result_members` definition.\n2.  Subsequently, multiple errors are reported for an invalid application of `sizeof` to an incomplete type `PyMemberDef[]`. This happens when the `Py_ARRAY_LENGTH` macro is used on `pystatx_result_members`, indicating that the array's definition was not completed due to the initial error.\n\nThis suggests that the feature detection or conditional compilation logic for the `stx_atomic_write_unit_max_opt` member is not functioning correctly under this specific build configuration.\n\n**Steps to Reproduce:**\n1.  Check out the `main` branch of cpython.\n2.  Configure the build with the following command:\n    ```sh\n    CC=clang CXX=clang++ ./configure --with-thread-sanitizer --with-pydebug --disable-gil\n    ```\n3.  Run the build:\n    ```sh\n    make\n    ```\n\n**Expected Behavior:**\nThe build process should complete successfully.\n\n**Actual Behavior:**\nThe build fails with the following errors logged from `Modules/posixmodule.c`:\n\n```\n../Modules/posixmodule.c:3369:5: error: no member named 'stx_atomic_write_unit_max_opt' in 'statx'\n3369 |     MM(stx_atomic_write_unit_max_opt, Py_T_UINT, atomic_write_unit_max_opt,\n|     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n3370 |         \"maximum optimized size for direct I/O with torn-write protection\"),\n|         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n./Modules/posixmodule.c:3325:20: note: expanded from macro 'MM'\n3325 |     M(#attr, type, offsetof(Py_statx_result, stx.stx_##member), doc)\n|     ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/usr/lib/llvm-20/lib/clang/20/include/__stddef_offsetof.h:16:24: note: expanded from macro 'offsetof'\n16 | #define offsetof(t, d) __builtin_offsetof(t, d)\n|                        ^\n./Modules/posixmodule.c:3323:18: note: expanded from macro 'M'\n3323 |     {attr, type, offset, Py_READONLY, PyDoc_STR(doc)}\n|                  ^~~~~~\n./Modules/posixmodule.c:3427:28: error: invalid application of 'sizeof' to an incomplete type 'PyMemberDef[]' (aka 'struct PyMemberDef[]')\n3427 |     for (size_t i = 0; i \u003c Py_ARRAY_LENGTH(pystatx_result_members) - 1; ++i) {\n|                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n./Include/pymacro.h:190:12: note: expanded from macro 'Py_ARRAY_LENGTH'\n190 |     (sizeof(array) / sizeof((array)[0]))\n|            ^~~~~~~\n./Modules/posixmodule.c:3447:9: error: invalid application of 'sizeof' to an incomplete type 'PyMemberDef[]' (aka 'struct PyMemberDef[]')\n3447 |     if (Py_ARRAY_LENGTH(pystatx_result_members) \u003e 1\n|         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n./Include/pymacro.h:190:12: note: expanded from macro 'Py_ARRAY_LENGTH'\n190 |     (sizeof(array) / sizeof((array)[0]))\n|            ^~~~~~~\n```\n\n**Environment:**\n*   **Compiler:** Clang\n*   **Configuration Flags:** `--with-thread-sanitizer --with-pydebug --disable-gil`","author":{"url":"https://github.com/ashm-dev","@type":"Person","name":"ashm-dev"},"datePublished":"2025-10-15T14:06:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/140159/cpython/issues/140159"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8b9ef99f-9192-4b46-b739-4453e3883822
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB1B6:6DA0E:2C7C58:3DD276:6A5517C2
html-safe-noncede819c285adf7b702cc3783b829dbe114d24bf6985df2919e31dc721ef493450
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUI2OjZEQTBFOjJDN0M1ODozREQyNzY6NkE1NTE3QzIiLCJ2aXNpdG9yX2lkIjoiMTA4MjMyMjA4ODEwOTYxMDk0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace57b775362043502e3a758839f46c0dbec688b452ad00b90b0f609003ebba12c
hovercard-subject-tagissue:3518220433
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/140159/issue_layout
twitter:imagehttps://opengraph.githubassets.com/997137bff172b112396b5c0f3d49c70ea14b863bebe07c05b0954c03ea275c4f/python/cpython/issues/140159
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/997137bff172b112396b5c0f3d49c70ea14b863bebe07c05b0954c03ea275c4f/python/cpython/issues/140159
og:image:altDescription: A build failure occurs in Modules/posixmodule.c when compiling CPython from the main branch using Clang with ThreadSanitizer and the --disable-gil flag. The compilation fails with two ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameashm-dev
hostnamegithub.com
expected-hostnamegithub.com
None682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5
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
release3b6d37c6470adadff4194742daaab9a817cc4980
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/140159#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F140159
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2F140159
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/140159
Reloadhttps://github.com/python/cpython/issues/140159
Reloadhttps://github.com/python/cpython/issues/140159
Please reload this pagehttps://github.com/python/cpython/issues/140159
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/140159
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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
#83714https://github.com/python/cpython/issues/83714
#83714https://github.com/python/cpython/issues/83714
Build Failure in posixmodule.c with Clang, ThreadSanitizer, and free-threaded build enabledhttps://github.com/python/cpython/issues/140159#top
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/ashm-dev
ashm-devhttps://github.com/ashm-dev
on Oct 15, 2025https://github.com/python/cpython/issues/140159#issue-3518220433
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%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.