Skip to content
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

JDK-8254920: Application launched with jpackage produced .exe crashes JVM #940

Closed
wants to merge 3 commits into from

Conversation

andyherrick
Copy link

@andyherrick andyherrick commented Oct 29, 2020

JVM


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Testing

Linux x64 Linux x86 Windows x64 macOS x64
Build ✔️ (5/5 passed) ✔️ (2/2 passed) ✔️ (2/2 passed) ✔️ (2/2 passed)
Test (tier1) ✔️ (9/9 passed) ✔️ (9/9 passed) ✔️ (9/9 passed) ✔️ (9/9 passed)

Issue

  • JDK-8254920: Application launched with jpackage produced .exe crashes JVM

Reviewers

Download

$ git fetch https://git.openjdk.java.net/jdk pull/940/head:pull/940
$ git checkout pull/940

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 29, 2020

👋 Welcome back herrick! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Oct 29, 2020

@andyherrick The following label will be automatically applied to this pull request:

  • core-libs

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.

@openjdk openjdk bot added the core-libs core-libs-dev@openjdk.org label Oct 29, 2020
@andyherrick andyherrick changed the title JDK-8254920: Application launched with jpackage produced .exe crashes JDK-8254920: Application launched with jpackage produced .exe crashes JVM Oct 29, 2020
@andyherrick andyherrick marked this pull request as ready for review October 29, 2020 17:42
@openjdk openjdk bot added the rfr Pull request is ready for review label Oct 29, 2020
@mlbridge
Copy link

mlbridge bot commented Oct 29, 2020

Webrevs

@@ -273,7 +273,8 @@ public static void executeLauncherAndVerifyOutput(JPackageCommand cmd,
String... args) {
AppOutputVerifier av = getVerifier(cmd, args);
if (av != null) {
av.executeAndVerifyOutput(args);
// when running app launchers, clear users environment
Copy link
Member

@alexeysemenyukoracle alexeysemenyukoracle Oct 29, 2020

Choose a reason for hiding this comment

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

How about executeLauncher() method? It will not clear the environment.
I'd adjust getVerifier() method instead and store flag to clear launcher environment in JPackageCommand instanceinstead.
Something like this:

public JPackageCommand JPackageCommand.setClearLauncherEnv(boolean value) {
  clearLauncherEnv = value;
  return this;
}

boolean JPackageCommand.getClearLauncherEnv() {
  return clearLauncherEnv;
}

AppOuputVerifier.setClearLauncherEnv(boolean value) {
  clearLauncherEnv = value;
}

AppOuputVerifier HelloApp.getVerifier(JPackageCommand cmd, String... args) {
  AppOuputVerifier reply = ...;
  reply.setClearLauncherEnv(cmd.getClearLauncherEnv());
  return reply;
}

Copy link
Member

@azuev-java azuev-java left a comment

Choose a reason for hiding this comment

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

Looks good.

@openjdk
Copy link

openjdk bot commented Nov 5, 2020

@andyherrick 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:

8254920: Application launched with jpackage produced .exe crashes JVM

Reviewed-by: asemenyuk, almatvee, kizune

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 4 new commits pushed to the master branch:

  • e66fd6f: 8255756: Disabling logging does unnecessary work
  • 140c162: 8255894: Remove unused StubRoutines::_zero_aligned_words
  • fc894ab: 8255955: Shenandoah: Only STW GC should process concurrent roots at pauses
  • d6f0940: 8255913: Decrease number of iterations in TestMaxCachedBufferSize

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
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 master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Nov 5, 2020
@andyherrick
Copy link
Author

/integrate

@openjdk openjdk bot closed this Nov 6, 2020
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Nov 6, 2020
@openjdk
Copy link

openjdk bot commented Nov 6, 2020

@andyherrick Since your change was applied there have been 8 commits pushed to the master branch:

  • 5dfb42f: 8255563: Missing NULL checks after JDK-8233624
  • e730e8b: 8241806: The sun/awt/shell/FileSystemViewMemoryLeak.java is unstable
  • 57b98fa: 8255965: LogCompilation: add sort by nmethod code size
  • e42c134: 8255706: The JDWP debug agent unecessarily checks for JVMTI_ERROR_INTERRUPT after calling RawMonitorEnter
  • e66fd6f: 8255756: Disabling logging does unnecessary work
  • 140c162: 8255894: Remove unused StubRoutines::_zero_aligned_words
  • fc894ab: 8255955: Shenandoah: Only STW GC should process concurrent roots at pauses
  • d6f0940: 8255913: Decrease number of iterations in TestMaxCachedBufferSize

Your commit was automatically rebased without conflicts.

Pushed as commit 952abea.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

openjdk-notifier bot referenced this pull request Nov 6, 2020
@andyherrick andyherrick deleted the JDK-8254920 branch November 13, 2020 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs core-libs-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

4 participants