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
8300079: SIGSEGV in LibraryCallKit::inline_string_copy due to constant NULL src argument #1297
Conversation
👋 Welcome back goetz! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
26d9fb0
to
8018865
Compare
@GoeLin Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. isa_aryptr()
is used quite often! I hope that it won't break again in the future.
@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:
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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Pre-submit failure: asm download failed wget exited with exit code 8 |
/integrate |
Going to push as commit 52324b5.
Your commit was automatically rebased without conflicts. |
I backport this for parity with 17.0.8-oracle.
Does not apply because
"8275201: C2: hide klass() accessor from TypeOopPtr and typeKlassPtr subclasses" is not in 17.
The problem fixed by this change is that isa_aryptr() can return NULL.
I checked all occurances of this call. Many of them are checked for NULL which
was missing in head before this fix. For inline_string_copy() the check was missing
in 17.
For many of the other checks, the result is assigned to a variable and then checked,
but then isa_aryptr() is called again. I changed the code to use the checked variable.
I hope this makes clear that the check may not be removed :)
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/1297/head:pull/1297
$ git checkout pull/1297
Update a local copy of the PR:
$ git checkout pull/1297
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/1297/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1297
View PR using the GUI difftool:
$ git pr show -t 1297
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/1297.diff
Webrev
Link to Webrev Comment