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

8250825: C2 crashes with assert(field != __null) failed: missing field #552

Closed
wants to merge 2 commits into from

Conversation

sendaoYan
Copy link
Member

@sendaoYan sendaoYan commented Jul 24, 2024

Hi all,
This is backport of JDK-8250825. It's prefixed PR for JDK-8255466 backport.
New test fails without the patch, passes with it.

There are two parts make this backport not clean:

  1. Patch does not apply cleanly due to different context, before JDK-8250825 the PR JDK-8230505 change releated lines, and I think JDK-8230505 do not needed backport to jdk8u-dev.
  2. The added testcase can't backport to jdk8u directly, import jdk.internal.misc.Unsafe should instead of import sun.misc.Unsafe in jdk8u.

Additional testing:

  • linux x64 tier1/2/3 jtreg test
  • inux aarch64 tier1/2/3 jtreg test

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
  • JDK-8250825 needs maintainer approval

Issue

  • JDK-8250825: C2 crashes with assert(field != __null) failed: missing field (Bug - P3 - Approved)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 552

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 24, 2024

👋 Welcome back syan! 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 Jul 24, 2024

@sendaoYan This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8250825: C2 crashes with assert(field != __null) failed: missing field

Reviewed-by: phh

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 92 new commits pushed to 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.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@phohensee, @gnu-andrew) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot changed the title Backport e03ca73dc122af84d4a5456120e5cf5fac7aed31 8250825: C2 crashes with assert(field != __null) failed: missing field Jul 24, 2024
@openjdk
Copy link

openjdk bot commented Jul 24, 2024

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 Jul 24, 2024
@mlbridge
Copy link

mlbridge bot commented Jul 24, 2024

Webrevs

@sendaoYan sendaoYan marked this pull request as draft July 24, 2024 12:40
@openjdk openjdk bot removed the rfr Pull request is ready for review label Jul 24, 2024
Copy link
Member

@phohensee phohensee left a comment

Choose a reason for hiding this comment

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

The new test fails GHA.

@sendaoYan
Copy link
Member Author

sendaoYan commented Jul 25, 2024

The new test fails GHA.

Yes, that's the reason this PR still in Draft status, I will fix the test these days.

@sendaoYan sendaoYan marked this pull request as ready for review July 25, 2024 03:14
@openjdk
Copy link

openjdk bot commented Jul 25, 2024

⚠️ @sendaoYan This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Jul 25, 2024
@sendaoYan
Copy link
Member Author

After the additional test finish, I will make approval request.

@sendaoYan
Copy link
Member Author

The new test fails GHA.

The test fails has been fixed now.

@sendaoYan
Copy link
Member Author

The GHA report several failures:

  1. macos x64 runtime/7158988/FieldMonitor.java fails VM initialization failed for: j2sdk-image/jre/bin/java -Xshare:off -XX:+PrintGC -Xdebug -Xrunjdwp:transport=dt_socket,address=Mac-1721876641775.local:49199,suspend=y TestPostFieldModification. This test also fails in PR551, I think it's unrelated to this PR.
  2. macos x64 compiler/unsafe/OpaqueAccesses.java fails SIGSEGV in Unsafe_GetInt, This test also fails in PR551, I think it's unrelated to this PR.
  3. macos x64 all the com/sun/jdi testcases fails transport error 202: gethostbyname: unknown host, seems to be GHA environmental issue.

@sendaoYan
Copy link
Member Author

/approval request Backport JDK-8250825, New test fails without the patch, passes with it. All the jtreg tests on linux x86_64 and aarch64 shows no new failure.

@openjdk
Copy link

openjdk bot commented Jul 25, 2024

@sendaoYan
8250825: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Jul 25, 2024
@zzambers
Copy link
Contributor

The GHA report several failures:

1. macos x64 `runtime/7158988/FieldMonitor.java` fails `VM initialization failed for: j2sdk-image/jre/bin/java -Xshare:off -XX:+PrintGC -Xdebug -Xrunjdwp:transport=dt_socket,address=Mac-1721876641775.local:49199,suspend=y TestPostFieldModification`. This test also fails in [PR551](https://github.com/openjdk/jdk8u-dev/pull/551), I think it's unrelated to this PR.

2. macos x64 `compiler/unsafe/OpaqueAccesses.java` fails `SIGSEGV  in Unsafe_GetInt`, This test also fails in [PR551](https://github.com/openjdk/jdk8u-dev/pull/551), I think it's unrelated to this PR.

3. macos x64 all the `com/sun/jdi` testcases fails `transport error 202: gethostbyname: unknown host`, seems to be GHA environmental issue.

All these mac issues should be unrelated, see: #544

@sendaoYan
Copy link
Member Author

After #544 has been merged, does the two jbs issue can be cloesd? @zzambers
https://bugs.openjdk.org/browse/JDK-8337185
https://bugs.openjdk.org/browse/JDK-8337183

@sendaoYan
Copy link
Member Author

Thanks for the review.

@zzambers
Copy link
Contributor

After #544 has been merged, does the two jbs issue can be cloesd? @zzambers
https://bugs.openjdk.org/browse/JDK-8337185
https://bugs.openjdk.org/browse/JDK-8337183

I have classified problems on MacOS in this coment: #544 (comment)

@openjdk
Copy link

openjdk bot commented Sep 19, 2024

@sendaoYan
8250825: The approval request has been updated successfully.

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 17, 2024

@sendaoYan This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@sendaoYan
Copy link
Member Author

/approval request Fixes the corner case in C2. Patch does not apply cleanly due to different context. New test fails without the patch, passes with it. jtreg tier{1,2,3,etc.} also passes on linux x86_64 and linux aarch64.

@openjdk
Copy link

openjdk bot commented Oct 17, 2024

@sendaoYan
8250825: The approval request has been updated successfully.

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 14, 2024

@sendaoYan This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@sendaoYan
Copy link
Member Author

/open

@openjdk
Copy link

openjdk bot commented Nov 14, 2024

@sendaoYan This pull request is already open

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 12, 2024

@sendaoYan This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@sendaoYan
Copy link
Member Author

/open

@openjdk
Copy link

openjdk bot commented Dec 12, 2024

@sendaoYan This pull request is already open

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 9, 2025

@sendaoYan This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels Jan 29, 2025
@sendaoYan
Copy link
Member Author

Thanks for the approved.

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jan 30, 2025
@openjdk
Copy link

openjdk bot commented Jan 30, 2025

@sendaoYan
Your change (at version f0bba3e) is now ready to be sponsored by a Committer.

@phohensee
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Jan 30, 2025

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

  • bfd4d8b: 8048215: [TESTBUG] java/lang/management/ManagementFactory/ThreadMXBeanProxy.java Expected non-null LockInfo
  • f89c26f: 8266881: Enable debug log for SSLEngineExplorerMatchedSNI.java
  • 492acd3: 8265019: Update tests for additional TestNG test permissions
  • 3683a81: Merge
  • 129290d: 8339180: Enhanced Building of Processes: Follow-on Issue
  • c2f7e61: 8335912: Add an operation mode to the jar command when extracting to not overwriting existing files
  • 2d042cf: 8336564: Enhance mask blit functionality redux
  • 1a447c7: 8335428: Enhanced Building of Processes
  • 1a6e3a5: 8342822: jdk8u432-b06 does not compile on AIX
  • 5a4b440: 8335912: Add an operation mode to the jar command when extracting to not overwriting existing files
  • ... and 84 more: https://git.openjdk.org/jdk8u-dev/compare/c8d52b07e18552105d653667e003c566db33e5dc...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jan 30, 2025
@openjdk openjdk bot closed this Jan 30, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Jan 30, 2025
@openjdk
Copy link

openjdk bot commented Jan 30, 2025

@phohensee @sendaoYan Pushed as commit 8b08668.

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

@sendaoYan sendaoYan deleted the jbs8250825 branch January 30, 2025 15:25
@sendaoYan
Copy link
Member Author

Thanks for the sponsor.

@gnu-andrew
Copy link
Member

Why has this been pushed when the whitespace issue I raised has still not been resolved?

$ diff -u ../jdk11u-dev/src/hotspot/share/opto/type.cpp hotspot/src/share/vm/opto/type.cpp|grep basic_elem
             BasicType basic_elem_type = field->layout_type();
             _is_ptr_to_narrowoop = UseCompressedOops && (basic_elem_type == T_OBJECT ||
-                                                         basic_elem_type == T_ARRAY);
+                                                       basic_elem_type == T_ARRAY);

@gnu-andrew
Copy link
Member

@sendaoYan I have opened JDK-8349166 and assigned it to you. Please correct this issue.

@sendaoYan
Copy link
Member Author

sendaoYan commented Feb 1, 2025

@sendaoYan I have opened JDK-8349166 and assigned it to you. Please correct this issue.

Thanks for the patient reviews. I will look the indentation issue as soon as possible.

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.

5 participants