-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8276651: java/lang/ProcessHandle tests fail with "RuntimeException: Input/output error" in java.lang.ProcessHandleImpl$Info.info0 #9946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ception: Input/output error" If the pid is invalid, errno == EIO(5), the information returned is empty and no exception is thrown
|
👋 Welcome back rriggs! A progress list of the required criteria for merging this PR into |
|
/issue 8273773 |
|
@RogerRiggs Command syntax:
Some examples:
If issues are specified only by their ID, the title will be automatically retrieved from JBS. The project prefix ( |
|
@RogerRiggs The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
Hello Roger,
The There's one another call to sysctl in |
|
The failing tests don't implicate the sysctl at 191 so I'm cautious about changing the code in that case. |
|
Thank you for that detail, Roger. The change looks fine to me. |
|
/integrate |
|
@RogerRiggs This pull request has not yet been marked as ready for integration. |
|
@RogerRiggs This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 62 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
Going to push as commit d24b7b7.
Your commit was automatically rebased without conflicts. |
|
@RogerRiggs Pushed as commit d24b7b7. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
On Mac OS X on aarch64, the timing of the sysctl vs the process life (pid) can be such that the sysctl returns EIO.
The native implementation is modified to treat EIO the same as EINVAL, leaving the information to be returned empty.
Several tests in java/lang/ProcessHandle failed with the same cause including OnExitTest, InfoTest, and TreeTest.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/9946/head:pull/9946$ git checkout pull/9946Update a local copy of the PR:
$ git checkout pull/9946$ git pull https://git.openjdk.org/jdk pull/9946/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 9946View PR using the GUI difftool:
$ git pr show -t 9946Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/9946.diff