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

[GR-49355] System.console().readPassword broke in Oracle GraalVM 21 (compared to CE 22.3.0) #7567

Closed
borkdude opened this issue Oct 9, 2023 · 5 comments
Assignees

Comments

@borkdude
Copy link

borkdude commented Oct 9, 2023

Repro:

public class Repro {

    public static void main(String [] args) {
        System.console().readPassword();
    }

}

Compile and run:

$ ./repro
Exception in thread "main" java.lang.UnsatisfiedLinkError: jdk.internal.io.JdkConsoleImpl.echo(Z)Z [symbol: Java_jdk_internal_io_JdkConsoleImpl_echo or Java_jdk_internal_io_JdkConsoleImpl_echo__Z]
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.access.JNINativeLinkage.getOrFindEntryPoint(JNINativeLinkage.java:152)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.JNIGeneratedMethodSupport.nativeCallAddress(JNIGeneratedMethodSupport.java:54)
	at java.base@21/jdk.internal.io.JdkConsoleImpl.echo(Native Method)
	at java.base@21/jdk.internal.io.JdkConsoleImpl.readPassword(JdkConsoleImpl.java:101)
	at java.base@21/jdk.internal.io.JdkConsoleImpl.readPassword(JdkConsoleImpl.java:158)
	at java.base@21/java.io.ProxyingConsole.readPassword(ProxyingConsole.java:128)
	at Repro.main(Repro.java:4)
	at java.base@21/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
@fniephaus fniephaus changed the title System.console().readPassword broke in Oracle GraalVM 21 (compared to CE 22.3.0) [GR-49355] System.console().readPassword broke in Oracle GraalVM 21 (compared to CE 22.3.0) Oct 9, 2023
@rbergmanaf
Copy link

We've run into this same issue trying to update from 22.3 as well.

@fniephaus
Copy link
Member

This was fixed via 8306a07 and will be backported.

@borkdude
Copy link
Author

Upgrading to 21.0.1 didn't help

@fniephaus
Copy link
Member

The fix didn't make it into the 21.0.1 patch update, but it will be included in the next one.

@michaeljmarshall
Copy link

I see that the planned release for 21.0.2 is in January 16, 2024 based on this page: https://docs.oracle.com/en/graalvm/enterprise/21/docs/release-calendar/#planned-relases. Do bugs ever trigger an earlier than planned patch release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants