Closed jerboaa closed 1 year ago
This might be related to #139 At least the symptom is the same.
Do you mean #126?
I confirm that this is related to #126
The exception is:
java.lang.UnsatisfiedLinkError: jdk.internal.platform.CgroupMetrics.getTotalSwapSize0()J [symbol: Java_jdk_internal_platform_CgroupMetrics_getTotalSwapSize0 or Java_jdk_intern
al_platform_CgroupMetrics_getTotalSwapSize0__]
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-internal/jdk.internal.platform.CgroupMetrics.getTotalSwapSize0(Native Method)
at java.base@21-internal/jdk.internal.platform.CgroupMetrics.getMemoryAndSwapLimit(CgroupMetrics.java:147)
at jdk.jfr@21-internal/jdk.jfr.internal.instrument.JDKEvents.emitContainerConfiguration(JDKEvents.java:221)
at jdk.jfr@21-internal/jdk.jfr.internal.periodic.JDKEventTask.execute(JDKEventTask.java:52)
at jdk.jfr@21-internal/jdk.jfr.internal.periodic.PeriodicTask.run(PeriodicTask.java:128)
at jdk.jfr@21-internal/jdk.jfr.internal.periodic.PeriodicEvents.doChunkBegin(PeriodicEvents.java:82)
at jdk.jfr@21-internal/jdk.jfr.internal.PlatformRecorder.start(PlatformRecorder.java:283)
at jdk.jfr@21-internal/jdk.jfr.internal.PlatformRecording.start(PlatformRecording.java:120)
at jdk.jfr@21-internal/jdk.jfr.Recording.start(Recording.java:177)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jfr.JfrManager.initRecording(JfrManager.java:246)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jfr.JfrManager.lambda$startupHook$0(JfrManager.java:91)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk.RuntimeSupport.executeHooks(RuntimeSupport.java:161)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk.RuntimeSupport.initialize(RuntimeSupport.java:98)
at org.graalvm.sdk/org.graalvm.nativeimage.VMRuntime.initialize(VMRuntime.java:65)
https://bugs.openjdk.org/browse/JDK-8299858 introduces CgroupMetrics.getTotalSwapSize0
which is not supported by GraalVM / Mandrel
Upstream issue: https://github.com/oracle/graal/issues/6739
Upstream fix: https://github.com/oracle/graal/pull/6740
Upstream fix is now merged. The issue is no longer reproducing.
JDK 21+25-ea with latest GraalVM master fails JFR tests with:
Note the JFR warning message at runtime which seems to indicate some initialization of the event fails:
See: https://github.com/graalvm/mandrel/actions/runs/5172441559/jobs/9317239703#step:11:13590
This might be related to https://github.com/Karm/mandrel-integration-tests/issues/139 At least the symptom is the same.