-
Couldn't load subscription status.
- Fork 79
Closed
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Using the native-build-tools maven plugin, from version 0.9.10 and later, it will prompt that the build fails, the previous version will not have this problem, the graalvm version I use is 22.1.0, the following is the detailed error log:
PS D:\work\git\java-graalvm-start\cli-normal> mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.mueeee:cli-normal >------------------------
[INFO] Building cli-normal 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cli-normal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ cli-normal ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\work\git\java-graalvm-start\cli-normal\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ cli-normal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\work\git\java-graalvm-start\cli-normal\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ cli-normal ---
[INFO] Changes detected - recompiling the module!
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ cli-normal ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cli-normal ---
[INFO] Building jar: D:\work\git\java-graalvm-start\cli-normal\target\cli-normal-1.0.jar
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-5:single (make-assembly) @ cli-normal ---
[INFO] Building jar: D:\work\git\java-graalvm-start\cli-normal\target\cli-normal-1.0.jar
[WARNING] Configuration options: 'appendAssemblyId' is set to false, and 'classifier' is missing.
Instead of attaching the assembly file: D:\work\git\java-graalvm-start\cli-normal\target\cli-normal-1.0.jar, it will become the file for main project artifact.
NOTE: If multiple descriptors or descriptor-formats are provided for this project, the value of this file will be non-deterministic!
[WARNING] Replacing pre-existing project main-artifact file: D:\work\git\java-graalvm-start\cli-normal\target\cli-normal-1.0.jar
with assembly file: D:\work\git\java-graalvm-start\cli-normal\target\cli-normal-1.0.jar
[INFO]
[INFO] --- native-maven-plugin:0.9.11:build (default) @ cli-normal ---
[INFO] ImageClasspath Entry: com.mueeee:cli-normal:jar:1.0 (file:///D:/work/git/java-graalvm-start/cli-normal/target/cli-normal-1.0.jar)
[INFO] Executing: D:\env\graalvm-ce-java11-22.1.0\bin\native-image.cmd @C:\Users\WESTIN~1\AppData\Local\Temp\native-image4410539994237792834args
Fatal error: Unsupported OptionOrigin: C:\Users\WESTIN~1\AppData\Local\Temp\native-image4410539994237792834args
Current timestamp: 1652250150809
Printing Instructions (ip=0x00007ff738654ec0):
0x00007ff738654ea0: 0x00 0x41 0xc7 0x87 0xfc 0x00 0x00 0x00 0xfe 0xfe 0xfe 0x7e 0x48 0x8b 0x54 0x24
0x00007ff738654eb0: 0x20 0x4c 0x8b 0x44 0x24 0x10 0x4c 0x8b 0x4c 0x24 0x18 0xe8 0x80 0xfc 0xff 0xff
0x00007ff738654ec0: 0x90 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc
0x00007ff738654ed0: 0x48 0x83 0xec 0x28 0x48 0x89 0x54 0x24 0x20 0x49 0x3b 0x67 0x08 0x0f 0x86 0x66
Top of stack (sp=0x000000095b7cf2a0):
0x000000095b7cf2a0: 0x00000000c0001000 0x00007ff73886b725
0x000000095b7cf2b0: 0x0000018754e971a0 0x0000018754400000
0x000000095b7cf2c0: 0x00007ff738677724 0x00007ff7386c4784
0x000000095b7cf2d0: 0x0000000000000002 0x00007ff738677724
0x000000095b7cf2e0: 0x0000000000000002 0x00000000000000f4
0x000000095b7cf2f0: 0x0000018754e955c0 0x0000018754e95670
0x000000095b7cf300: 0x0000018754e97128 0x0000018754e94968
0x000000095b7cf310: 0x0000000000000000 0x00007ff7386cbe51
0x000000095b7cf320: 0x00000000c0001000 0x00007ff73886923a
0x000000095b7cf330: 0x000000000000009f 0x00007ff7385e5118
0x000000095b7cf340: 0x0000000054e955c0 0x00007ff73886e552
0x000000095b7cf350: 0x0000018754915da8 0x0000000000000010
0x000000095b7cf360: 0x0000018754e951fb 0x0000018754e95600
0x000000095b7cf370: 0x00000187546ee7e8 0x0000018754e955e0
0x000000095b7cf380: 0x0000018754e011c8 0x0000000100000000
0x000000095b7cf390: 0x000000020000003a 0x00007ff7386dc226
0x000000095b7cf3a0: 0x00000000c0001000 0x0000018754e95490
0x000000095b7cf3b0: 0x0000018754e14938 0x0000018754e95160
0x000000095b7cf3c0: 0x0000018754e95160 0x000000120000008b
0x000000095b7cf3d0: 0x0000018754e94ed8 0x00007ff738a8c403
0x000000095b7cf3e0: 0x00000000c0001000 0x00007ff7386c9619
0x000000095b7cf3f0: 0x00000187549ff5f8 0x0000018754e95100
0x000000095b7cf400: 0x00000187546f3788 0x0000018754e95598
0x000000095b7cf410: 0x0000018754400000 0x0000018754e14990
0x000000095b7cf420: 0x0000018754e02ed8 0x0000018754e145c8
0x000000095b7cf430: 0x0000018754e94cd8 0x00007ff73886923a
0x000000095b7cf440: 0x0000018754e950e0 0x00007ff7386e20a5
0x000000095b7cf450: 0x0000009e0000009d 0x00007ff7386d7498
0x000000095b7cf460: 0x0000018754e94ed8 0x0000018754b8e318
0x000000095b7cf470: 0x0000009f00000000 0x00000187546f3788
0x000000095b7cf480: 0x00000000002f3788 0x0000018754e95490
0x000000095b7cf490: 0x0000018754e14938 0x0000018754e14380
Top frame info:
TotalFrameSize in CodeInfoTable 48
Threads:
0x0000018754018a00 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Reference Handler" - 0x000001875496e5f8, daemon, stack(0x000000095bd00000,0x000000095be00000)
0x000001875400dd80 STATUS_IN_JAVA (PREVENT_VM_FROM_REACHING_SAFEPOINT) "main" - 0x000001875496e550, stack(0x000000095b6d0000,0x000000095b7d0000)
VM thread locals for the failing thread 0x000001875400dd80:
0 (8 bytes): JNIThreadLocalEnvironment.jniFunctions = (bytes)
0x000001875400dd80: 0x00000187547f9010
8 (8 bytes): StackOverflowCheckImpl.stackBoundaryTL = (Word) 1 (0x0000000000000001)
16 (4 bytes): Safepoint.safepointRequested = (int) 2147386257 (0x7ffe8391)
20 (4 bytes): StatusSupport.statusTL = (int) 1 (0x00000001)
24 (32 bytes): ThreadLocalAllocation.regularTLAB = (bytes)
0x000001875400dd98: 0x0000018754e00000 0x0000018754f00000
0x000001875400dda8: 0x0000018754e971c0 0x0000000000000000
56 (8 bytes): PlatformThreads.currentThread = (Object) java.lang.Thread (0x000001875496e550)
64 (8 bytes): JavaFrameAnchors.lastAnchor = (Word) 0 (0x0000000000000000)
72 (8 bytes): AccessControlContextStack = (Object) java.util.ArrayDeque (0x0000018754e173d0)
80 (8 bytes): ExceptionUnwind.currentException = (Object) null
88 (8 bytes): IdentityHashCodeSupport.hashCodeGeneratorTL = (Object) null
96 (8 bytes): IsolatedCompileClient.currentClient = (Object) null
104 (8 bytes): IsolatedCompileContext.currentContext = (Object) null
112 (8 bytes): JNIObjectHandles.handles = (Object) com.oracle.svm.core.handles.ThreadLocalHandles (0x0000018754e01488) 120 (8 bytes): JNIThreadLocalPendingException.pendingException = (Object) null
128 (8 bytes): JNIThreadLocalPinnedObjects.pinnedObjectsListHead = (Object) null
136 (8 bytes): JNIThreadOwnedMonitors.ownedMonitors = (Object) null
144 (8 bytes): NoAllocationVerifier.openVerifiers = (Object) null
152 (8 bytes): ThreadingSupportImpl.activeTimer = (Object) null
160 (8 bytes): SubstrateDiagnostics.threadOnlyAttachedForCrashHandler = (bytes)
0x000001875400de20: 0x0000000000000000
168 (8 bytes): ThreadLocalAllocation.allocatedBytes = (Word) 0 (0x0000000000000000)
176 (8 bytes): VMThreads.IsolateTL = (Word) 1680745693184 (0x0000018754400000)
184 (8 bytes): VMThreads.OSThreadHandleTL = (Word) 188 (0x00000000000000bc)
192 (8 bytes): VMThreads.OSThreadIdTL = (Word) 13368 (0x0000000000003438)
200 (8 bytes): VMThreads.StackBase = (Word) 40189624320 (0x000000095b7d0000)
208 (8 bytes): VMThreads.StackEnd = (Word) 40188575744 (0x000000095b6d0000)
216 (8 bytes): VMThreads.StartedByCurrentIsolate = (bytes)
0x000001875400de58: 0x0000000000000000
224 (8 bytes): VMThreads.nextTL = (Word) 0 (0x0000000000000000)
232 (8 bytes): VMThreads.unalignedIsolateThreadMemoryTL = (Word) 1680741555536 (0x000001875400dd50)
240 (4 bytes): ActionOnExitSafepointSupport.actionTL = (int) 0 (0x00000000)
244 (4 bytes): ActionOnTransitionToJavaSupport.actionTL = (int) 0 (0x00000000)
248 (4 bytes): ImplicitExceptions.implicitExceptionsAreFatal = (int) 0 (0x00000000)
252 (4 bytes): StackOverflowCheckImpl.yellowZoneStateTL = (int) 2130640638 (0x7efefefe)
256 (4 bytes): StatusSupport.safepointBehaviorTL = (int) 1 (0x00000001)
260 (4 bytes): ThreadingSupportImpl.currentPauseDepth = (int) 0 (0x00000000)
No VMOperation in progress
The 15 most recent VM operation status changes (oldest first):
Counters:
Java frame anchors for the failing thread 0x000001875400dd80:
No anchors
Stacktrace for the failing thread 0x000001875400dd80:
SP 0x000000095b7cf2a0 IP 0x00007ff738654ec0 [image code] com.oracle.svm.core.jdk.VMErrorSubstitutions.shutdown(VMErrorSubstitutions.java:116)
SP 0x000000095b7cf2a0 IP 0x00007ff738654ec0 [image code] com.oracle.svm.core.jdk.VMErrorSubstitutions.shouldNotReachHere(VMErrorSubstitutions.java:109)
SP 0x000000095b7cf2d0 IP 0x00007ff7386c4784 [image code] com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:65)
SP 0x000000095b7cf2e0 IP 0x00007ff738677724 [image code] com.oracle.svm.core.option.OptionOrigin.from(OptionOrigin.java:79)
SP 0x000000095b7cf320 IP 0x00007ff7386cbe51 [image code] com.oracle.svm.driver.APIOptionHandler.translateOption(APIOptionHandler.java:299)
SP 0x000000095b7cf3f0 IP 0x00007ff7386c9619 [image code] com.oracle.svm.driver.APIOptionHandler.consume(APIOptionHandler.java:276)
SP 0x000000095b7cf4b0 IP 0x00007ff7386eb4ce [image code] com.oracle.svm.driver.NativeImage$NativeImageArgsProcessor.apply(NativeImage.java:1463)
SP 0x000000095b7cf4f0 IP 0x00007ff7386d379c [image code] com.oracle.svm.driver.DefaultOptionHandler.consume(DefaultOptionHandler.java:324)
SP 0x000000095b7cf590 IP 0x00007ff7386eb4ce [image code] com.oracle.svm.driver.NativeImage$NativeImageArgsProcessor.apply(NativeImage.java:1463)
SP 0x000000095b7cf5d0 IP 0x00007ff7387084f2 [image code] com.oracle.svm.driver.NativeImage.processNativeImageArgs(NativeImage.java:1718)
SP 0x000000095b7cf630 IP 0x00007ff7386f4311 [image code] com.oracle.svm.driver.NativeImage.completeImageBuild(NativeImage.java:936)
SP 0x000000095b7cf710 IP 0x00007ff7386efc39 [image code] com.oracle.svm.driver.NativeImage.build(NativeImage.java:1380)
SP 0x000000095b7cf750 IP 0x00007ff73870581b [image code] com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1350)
SP 0x000000095b7cf7b0 IP 0x00007ff738705093 [image code] com.oracle.svm.driver.NativeImage.main(NativeImage.java:1337)
SP 0x000000095b7cf7d0 IP 0x00007ff7385e492e [image code] com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:149)
SP 0x000000095b7cf7d0 IP 0x00007ff7385e492e [image code] com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:185)
SP 0x000000095b7cf7f0 IP 0x00007ff7386220db [image code] com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(IsolateEnterStub.java:0)
VM mutexes:
mutex "thread" is unlocked.
mutex "mainVMOperationControlWorkQueue" is unlocked.
mutex "referencePendingList" is unlocked.
Heap settings and statistics:
Supports isolates: true
Heap base: 0x0000018754400000
Object reference size: 8
Aligned chunk size: 1048576
Incremental collections: 0
Complete collections: 0
Native image heap boundaries:
ReadOnly Primitives: 0x0000018754501028 - 0x000001875467dc08
ReadOnly References: 0x000001875467dc08 - 0x00000187547f87c8
ReadOnly Relocatables: 0x00000187547f9000 - 0x0000018754892460
Writable Primitives: 0x0000018754893000 - 0x000001875491e0e0
Writable References: 0x000001875491e0e0 - 0x0000018754b8f458
Writable Huge: 0x0000018754c00030 - 0x0000018754c23ac0
ReadOnly Huge: 0x0000018754c24030 - 0x0000018754d814f8
Heap:
Young generation:
Eden:
edenSpace:
aligned: 0/0 unaligned: 0/0
Survivors:
Survivor-1 From:
aligned: 0/0 unaligned: 0/0
Survivor-1 To:
aligned: 0/0 unaligned: 0/0
Survivor-2 From:
aligned: 0/0 unaligned: 0/0
Survivor-2 To:
aligned: 0/0 unaligned: 0/0
Survivor-3 From:
aligned: 0/0 unaligned: 0/0
Survivor-3 To:
aligned: 0/0 unaligned: 0/0
Survivor-4 From:
aligned: 0/0 unaligned: 0/0
Survivor-4 To:
aligned: 0/0 unaligned: 0/0
Survivor-5 From:
aligned: 0/0 unaligned: 0/0
Survivor-5 To:
aligned: 0/0 unaligned: 0/0
Survivor-6 From:
aligned: 0/0 unaligned: 0/0
Survivor-6 To:
aligned: 0/0 unaligned: 0/0
Survivor-7 From:
aligned: 0/0 unaligned: 0/0
Survivor-7 To:
aligned: 0/0 unaligned: 0/0
Survivor-8 From:
aligned: 0/0 unaligned: 0/0
Survivor-8 To:
aligned: 0/0 unaligned: 0/0
Survivor-9 From:
aligned: 0/0 unaligned: 0/0
Survivor-9 To:
aligned: 0/0 unaligned: 0/0
Survivor-10 From:
aligned: 0/0 unaligned: 0/0
Survivor-10 To:
aligned: 0/0 unaligned: 0/0
Survivor-11 From:
aligned: 0/0 unaligned: 0/0
Survivor-11 To:
aligned: 0/0 unaligned: 0/0
Survivor-12 From:
aligned: 0/0 unaligned: 0/0
Survivor-12 To:
aligned: 0/0 unaligned: 0/0
Survivor-13 From:
aligned: 0/0 unaligned: 0/0
Survivor-13 To:
aligned: 0/0 unaligned: 0/0
Survivor-14 From:
aligned: 0/0 unaligned: 0/0
Survivor-14 To:
aligned: 0/0 unaligned: 0/0
Survivor-15 From:
aligned: 0/0 unaligned: 0/0
Survivor-15 To:
aligned: 0/0 unaligned: 0/0
Old generation:
oldFromSpace:
aligned: 0/0 unaligned: 0/0
oldToSpace:
aligned: 0/0 unaligned: 0/0
Unused:
aligned: 0/0
Fatal error: Unsupported OptionOrigin: C:\Users\WESTIN~1\AppData\Local\Temp\native-image4410539994237792834args
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.830 s
[INFO] Finished at: 2022-05-11T14:22:30+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.graalvm.buildtools:native-maven-plugin:0.9.11:build (default) on project cli-normal: Execution of D:\env\graalvm-ce-java11-22.1.0\bin\native-image.cmd @C:\Users\WESTIN~1\AppData\Local\Temp\native-image4410539994237792834args returned non-zero result -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists