-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8336375: Crash on paste to JShell #20182
Conversation
👋 Welcome back jlahoda! A progress list of the required criteria for merging this PR into |
@lahodaj 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
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.
Looks good from the FFM perspective
Is this a bug in the shipped library? If yes, is it already fixed there, or do we plan to report or fix in the upstream? |
It was definitely an intent to send to JLine as well, done here: |
/integrate |
/backport jdk jdk23 |
Going to push as commit b9b0b85.
Your commit was automatically rebased without conflicts. |
@lahodaj the backport was successfully created on the branch backport-lahodaj-b9b0b850-jdk23 in my personal fork of openjdk/jdk. To create a pull request with this backport targeting openjdk/jdk:jdk23, just click the following link: The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:
If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk:
|
On Windows, the
ScrollConsoleScreenBufferW
function is being looked like this:jdk/src/jdk.internal.le/share/classes/jdk/internal/org/jline/terminal/impl/ffm/Kernel32.java
Line 406 in a253e0f
I.e. the parameters are
MemorySegment
s/pointers. But, it is being invoked like this:jdk/src/jdk.internal.le/share/classes/jdk/internal/org/jline/terminal/impl/ffm/Kernel32.java
Line 239 in a253e0f
I.e. with values rather than with pointers. This then fails at runtime when the function is called with an exception like:
The proposal here is to use MemorySegments embedded in the provided parameters. This is consistent with the rest of the file, see for example here:
jdk/src/jdk.internal.le/share/classes/jdk/internal/org/jline/terminal/impl/ffm/Kernel32.java
Line 173 in a253e0f
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/20182/head:pull/20182
$ git checkout pull/20182
Update a local copy of the PR:
$ git checkout pull/20182
$ git pull https://git.openjdk.org/jdk.git pull/20182/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 20182
View PR using the GUI difftool:
$ git pr show -t 20182
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/20182.diff
Webrev
Link to Webrev Comment