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

8292695: SIGQUIT and jcmd attaching mechanism does not work with signal chaining library #834

Closed
wants to merge 3 commits into from

Conversation

GoeLin
Copy link
Member

@GoeLin GoeLin commented Oct 25, 2022

Resolved signals_posix.cpp because test for do_check is not in 17.
That was added by 8283337: Posix signal handler modification warning triggering incorrectly
I add 8283337 to this backport as it is subsumed by 8292695.

Resolved os.cpp due to context.
Context was changed by "8269466: Factor out the common code for initializing and starting internal VM JavaThreads"


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issues

  • JDK-8292695: SIGQUIT and jcmd attaching mechanism does not work with signal chaining library
  • JDK-8283337: Posix signal handler modification warning triggering incorrectly

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev pull/834/head:pull/834
$ git checkout pull/834

Update a local copy of the PR:
$ git checkout pull/834
$ git pull https://git.openjdk.org/jdk17u-dev pull/834/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 834

View PR using the GUI difftool:
$ git pr show -t 834

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/834.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 25, 2022

👋 Welcome back goetz! 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 openjdk bot changed the title Backport 45ff10cc68296c7c73d0eafe6fcc9946ab98267e 8292695: SIGQUIT and jcmd attaching mechanism does not work with signal chaining library Oct 25, 2022
@openjdk
Copy link

openjdk bot commented Oct 25, 2022

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport rfr Pull request is ready for review labels Oct 25, 2022
@GoeLin
Copy link
Member Author

GoeLin commented Oct 25, 2022

/issue add 8283337

@openjdk
Copy link

openjdk bot commented Oct 25, 2022

@GoeLin
Adding additional issue to issue list: 8283337: Posix signal handler modification warning triggering incorrectly.

@mlbridge
Copy link

mlbridge bot commented Oct 25, 2022

Webrevs

@GoeLin
Copy link
Member Author

GoeLin commented Oct 25, 2022

Pre-submit test: timeout of javac

@caoman
Copy link
Contributor

caoman commented Oct 29, 2022

Thanks for the backport. Looks like https://bugs.openjdk.org/browse/JDK-8292695 didn't have "jdk17u-fix-request", and I just added the label.

The change to HotSpot looks good, but should we also include the TestBreakSignalThreadDump.java test in the backport?

@GoeLin
Copy link
Member Author

GoeLin commented Oct 30, 2022

Hi,
Thanks for looking at my change!
I removed the label again. It is not yet ready for labeling. The label should only be applied once the change is ready. Here the review is still missing.
You are right, I forgot the test. I will add it.
Best regards,
Goetz

Copy link
Contributor

@caoman caoman left a comment

Choose a reason for hiding this comment

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

Thanks for the update. LGTM now. Not an official Reviewer though.

Copy link
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

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

Looks basically good. Only one comment change is missing.

@@ -1246,7 +1241,8 @@ void set_signal_handler(int sig, bool do_check = true) {

// Save handler setup for later checking
Copy link
Contributor

Choose a reason for hiding this comment

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

JDK-8283337 changed this comment to: // Save handler setup for possible later checking

Copy link
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

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

Thumbs up! Thanks for backporting!

@openjdk
Copy link

openjdk bot commented Nov 2, 2022

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

8292695: SIGQUIT and jcmd attaching mechanism does not work with signal chaining library
8283337: Posix signal handler modification warning triggering incorrectly

Reviewed-by: manc, mdoerr

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

  • e609398: 8287011: Improve container information
  • d5fedc5: 8244670: convert clhsdb "whatis" command from javascript to java
  • 5fa5392: 8273578: javax/swing/JMenu/4515762/bug4515762.java fails on macOS 12
  • 0698930: 8295288: Some vm_flags tests associate with a wrong BugID
  • 9fd15d5: 8233648: [TESTBUG] DefaultMenuBarTest.java failing on macos
  • 6a45f75: 8280948: Write a regression test for JDK-4659800
  • aa98d09: 8291456: com/sun/jdi/ClassUnloadEventTest.java failed with: Wrong number of class unload events: expected 10 got 4
  • 9732004: 8292879: com/sun/jdi/ClassUnloadEventTest.java failed due to classes not unloading
  • 8194120: 8292880: Improve debuggee logging for com/sun/jdi/ClassUnloadEventTest.java
  • 5977ce5: 8288302: Shenandoah: SIGSEGV in vm maybe related to jit compiling xerces
  • ... and 13 more: https://git.openjdk.org/jdk17u-dev/compare/cb9289ed7589e2cfbe8ac21ab6f3039ee09216ea...master

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 2, 2022
@GoeLin
Copy link
Member Author

GoeLin commented Nov 3, 2022

/integrate

@openjdk
Copy link

openjdk bot commented Nov 3, 2022

Going to push as commit ff14ed4.
Since your change was applied there have been 27 commits pushed to the master branch:

  • f2a10fd: 8265489: Stress test times out because of long ObjectSynchronizer::monitors_iterate(...) operation
  • 092be50: 8287740: NSAccessibilityShowMenuAction not working for text editors
  • b37d7df: 8275569: Add linux-aarch64 to test-make profiles
  • eef3c96: 8282600: SSLSocketImpl should not use user_canceled workaround when not necessary
  • e609398: 8287011: Improve container information
  • d5fedc5: 8244670: convert clhsdb "whatis" command from javascript to java
  • 5fa5392: 8273578: javax/swing/JMenu/4515762/bug4515762.java fails on macOS 12
  • 0698930: 8295288: Some vm_flags tests associate with a wrong BugID
  • 9fd15d5: 8233648: [TESTBUG] DefaultMenuBarTest.java failing on macos
  • 6a45f75: 8280948: Write a regression test for JDK-4659800
  • ... and 17 more: https://git.openjdk.org/jdk17u-dev/compare/cb9289ed7589e2cfbe8ac21ab6f3039ee09216ea...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Nov 3, 2022
@openjdk openjdk bot closed this Nov 3, 2022
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Nov 3, 2022
@openjdk
Copy link

openjdk bot commented Nov 3, 2022

@GoeLin Pushed as commit ff14ed4.

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

@GoeLin GoeLin deleted the goetz_backport_8292695 branch November 3, 2022 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants