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

Integration test jgit fails to compile natively with GraalVM CE 21.3 Java 17 #21372

Closed
Tracked by #21481
zakkak opened this issue Nov 11, 2021 · 2 comments · Fixed by #21408
Closed
Tracked by #21481

Integration test jgit fails to compile natively with GraalVM CE 21.3 Java 17 #21372

zakkak opened this issue Nov 11, 2021 · 2 comments · Fixed by #21408
Assignees
Labels
area/native-image env/graalvm-java17 Relating to using GraalVM native generation Java 11 kind/bug Something isn't working
Milestone

Comments

@zakkak
Copy link
Contributor

zakkak commented Nov 11, 2021

Describe the bug

Native compilation of integration test jgit fails with GraalVM CE 21.3 Java17 (quay.io/quarkus/ubi-quarkus-native-image:21.3-java17)

See https://github.com/graalvm/mandrel/runs/4170345504?check_suite_focus=true

Note that this is not a Quarkus issue. The underlying issue is only reproducible on Java 17 and has been fixed upstream in oracle/graal#3875 (and will probably land in the January releases)

Expected behavior

jgit test should build and run.

Actual behavior

Test fails to build with:

Error: Unsupported features in 8 methods
Detailed message:
Error: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved type during parsing: sun.management.Util. To diagnose the issue you can use the --allow-incomplete-classpath option. The missing type is then reported at run time when it is accessed the first time.
Trace: 
	at parsing com.oracle.svm.core.genscavenge.CompleteGarbageCollectorMXBean.getObjectName(CompleteGarbageCollectorMXBean.java:81)
Call path from entry point to com.oracle.svm.core.genscavenge.CompleteGarbageCollectorMXBean.getObjectName(): 
	at com.oracle.svm.core.genscavenge.CompleteGarbageCollectorMXBean.getObjectName(CompleteGarbageCollectorMXBean.java:81)
	at com.oracle.svm.core.jdk.management.ManagementSupport.addMXBean(ManagementSupport.java:267)
	at com.oracle.svm.core.jdk.management.ManagementSupport.getPlatformMBeanServer(ManagementSupport.java:259)
	at com.oracle.svm.core.jdk.management.Target_java_lang_management_ManagementFactory.getPlatformMBeanServer(Target_java_lang_management_ManagementFactory.java:45)
	at org.eclipse.jgit.util.Monitoring.registerMBean(Monitoring.java:69)
	at org.eclipse.jgit.internal.storage.file.WindowCache.publishMBeanIfNeeded(WindowCache.java:485)
	at org.eclipse.jgit.internal.storage.file.WindowCache.get(WindowCache.java:386)
	at org.eclipse.jgit.internal.storage.file.WindowCursor.pin(WindowCursor.java:327)
	at org.eclipse.jgit.internal.storage.file.WindowCursor.copy(WindowCursor.java:226)
	at org.eclipse.jgit.internal.storage.file.PackInputStream.read(PackInputStream.java:37)
	at com.jcraft.jsch.ChannelSession.run(ChannelSession.java:245)
	at java.lang.Thread.run(Thread.java:833)
	at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:596)
	at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
	at com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)
...

How to Reproduce?

./mvnw -Dnative -Dnative.surefire.skip -pl integration-tests/jgit package -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-native-image:21.3-java17

Output of uname -a or ver

5.14.15-200.fc34.x86_64 #1 SMP Wed Oct 27 15:53:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)

GraalVM version (if different from Java)

OpenJDK 64-Bit Server VM GraalVM CE 21.3.0 (build 17.0.1+12-jvmci-21.3-b05, mixed mode, sharing)

Quarkus version or git rev

132d9ea

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)

@quarkus-bot
Copy link

quarkus-bot bot commented Nov 11, 2021

/cc @Karm, @galderz

@zakkak zakkak added area/native-image kind/bug Something isn't working and removed area/mandrel labels Nov 11, 2021
@zakkak zakkak self-assigned this Nov 11, 2021
zakkak added a commit to zakkak/quarkus that referenced this issue Nov 12, 2021
zakkak added a commit to zakkak/quarkus that referenced this issue Nov 12, 2021
zakkak added a commit to zakkak/quarkus that referenced this issue Nov 12, 2021
zakkak added a commit to zakkak/quarkus that referenced this issue Nov 17, 2021
@zakkak zakkak added the env/graalvm-java17 Relating to using GraalVM native generation Java 11 label Nov 17, 2021
@maxandersen maxandersen mentioned this issue Nov 17, 2021
11 tasks
zakkak added a commit to zakkak/quarkus that referenced this issue Nov 18, 2021
@zakkak
Copy link
Contributor Author

zakkak commented Nov 19, 2021

Closed by #21408

@zakkak zakkak closed this as completed Nov 19, 2021
@gsmet gsmet added this to the 2.5.1.Final milestone Nov 24, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Nov 24, 2021
(cherry picked from commit dc9a6ec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/native-image env/graalvm-java17 Relating to using GraalVM native generation Java 11 kind/bug Something isn't working
Projects
None yet
2 participants