8307885: com/sun/jdi/ConnectedVMs.java fails with "Invalid debuggee exitValue: 0"#13923
8307885: com/sun/jdi/ConnectedVMs.java fails with "Invalid debuggee exitValue: 0"#13923plummercj wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back cjplummer! A progress list of the required criteria for merging this PR into |
|
@plummercj 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. |
|
/issue add JDK-8307885 |
|
@plummercj This issue is referenced in the PR title - it will now be updated. |
kevinjwalls
left a comment
There was a problem hiding this comment.
Reasonable compromise 8-)
passName doesn't get passed to InstTarg, otherwise it could wait at the end in the "Kill" case, as if we want to see a process exit in response to a SIGTERM, then that process needs to wait around. But tolerating the signal not terminating it due to the race should be reliable also. 8-)
|
@plummercj 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 13 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 |
It would be easy to pass it to InstTarg.main(), but then you still have the issue of how long to sleep() and need to do it for 2 of the 4 tests cases, so it doesn't really help much. |
|
I'm going to push this a bit early since it is creating noise in our tier4 CI. |
|
Thanks for the reviews Kevin and Serguei! /integrate |
|
Going to push as commit 489658d.
Your commit was automatically rebased without conflicts. |
|
@plummercj Pushed as commit 489658d. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
When using -Xcomp, the 5 second sleep in the debuggee main thread is not long enough to guarantee using SIGTERM on the debuggee will make it exit(143) before the main thread exits cleanly with exitValue 0. The easiest solution is to just allow exitValue 0. See the CR for more details on other solutions I rejected.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13923/head:pull/13923$ git checkout pull/13923Update a local copy of the PR:
$ git checkout pull/13923$ git pull https://git.openjdk.org/jdk.git pull/13923/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 13923View PR using the GUI difftool:
$ git pr show -t 13923Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13923.diff
Webrev
Link to Webrev Comment