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

[Bug]: GraalVM build failure with Update 12 #43881

Open
TharmiganK opened this issue Mar 6, 2025 · 1 comment
Open

[Bug]: GraalVM build failure with Update 12 #43881

TharmiganK opened this issue Mar 6, 2025 · 1 comment
Assignees
Labels
needTriage The issue has to be inspected and labeled manually Type/Bug userCategory/Compilation

Comments

@TharmiganK
Copy link
Contributor

TharmiganK commented Mar 6, 2025

Description

$Subject

Please note that this was working with update 11.

Steps to Reproduce

Try to build the following program with GraalVM:

public function main() {
    byte[] _ = [45, 45, 45, 45, 45, 66, 69, 71, 73, 78, 32, 80, 82, 73, 86, 65, 84, 69, 32, 75, 69, 89, 45, 45, 45, 45, 45, 10, 77, 73, 73, 69, 118, 81, 73, 66, 65, 68, 65, 78, 66, 103, 107, 113, 104, 107, 105, 71, 57, 119, 48, 66, 65, 81, 69, 70, 65, 65, 83, 67, 66, 75, 99, 119, 103, 103, 83, 106, 65, 103, 69, 65, 65, 111, 73, 66, 65, 81, 67, 66, 88, 75, 76, 112, 57, 87, 74, 85, 117, 74, 107, 111, 10, 83, 102, 68, 110, 51, 72, 77, 50, 76, 87, 86, 120, 105, 72, 114, 80, 49, 49, 109, 101, 54, 68, 52, 88, 50, 65, 113, 111, 85, 105, 67, 90, 49, 119, 57, 55, 54, 113, 49, 76, 117, 66, 108, 122, 87, 78, 104, 79, 78, 89, 119, 74, 118, 72, 88, 101, 119, 85, 117, 82, 109, 111, 48, 100, 10, 52, 78, 82, 112, 50, 109, 97, 48, 113, 106, 100, 77, 78, 50, 52, 54, 88, 87, 121, 111, 122, 112, 122, 80, 102, 74, 100, 118, 111, 118, 102, 105, 84, 43, 86, 54, 72, 110, 83, 98, 77, 103, 56, 50, 90, 112, 112, 102, 70, 51, 101, 56, 53, 67, 103, 114, 103, 54, 109, 83, 65, 55, 87, 102, 10, 102, 97, 97, 72, 114, 54, 50, 83, 110, 101, 120, 115, 101, 90, 57, 105, 111, 78, 67, 117, 82, 85, 114, 87, 50, 90, 103, 50, 48, 56, 108, 57, 57, 73, 73, 116, 80, 52, 75, 52, 105, 71, 99, 108, 81, 108, 121, 106, 115, 51, 83, 54, 100, 114, 72, 55, 74, 74, 107, 51, 114, 118, 56, 66, 10, 102, 55, 54, 119, 109, 109, 111, 67, 69, 65, 104, 107, 110, 79, 116, 71, 76, 113, 53, 52, 51, 100, 69, 85, 73, 106, 70, 103, 78, 100, 73, 121, 47, 71, 115, 83, 89, 53, 50, 102, 105, 65, 52, 76, 83, 106, 85, 67, 118, 50, 55, 107, 71, 110, 48, 51, 110, 97, 121, 113, 111, 90, 115, 51, 10, 88, 72, 113, 77, 48, 113, 76, 100, 116, 57, 83, 80, 88, 98, 89, 101, 55, 108, 55, 53, 106, 48, 111, 54, 90, 57, 116, 121, 71, 70, 67, 75, 88, 89, 47, 122, 86, 119, 105, 76, 102, 82, 85, 113, 68, 73, 79, 102, 107, 78, 53, 89, 83, 52, 79, 104, 105, 116, 53, 50, 84, 106, 55, 113, 10, 111, 66, 109, 118, 69, 122, 68, 55, 65, 103, 77, 66, 65, 65, 69, 67, 103, 103, 69, 65, 88, 77, 47, 70, 52, 117, 50, 51, 79, 117, 109, 109, 109, 81, 49, 84, 49, 107, 97, 73, 77, 112, 113, 110, 97, 97, 108, 116, 48, 54, 106, 67, 71, 65, 121, 119, 89, 66, 77, 85, 115, 109, 99, 97, 10, 70, 77, 89, 68, 121, 102, 103, 53, 108, 86, 88, 107, 106, 75, 108, 49, 112, 56, 99, 114, 84, 101, 68, 49, 65, 72, 106, 87, 97, 119, 84, 106, 115, 107, 103, 89, 110, 107, 109, 102, 51, 111, 99, 120, 88, 88, 70, 51, 109, 70, 66, 110, 73, 85, 88, 55, 111, 55, 72, 85, 82, 76, 103, 55, 10, 43, 82, 99, 120, 111, 85, 103, 119, 105, 82, 105, 70, 97, 90, 90, 55, 115, 122, 88, 51, 74, 111, 76, 98, 102, 122, 122, 98, 99, 72, 78, 81, 51, 55, 107, 97, 118, 99, 99, 66, 86, 87, 119, 81, 115, 70, 77, 105, 85, 51, 84, 108, 119, 43, 76, 98, 75, 119, 75, 54, 47, 114, 111, 119, 10, 76, 89, 115, 81, 80, 120, 55, 103, 84, 52, 117, 55, 104, 86, 105, 97, 116, 52, 118, 81, 68, 84, 89, 99, 103, 121, 106, 118, 118, 70, 67, 105, 101, 107, 52, 110, 100, 76, 54, 79, 57, 75, 52, 57, 77, 120, 73, 77, 85, 54, 55, 56, 85, 88, 66, 54, 105, 97, 53, 105, 85, 101, 118, 121, 10, 118, 103, 69, 102, 99, 89, 107, 75, 81, 53, 69, 81, 51, 56, 113, 83, 51, 90, 119, 115, 117, 98, 80, 118, 106, 52, 54, 51, 51, 106, 118, 65, 74, 82, 114, 47, 104, 74, 68, 56, 88, 73, 78, 90, 67, 55, 52, 107, 84, 88, 101, 86, 51, 66, 71, 72, 50, 76, 108, 112, 81, 79, 69, 113, 10, 107, 87, 107, 79, 121, 112, 119, 89, 78, 106, 110, 88, 116, 116, 49, 74, 79, 56, 43, 73, 117, 54, 109, 69, 88, 75, 85, 111, 105, 73, 66, 80, 102, 71, 114, 74, 51, 118, 68, 83, 81, 81, 75, 66, 103, 81, 68, 109, 89, 80, 99, 55, 107, 102, 89, 97, 110, 47, 76, 72, 106, 74, 82, 118, 10, 105, 69, 50, 67, 119, 98, 67, 50, 54, 121, 86, 65, 54, 43, 66, 69, 80, 81, 118, 57, 122, 55, 106, 67, 104, 79, 57, 81, 54, 99, 85, 98, 71, 118, 77, 56, 69, 69, 86, 78, 112, 67, 57, 110, 109, 70, 111, 103, 107, 115, 108, 122, 74, 104, 122, 53, 53, 72, 80, 56, 52, 81, 90, 76, 10, 117, 51, 112, 116, 85, 43, 68, 57, 54, 110, 99, 113, 54, 122, 107, 66, 113, 120, 66, 102, 82, 110, 90, 71, 43, 43, 68, 51, 54, 43, 88, 82, 88, 73, 119, 122, 122, 51, 104, 43, 103, 49, 78, 119, 114, 108, 48, 121, 48, 77, 70, 98, 119, 108, 107, 77, 109, 51, 90, 113, 74, 100, 100, 54, 10, 112, 90, 122, 49, 70, 90, 71, 100, 54, 122, 118, 81, 102, 116, 87, 56, 109, 55, 106, 80, 83, 75, 72, 117, 115, 119, 75, 66, 103, 81, 67, 80, 118, 54, 99, 122, 70, 79, 90, 82, 54, 98, 73, 43, 113, 67, 81, 100, 97, 79, 82, 112, 101, 57, 74, 71, 111, 65, 100, 117, 79, 68, 43, 52, 10, 89, 75, 108, 57, 54, 115, 48, 101, 105, 65, 75, 104, 107, 71, 104, 70, 67, 114, 77, 100, 54, 71, 74, 119, 87, 82, 107, 112, 78, 99, 102, 119, 66, 43, 74, 57, 115, 77, 97, 104, 79, 82, 98, 102, 118, 119, 105, 89, 97, 110, 73, 53, 54, 104, 55, 86, 105, 51, 48, 68, 70, 80, 82, 98, 10, 109, 49, 109, 56, 100, 76, 107, 114, 54, 122, 43, 56, 98, 120, 77, 120, 75, 74, 97, 77, 88, 73, 73, 106, 121, 51, 85, 68, 97, 109, 103, 68, 114, 55, 81, 72, 73, 110, 78, 85, 105, 104, 50, 105, 71, 118, 116, 66, 56, 81, 113, 90, 48, 97, 111, 98, 115, 66, 50, 88, 73, 120, 90, 103, 10, 113, 69, 83, 84, 77, 99, 112, 89, 109, 81, 75, 66, 103, 72, 83, 119, 83, 113, 110, 101, 114, 97, 81, 103, 118, 103, 122, 55, 70, 76, 104, 70, 100, 116, 85, 122, 72, 68, 111, 97, 99, 114, 48, 109, 102, 71, 113, 122, 55, 82, 51, 55, 70, 57, 57, 88, 68, 65, 121, 85, 121, 43, 83, 70, 10, 121, 119, 118, 121, 82, 100, 103, 107, 119, 71, 111, 100, 106, 104, 69, 80, 113, 72, 47, 116, 110, 121, 71, 110, 54, 71, 80, 43, 54, 110, 120, 122, 107, 110, 104, 76, 48, 120, 116, 112, 112, 107, 67, 84, 56, 107, 84, 53, 67, 52, 114, 109, 109, 115, 81, 114, 107, 110, 67, 104, 67, 76, 47, 53, 10, 117, 51, 52, 71, 113, 85, 97, 84, 97, 68, 69, 98, 56, 70, 76, 114, 122, 47, 83, 86, 82, 82, 117, 81, 112, 118, 76, 118, 66, 101, 121, 50, 100, 65, 68, 106, 107, 117, 86, 70, 72, 47, 47, 107, 76, 111, 105, 103, 54, 52, 80, 54, 105, 121, 76, 110, 65, 111, 71, 66, 65, 73, 108, 70, 10, 103, 43, 50, 76, 55, 56, 89, 90, 88, 86, 88, 111, 83, 49, 83, 113, 98, 106, 85, 116, 81, 85, 105, 103, 87, 88, 103, 118, 122, 117, 110, 76, 112, 81, 47, 82, 119, 98, 57, 43, 77, 115, 85, 71, 109, 103, 119, 85, 103, 54, 102, 122, 50, 115, 49, 101, 121, 71, 66, 75, 77, 51, 120, 77, 10, 105, 48, 86, 115, 73, 115, 75, 106, 79, 101, 122, 66, 67, 80, 120, 68, 54, 111, 68, 84, 121, 107, 52, 121, 118, 108, 98, 76, 69, 43, 55, 72, 69, 53, 75, 99, 66, 74, 105, 107, 78, 109, 70, 68, 48, 82, 103, 73, 111, 110, 117, 51, 101, 54, 43, 106, 65, 48, 77, 88, 119, 101, 121, 68, 10, 82, 87, 47, 113, 118, 105, 102, 108, 72, 82, 100, 73, 110, 78, 103, 68, 122, 120, 80, 69, 51, 75, 86, 69, 77, 88, 50, 54, 122, 65, 118, 82, 112, 71, 114, 77, 67, 87, 100, 66, 65, 111, 71, 65, 100, 81, 53, 83, 118, 88, 43, 109, 65, 67, 51, 99, 75, 113, 111, 81, 57, 90, 97, 108, 10, 108, 83, 113, 87, 111, 121, 106, 102, 122, 80, 53, 69, 97, 86, 82, 71, 56, 100, 116, 111, 76, 120, 98, 122, 110, 81, 71, 84, 84, 118, 116, 72, 88, 99, 54, 53, 47, 77, 122, 110, 88, 47, 76, 57, 113, 107, 87, 67, 83, 54, 69, 98, 52, 72, 72, 53, 77, 51, 104, 70, 78, 89, 52, 54, 10, 76, 78, 73, 122, 71, 81, 76, 122, 110, 69, 49, 111, 100, 119, 118, 55, 72, 53, 66, 56, 99, 48, 47, 109, 51, 68, 114, 75, 84, 120, 98, 104, 56, 98, 89, 99, 114, 82, 49, 66, 87, 53, 47, 110, 75, 90, 78, 78, 87, 55, 107, 49, 79, 54, 79, 106, 69, 111, 122, 118, 65, 97, 106, 75, 10, 74, 81, 100, 112, 51, 75, 66, 85, 57, 83, 56, 67, 109, 66, 106, 71, 114, 82, 112, 74, 50, 113, 119, 61, 10, 45, 45, 45, 45, 45, 69, 78, 68, 32, 80, 82, 73, 86, 65, 84, 69, 32, 75, 69, 89, 45, 45, 45, 45, 45, 10];
}

Build output:

========================================================================================================================
GraalVM Native Image: Generating 'crypto' (executable)...
========================================================================================================================
[1/8] Initializing...                                                                                    (6.7s @ 0.15GB)
 Java version: 21.0.2+13, vendor version: GraalVM CE 21.0.2+13.1
 Graal compiler: optimization level: 2, target machine: armv8-a
 C compiler: cc (apple, arm64, 16.0.0)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
 1 user-specific feature(s):
 - com.oracle.svm.thirdparty.gson.GsonFeature
------------------------------------------------------------------------------------------------------------------------
Build resources:
 - 12.09GB of memory (75.6% of 16.00GB system memory, determined at start)
 - 8 thread(s) (100.0% of 8 available processor(s), determined at start)
[2/8] Performing analysis...  []                                                                        (46.6s @ 4.31GB)
    8,002 reachable types   (81.8% of    9,785 total)
   12,390 reachable fields  (59.9% of   20,679 total)
   40,098 reachable methods (56.8% of   70,640 total)
    2,290 types,   191 fields, and 1,583 methods registered for reflection

Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing tharmigan.crypto.0.functions.$_generated0.$split$method$_2(functions/$_generated0) 
Parsing context:
   at tharmigan.crypto.0.functions.$_generated0.$split$method$_1(functions/$_generated0:2)
   at tharmigan.crypto.0.main.main(main.bal:2)
   at tharmigan.crypto.0.$_init.$moduleExecute(crypto)
   at tharmigan.crypto.0.$_init.$lambda$$moduleExecute$(crypto)
   at tharmigan.crypto.0.$_init$$Lambda/0x000000a000e874f0.apply(Unknown Source)
   at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
   at java.util.HashMap$ValueSpliterator.tryAdvance(HashMap.java:1808)
   at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129)
   at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527)
   at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
   at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
   at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
   at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
   at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:647)
   at java.util.logging.Level$KnownLevel.findByLocalizedLevelName(Level.java:684)
   at java.util.logging.Level.findLevel(Level.java:407)
   at java.util.logging.LogManager.createLoggerHandlers(LogManager.java:1011)
   at java.util.logging.LogManager$4.run(LogManager.java:975)
   at java.util.logging.LogManager$4.run(LogManager.java:971)
   at com.oracle.svm.core.jdk.Target_java_security_AccessController.executePrivileged(SecuritySubstitutions.java:129)
   at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:110)
   at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:85)
   at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:124)
   at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73)
   at java.lang.reflect.Executable.declaredAnnotations(Executable.java:634)
   at java.lang.reflect.Executable.getAnnotation(Executable.java:600)
   at java.lang.reflect.Method.getAnnotation(Method.java:793)
   at java.lang.reflect.AnnotatedElement.isAnnotationPresent(AnnotatedElement.java:292)
   at jdk.internal.reflect.Reflection.isCallerSensitive(Reflection.java:347)
   at java.lang.reflect.Method.isCallerSensitive(Method.java:618)
   at java.lang.reflect.Method.invoke(Method.java:561)
   at com.oracle.svm.core.methodhandles.Util_java_lang_invoke_MethodHandleNatives.verifyAccess(Target_java_lang_invoke_MethodHandleNatives.java:357)
   at com.oracle.svm.core.methodhandles.Target_java_lang_invoke_MethodHandleNatives.resolve(Target_java_lang_invoke_MethodHandleNatives.java:216)
   at java.lang.invoke.MemberName$Factory.resolve(MemberName.java:962)
   at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:991)
   at java.lang.invoke.DirectMethodHandle.makePreparedLambdaForm(DirectMethodHandle.java:261)
   at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:231)
   at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:216)
   at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:95)
   at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:127)
   at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:132)
   at java.lang.invoke.VarHandle.getMethodHandleUncached(VarHandle.java:2193)
   at java.lang.invoke.VarHandle.getMethodHandle(VarHandle.java:2184)
   at java.lang.invoke.VarHandleGuards.guard_L_L(VarHandleGuards.java:42)
   at com.github.benmanes.caffeine.cache.PS.getValue(Unknown Source)
   at com.github.benmanes.caffeine.cache.Node.toString(Node.java:280)
   at root method.(Unknown Source)

        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisError.parsingError(AnalysisError.java:149)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlow.createFlowsGraph(MethodTypeFlow.java:184)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlow.ensureFlowsGraphCreated(MethodTypeFlow.java:153)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlow.getOrCreateMethodFlowsGraphInfo(MethodTypeFlow.java:111)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.typestate.DefaultStaticInvokeTypeFlow.lambda$update$0(DefaultStaticInvokeTypeFlow.java:75)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.LightImmutableCollection.forEach(LightImmutableCollection.java:90)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.typestate.DefaultStaticInvokeTypeFlow.update(DefaultStaticInvokeTypeFlow.java:74)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.PointsToAnalysis$1.run(PointsToAnalysis.java:491)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.executeCommand(CompletionExecutor.java:187)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.lambda$executeService$0(CompletionExecutor.java:171)
        at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
        at java.base/java.util.concurrent.ForkJoinPool.externalHelpQuiesce(ForkJoinPool.java:2260)
        at java.base/java.util.concurrent.ForkJoinPool.helpQuiescePool(ForkJoinPool.java:2297)
        at java.base/java.util.concurrent.ForkJoinPool.awaitQuiescence(ForkJoinPool.java:3565)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.complete(CompletionExecutor.java:237)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.PointsToAnalysis.doTypeflow(PointsToAnalysis.java:529)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.PointsToAnalysis.finish(PointsToAnalysis.java:517)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.AbstractAnalysisEngine.runAnalysis(AbstractAnalysisEngine.java:162)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:783)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:592)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:550)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:539)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:721)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:143)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:98)
Caused by: org.graalvm.compiler.core.common.PermanentBailoutException: Number of elements in a node list too high: 65537
        at jdk.internal.vm.compiler/org.graalvm.compiler.graph.NodeList.checkMaxSize(NodeList.java:123)
        at jdk.internal.vm.compiler/org.graalvm.compiler.graph.NodeList.add(NodeList.java:179)
        at jdk.internal.vm.compiler/org.graalvm.compiler.graph.NodeList.add(NodeList.java:39)
        at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.AbstractMergeNode.addForwardEnd(AbstractMergeNode.java:71)
        at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.AbstractMergeNode.simplify(AbstractMergeNode.java:199)
        at jdk.internal.vm.compiler/org.graalvm.compiler.phases.common.CanonicalizerPhase.tryCanonicalize(CanonicalizerPhase.java:581)
        at jdk.internal.vm.compiler/org.graalvm.compiler.phases.common.CanonicalizerPhase.processNode(CanonicalizerPhase.java:483)
        at jdk.internal.vm.compiler/org.graalvm.compiler.phases.common.CanonicalizerPhase.processWorkSet(CanonicalizerPhase.java:328)
        at jdk.internal.vm.compiler/org.graalvm.compiler.phases.common.CanonicalizerPhase.run(CanonicalizerPhase.java:229)
        at jdk.internal.vm.compiler/org.graalvm.compiler.phases.common.CanonicalizerPhase.run(CanonicalizerPhase.java:88)
        at jdk.internal.vm.compiler/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:434)
        at jdk.internal.vm.compiler/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:322)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.parse(MethodTypeFlowBuilder.java:207)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.apply(MethodTypeFlowBuilder.java:621)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.flow.MethodTypeFlow.createFlowsGraph(MethodTypeFlow.java:167)
        ... 24 more
------------------------------------------------------------------------------------------------------------------------
                       14.2s (26.2% of total time) in 85 GCs | Peak RSS: 3.98GB | CPU load: 4.77
========================================================================================================================
Finished generating 'crypto' in 53.7s.
error: unable to create native image

Affected Version(s)

Ballerina SwanLake Update 12(2201.12.0)

OS, DB, other environment details and versions

GraalVM CE 21.0.2+13.1

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Mar 6, 2025
@TharmiganK
Copy link
Contributor Author

This is identified in the GraalVM check failure in crypto package - https://github.com/ballerina-platform/module-ballerina-crypto/actions/runs/13683132972/job/38260110010

This is observed after this change in lang master - https://github.com/ballerina-platform/ballerina-lang/pull/43861/files#diff-52139c368f17af30b21af6b3a675a6f92f634122ee717a0ca437c9d1865a2e99

The above is one is extracted from the one test which cause the graalvm parser error. There can be other issues as well.

According to this issue - oracle/graal#5707. This parser issue can be releted to the byte code. We need to check the change in the generated byte code between update 11 and update 12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needTriage The issue has to be inspected and labeled manually Type/Bug userCategory/Compilation
Projects
None yet
Development

No branches or pull requests

3 participants