You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java version "24.0.1" 2025-04-15
Java(TM) SE Runtime Environment Oracle GraalVM 24.0.1+9.1 (build 24.0.1+9-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 24.0.1+9.1 (build 24.0.1+9-jvmci-b01, mixed mode, sharing)
Operating System and Version
Linux (redacted) 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Build Command
Enclosed in NIBs
Expected Behavior
I expect the build to finish successfully as it does for -O1
Actual Behavior
The build crashes instead:
com.oracle.svm.core.util.VMError$HostedError: java.lang.NullPointerException: Cannot invoke "com.oracle.objectfile.ObjectFile$Element.isLoadable()" because "predElement" is null
at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:82)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.NativeImage.write(NativeImage.java:177)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.NativeImageViaCC.write(NativeImageViaCC.java:95)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:750)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:533)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:545)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:732)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:151)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:99)
Caused by: java.lang.NullPointerException: Cannot invoke "com.oracle.objectfile.ObjectFile$Element.isLoadable()" because "predElement" is null
at org.graalvm.nativeimage.objectfile/com.oracle.objectfile.ObjectFile.defaultGetOrDecideVaddr(ObjectFile.java:905)
at org.graalvm.nativeimage.objectfile/com.oracle.objectfile.elf.ELFSymtab.getOrDecideVaddr(ELFSymtab.java:496)
at org.graalvm.nativeimage.objectfile/com.oracle.objectfile.ObjectFile.bake(ObjectFile.java:1677)
at org.graalvm.nativeimage.objectfile/com.oracle.objectfile.ObjectFile.write(ObjectFile.java:1316)
at org.graalvm.nativeimage.objectfile/com.oracle.objectfile.ObjectFile.lambda$write$0(ObjectFile.java:1308)
at org.graalvm.nativeimage.objectfile/com.oracle.objectfile.ObjectFile.withDebugContext(ObjectFile.java:1848)
at org.graalvm.nativeimage.objectfile/com.oracle.objectfile.ObjectFile.write(ObjectFile.java:1307)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.NativeImage.write(NativeImage.java:175)
... 7 more
Steps to Reproduce
See elide-img.nib upload in Additional Context section
I am trying to reproduce the issue that you've encountered on my end but I keep getting the following error: Error: Unrecognized option(s): 'elide.tool.cli.MainKt'
Could you please give me the steps you follow which lead to encountering the issue just to be sure we're doing the same thing?
Uh oh!
There was an error while loading. Please reload this page.
Describe the Issue
While passing
-O2
or greater tonative-image
, I consistently observe the enclosed stacktrace.Using the latest version of GraalVM can resolve many issues.
GraalVM Version
java version "24.0.1" 2025-04-15
Java(TM) SE Runtime Environment Oracle GraalVM 24.0.1+9.1 (build 24.0.1+9-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 24.0.1+9.1 (build 24.0.1+9-jvmci-b01, mixed mode, sharing)
Operating System and Version
Linux (redacted) 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Build Command
Enclosed in NIBs
Expected Behavior
I expect the build to finish successfully as it does for
-O1
Actual Behavior
The build crashes instead:
Steps to Reproduce
See
elide-img.nib
upload in Additional Context sectionAdditional Context
Native Image Bundle:
elide-img.nib
Build Log Output and Error Messages
Attached:
svm_err.md
Top content, since it is too large to paste in full:
GraalVM Native Image Error Report
Build Output
Stack Trace
GraalVM Setup
24.0.1+9
Oracle GraalVM 24.0.1+9.1
24.0.1+9-jvmci-b01
x86_64-linux-musl-gcc (linux, x86_64, 14.2.0)
GraalVM
release
fileThe text was updated successfully, but these errors were encountered: