Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-123014: Disable pidfd API on older Android versions#124458

Merged
vstinner merged 2 commits into
python:mainpython/cpython:mainfrom
mhsmith:android-pidfdmhsmith/cpython:android-pidfdCopy head branch name to clipboard
Sep 25, 2024
Merged

gh-123014: Disable pidfd API on older Android versions#124458
vstinner merged 2 commits into
python:mainpython/cpython:mainfrom
mhsmith:android-pidfdmhsmith/cpython:android-pidfdCopy head branch name to clipboard

Conversation

@mhsmith

@mhsmith mhsmith commented Sep 24, 2024

Copy link
Copy Markdown
Member

Since these system calls may cause a crash, we disable them at build time.

@mhsmith

mhsmith commented Sep 24, 2024

Copy link
Copy Markdown
Member Author

!buildbot android

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @mhsmith for commit c8568d0 🤖

The command will test the builders whose names match following regular expression: android

The builders matched are:

  • AMD64 Android PR
  • aarch64 Android PR

@mhsmith mhsmith requested a review from vstinner September 24, 2024 20:29

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@freakboy3742 freakboy3742 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense to me; one note inline about documentation.

@@ -0,0 +1,3 @@
:func:`os.pidfd_open` and :func:`signal.pidfd_send_signal` are now

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do these methods need addition annotations in the docs to highlight that they're not available?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah right, you can write "Android (API level 31 and newer)" in "Availability" of the modified functions.

@bedevere-app

bedevere-app Bot commented Sep 25, 2024

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.

@mhsmith

mhsmith commented Sep 25, 2024

Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again.

@bedevere-app

bedevere-app Bot commented Sep 25, 2024

Copy link
Copy Markdown

Thanks for making the requested changes!

@freakboy3742, @vstinner: please review the changes made to this pull request.

@freakboy3742 freakboy3742 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM - thanks for the doc update!

@vstinner vstinner merged commit c58c572 into python:main Sep 25, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @mhsmith for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @mhsmith and @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker c58c572a65eb5b93d054e779df289e975a0b9864 3.13

@vstinner

Copy link
Copy Markdown
Member

Merged, thanks.

Ah. The automated backport to 3.13 failed. @mhsmith: If you want this fix in 3.13, can you try to backport the change manually (using git cherry-pick -x)?

mhsmith added a commit to mhsmith/cpython that referenced this pull request Sep 25, 2024
@bedevere-app

bedevere-app Bot commented Sep 25, 2024

Copy link
Copy Markdown

GH-124543 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Sep 25, 2024
Yhg1s pushed a commit that referenced this pull request Sep 26, 2024
) (#124543)

gh-123014: Disable pidfd API on older Android versions (#124458)

(cherry picked from commit c58c572)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"disallowed arm64 system call" crashes on Android API levels 26-30

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.