GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-143632: Disable PR_SET_VMA_ANON_NAME on musl libc by priyanshu2282-cyber · Pull Request #143730 · python/cpython

Conversation

@priyanshu2282-cyber

@priyanshu2282-cyber priyanshu2282-cyber commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

On Alpine Linux (musl libc), enabling PR_SET_VMA_ANON_NAME can cause build failures due to redefinition of
struct prctl_mm_map.
musl libc redefines this struct in sys/prctl.h, which conflicts with linux/prctl.h. The configure check for PR_SET_VMA_ANON_NAME is not realiable on musl and may pass on
some architectures but fail later during build.
This change disables the feature detection on musl to avoid the header conflict and keep the build behavior consistent.
Note: configure was not regenerated locally since CPython
does not support autoreconf on macOS.

Fixes gh-143632.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@priyanshu2282-cyber
Disable PR_SET_VMA_ANON_NAME on musl
cb78432
@priyanshu2282-cyber
priyanshu2282-cyber requested review from AA-Turner, corona10, emmatyping and erlend-aasland as code owners January 12, 2026 13:54
@bedevere-app

bedevere-app Bot commented Jan 12, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot mentioned this pull request Jan 12, 2026
failure building Python 3.15.0a3 through 3.15.0 release on Alpine #143632
Open
@bedevere-app bedevere-app Bot added the awaiting review label Jan 12, 2026
corona10
corona10 requested changes Jan 13, 2026
View reviewed changes

@corona10 corona10 left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: configure was not regenerated locally since CPython
does not support autoreconf on macOS.

Would you like to run make regen-configure
It will run based on container.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-app bedevere-app Bot added awaiting changes and removed awaiting review labels Jan 13, 2026
@bedevere-app

bedevere-app Bot commented Jan 13, 2026

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@corona10 corona10 self-assigned this Jan 13, 2026
@priyanshu2282-cyber

priyanshu2282-cyber commented Jan 13, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for pointing this out, sure I’m happy to run it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@priyanshu2282-cyber
priyanshu2282-cyber requested a review from corona10 January 13, 2026 14:08
@picnixz

picnixz commented Jan 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

The configure script is still not updated. Please do so. And only request reviews when the CI is green again.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@priyanshu2282-cyber

priyanshu2282-cyber commented Jan 13, 2026

Copy link
Copy Markdown
Contributor Author

I tried to regenerate configure using a container-based approach, but I couldn’t find a supported workflow or make target for this checkout. It may be easier if configure is regenerated on your side. Please let me know if there are any specific commands you would like me to try.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@corona10
regen configure
6085ddf
@bedevere-app

bedevere-app Bot commented Jan 14, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@corona10 corona10 added the skip news label Jan 14, 2026
corona10
corona10 approved these changes Jan 14, 2026
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting changes labels Jan 14, 2026
@corona10
corona10 enabled auto-merge (squash) January 14, 2026 17:33
@corona10
corona10 merged commit 14f96a8 into python:main Jan 14, 2026
45 of 47 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting merge label Jan 14, 2026
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
@priyanshu2282-cyber @thunder-coding
pythongh-143632: Disable PR_SET_VMA_ANON_NAME on musl libc (pythongh-…
1a472c2
…143730)
@vstinner

vstinner commented Apr 8, 2026

Copy link
Copy Markdown
Member

The fix added AS_IF([test "$ac_cv_libc" != musl], [...]) to configure.ac, but $ac_cv_libc is unset (empty string) on Alpine Linux or on Fedora using CC=musl-gcc. I don't see what is supposed to set $ac_cv_libc.

@priyanshu2282-cyber: Did you test your change on Alpine Linux?

It explains this comment on the issue:

The fix was applied to a6, a7, and a8, but it doesn't seem to be working since the failure is still happening.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner vstinner mentioned this pull request Apr 8, 2026
test_threading.test_recursion_limit() does crash (segfault) on Alpine Linux (musl) #148260
Closed
@serhiy-storchaka serhiy-storchaka mentioned this pull request Oct 20, 2026
configure: the musl guard for PR_SET_VMA_ANON_NAME tests an unset variable #159885
Closed
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Oct 20, 2026
@serhiy-storchaka @claude
pythongh-143632: Fix the musl check for PR_SET_VMA_ANON_NAME
dd58805
The guard added by pythongh-143730 tested $ac_cv_libc, which is never set, so the
check always ran and the build could fail on the struct prctl_mm_map
redefinition it was meant to avoid.  Match on the host triplet instead.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
serhiy-storchaka added a commit that referenced this pull request Oct 20, 2026
@serhiy-storchaka @claude
gh-143632: Fix the musl check for PR_SET_VMA_ANON_NAME (GH-159886)
f37e821
The guard added by gh-143730 tested $ac_cv_libc, which is never set, so the
check always ran and the build could fail on the struct prctl_mm_map
redefinition it was meant to avoid.  Match on the host triplet instead.

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@miss-islington miss-islington mentioned this pull request Oct 20, 2026
[3.15] gh-143632: Fix the musl check for PR_SET_VMA_ANON_NAME (GH-159886) #159919
Merged
serhiy-storchaka added a commit that referenced this pull request Oct 20, 2026
@miss-islington @serhiy-storchaka @claude
[3.15] gh-143632: Fix the musl check for PR_SET_VMA_ANON_NAME (GH-159886
eb9ec94
) (GH-159919)

The guard added by gh-143730 tested $ac_cv_libc, which is never set, so the
check always ran and the build could fail on the struct prctl_mm_map
redefinition it was meant to avoid.  Match on the host triplet instead.
(cherry picked from commit f37e821)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@corona10 corona10 corona10 approved these changes
@erlend-aasland erlend-aasland Awaiting requested review from erlend-aasland erlend-aasland is a code owner
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
@emmatyping emmatyping Awaiting requested review from emmatyping emmatyping is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@corona10 corona10

Labels

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

failure building Python 3.15.0a3 through 3.15.0 release on Alpine

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@priyanshu2282-cyber @picnixz @vstinner @corona10
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.