-
Notifications
You must be signed in to change notification settings - Fork 171
8069389: CompilerOracle prefix wildcarding is broken for long strings #446
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
8069389: CompilerOracle prefix wildcarding is broken for long strings #446
Conversation
|
👋 Welcome back rmarchenko! A progress list of the required criteria for merging this PR into |
|
This backport pull request has now been updated with issue and summary from the original commit. |
|
|
9880ca8 to
b2ae4d2
Compare
|
@wkia 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. |
|
/approval Clean backport |
|
@wkia usage: |
|
/approval request Clean backport |
b2ae4d2 to
fb23dd6
Compare
|
@wkia 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.
Does the new test pass on 8u?
|
@gnu-andrew Yes, it passed. However, as just a note, my opinion is a test doesn't make sense here since we're trying to emulate a failure case which is actually caused by undefined behaviour. UB cannot be predicted or tested, and it may change depending on platform, versions, etc. Anyway, the test passed. |
|
@wkia This change now passes all automated pre-integration checks. 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 23 new commits pushed to the
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 (@gnu-andrew) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
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.
Verified clean.
|
/approve yes |
|
@gnu-andrew |
|
/integrate |
|
/sponsor |
|
Going to push as commit cde8aca.
Your commit was automatically rebased without conflicts. |
|
@gnu-andrew @wkia Pushed as commit cde8aca. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Clean backport.
I've just found that the issue occurs even with short strings like "*123*", see my screenshot attached to JDK-8069389. This can be reproduced currently with "slowdebug" build on my Ubuntu 22.04 + gcc-9.5.0, however I believe we cannot rely on it isn't reproduced with "release" now.
Anyway, it wasn't good to use "strcpy" with overlapped buffers, because strcpy's docs says "The behavior is undefined if the strings overlap." So, I believe it should be fixed in jdk8 as well.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/446/head:pull/446$ git checkout pull/446Update a local copy of the PR:
$ git checkout pull/446$ git pull https://git.openjdk.org/jdk8u-dev.git pull/446/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 446View PR using the GUI difftool:
$ git pr show -t 446Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/446.diff
Webrev
Link to Webrev Comment