-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8325567: jspawnhelper without args fails with segfault #18074
Conversation
👋 Welcome back vpetko! A progress list of the required criteria for merging this PR into |
Manual test:
Running older java with a new jspawnhelper will result in the following output:
|
Would it be possible to expand a bit on what is going on here? Are you saying that in the course of upgrading a JDK that you somehow get into a state where jspawnhelper has been replaced with a version from a newer JDK? Is the real issue here that the upgrade didn't shutdown the application and/or something copied over an existing installation during the upgrade? |
It appears that answer is yes (in Debian and Ubuntu) if the machine is running unattended-upgrades service and openjdk is not blacklisted from upgrades. |
This MR fixes segsegv in jspawnhelper when it is called without args.
This scenario happens when a long running Java process is not restarted during upgrade.
It updates test/jdk/java/lang/ProcessBuilder/JspawnhelperProtocol.java to check that jspawnhelper exits with code 1:
After test update:
After jspawnhelper change the test passes:
The user will see the following output in the logs:
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18074/head:pull/18074
$ git checkout pull/18074
Update a local copy of the PR:
$ git checkout pull/18074
$ git pull https://git.openjdk.org/jdk.git pull/18074/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18074
View PR using the GUI difftool:
$ git pr show -t 18074
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18074.diff
Webrev
Link to Webrev Comment