Skip to content

22.3.0 CE native build crashes #5303

Closed
Closed
@lowecg

Description

@lowecg

Describe the issue
I’m trying to build a Clojure-based lambda using the native image compilation, but the build immediately crashes with the following:
Fatal error: Failed while initializing the performance data.

Steps to reproduce the issue
Please include both build steps as well as run steps

  1. run docker
  2. install Babashka
  3. git clone --depth 1 https://github.com/lowecg/graalvm-build-test
  4. bb hl:compile && bb hl:native:executable

Describe GraalVM and your environment:

  • GraalVM version: 22.3.0 CE
  • JDK major version: 17
  • OS: macOS Monterey 12.6, Apple Silicon
  • Architecture: AARCH64

More details
I’m trying to build a Clojure-based lambda using the native image compilation, but the build immediately crashes with:
Fatal error: Failed while initializing the performance data.

Fatal error: Failed while initializing the performance data.

Current timestamp: 1666775189252

Printing Instructions (ip=0x00000000004a61f4):
  0x00000000004a61d4: 0xe0 0x03 0x40 0xb2 0x80 0x07 0x00 0xf9 0xc0 0xdf 0x9f 0x52 0xc0 0xdf 0xaf 0x72
  0x00000000004a61e4: 0x80 0x37 0x01 0xb9 0xe0 0x17 0x40 0xf9 0xe1 0x8b 0x41 0xa9 0x54 0xff 0xff 0x97
  0x00000000004a61f4: 0x1f 0x20 0x03 0xd5 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xff 0x03 0x01 0xd1
  0x00000000004a6204: 0xfd 0x7b 0x03 0xa9 0x82 0x07 0x40 0xf9 0xff 0x63 0x22 0xeb 0x29 0x05 0x00 0x54

Top of stack (sp=0x0000ffff9d6fe770):
  0x0000ffff9d6fe770: 0x0000ffff9d6ff1f0 0x0000ffffda324680
  0x0000ffff9d6fe780: 0x0000ffff9d6fe9e0 0x0000ffff9e621658
  0x0000ffff9d6fe790: 0x0000ffff9e300000 0x00000000004db72c
  0x0000ffff9d6fe7a0: 0x0000ffff9d6fe9e0 0x000000000050fcd8
  0x0000ffff9d6fe7b0: 0x00000000004f1888 0x0000ffff9d6fe790
  0x0000ffff9d6fe7c0: 0x0000ffff9eb1f328 0x0000ffff9e97bf08
  0x0000ffff9d6fe7d0: 0x0000ffff9d6fe9e0 0x00000000004db72c
  0x0000ffff9d6fe7e0: 0x0000ffff9e8ed008 0x00000000004f2de0
  0x0000ffff9d6fe7f0: 0x0000ffff9d6fe7c0 0x0000000000000000
  0x0000ffff9d6fe800: 0x0000ffff9eacbe58 0x0000ffff9e8ed008
  0x0000ffff9d6fe810: 0x0000ffff9d6fe9e0 0x00000000004db790
  0x0000ffff9d6fe820: 0x0000ffff9d6fe9e0 0x000000000048b0c0
  0x0000ffff9d6fe830: 0x0000ffff9d6fe9e0 0x0000ffff9e8bc3d8
  0x0000ffff9d6fe840: 0x0000ffff9eb1f548 0x0000ffff9e8ed008
  0x0000ffff9d6fe850: 0x0000ffff9d6fe9e0 0x000000000050605c
  0x0000ffff9d6fe860: 0x0000ffff9d6ff1f0 0x0000000000000000
  0x0000ffff9d6fe870: 0x0000ffff9d6fe9e0 0x0000ffff9e8ed008
  0x0000ffff9d6fe880: 0x0000ffff9e9b44a0 0x0000000000000002
  0x0000ffff9d6fe890: 0x0000ffff9d6fe9e0 0x00000000004f2c8c
  0x0000ffff9d6fe8a0: 0x0000000000000000 0x0000ffff9e300000
  0x0000ffff9d6fe8b0: 0x0000000100000000 0x0000000000000002
  0x0000ffff9d6fe8c0: 0x0000ffff9d6fe9e0 0x0000000000454c60
  0x0000ffff9d6fe8d0: 0x0000000000000000 0x0000000000000000
  0x0000ffff9d6fe8e0: 0x0000000000000000 0x0000000000000000
  0x0000ffff9d6fe8f0: 0x0000000000000000 0x000000000c973e30
  0x0000ffff9d6fe900: 0x0000000000000000 0x0000000000000000
  0x0000ffff9d6fe910: 0x0000000000000000 0x0000000000000000
  0x0000ffff9d6fe920: 0x0000000000000000 0x0000000000000000
  0x0000ffff9d6fe930: 0x0000000000000000 0x0000000000000000
  0x0000ffff9d6fe940: 0x0000000000000000 0x0000000000000000
  0x0000ffff9d6fe950: 0x0000000000000000 0x0000000000000000
  0x0000ffff9d6fe960: 0x0000000000000000 0x0000000000000000

Top frame info:
  TotalFrameSize in CodeInfoTable 64

Threads:
  0x0000ffff90000b40 STATUS_IN_JAVA (PREVENT_VM_FROM_REACHING_SAFEPOINT) "Performance data" - 0x0000ffff9e8ed008, daemon, stack(0x0000ffff9cf01000,0x0000ffff9d700000)
  0x0000ffff98000b40 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Reference Handler" - 0x0000ffff9e8eda78, daemon, stack(0x0000ffff9d901000,0x0000ffff9e100000)
  0x000000000c973940 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "main" - 0x0000ffff9e8ed9b8, stack(0x0000ffffd9b26000,0x0000ffffda325000)

VM thread locals for the failing thread 0x0000ffff90000b40:
  0 (8 bytes): JNIThreadLocalEnvironment.jniFunctions = (bytes)
    0x0000ffff90000b40: 0x0000ffff9e750010
  8 (8 bytes): StackOverflowCheckImpl.stackBoundaryTL = (Word) 1 (0x0000000000000001)
  16 (4 bytes): Safepoint.safepointRequested = (int) 2147469811 (0x7fffc9f3)
  20 (4 bytes): StatusSupport.statusTL = (int) 1 (0x00000001)
  24 (32 bytes): ThreadLocalAllocation.regularTLAB = (bytes)
    0x0000ffff90000b58: 0x0000ffff9cd00000 0x0000ffff9ce00000
    0x0000ffff90000b68: 0x0000ffff9cd014b0 0x0000000000000000
  56 (8 bytes): PlatformThreads.currentThread = (Object) com.oracle.svm.core.jvmstat.PerfManager$PerfDataThread (0x0000ffff9e8ed008)
  64 (8 bytes): JavaFrameAnchors.lastAnchor = (Word) 0 (0x0000000000000000)
  72 (8 bytes): AccessControlContextStack = (Object) null
  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 (0x0000ffff9cd011c8)
  120 (8 bytes): JNIThreadLocalPendingException.pendingException = (Object) null
  128 (8 bytes): JNIThreadLocalPinnedObjects.pinnedObjectsListHead = (Object) null
  136 (8 bytes): JNIThreadOwnedMonitors.ownedMonitors = (Object) null
  144 (8 bytes): JfrThreadLocal.javaEventWriter = (Object) null
  152 (8 bytes): NoAllocationVerifier.openVerifiers = (Object) null
  160 (8 bytes): ThreadingSupportImpl.activeTimer = (Object) null
  168 (8 bytes): JfrThreadLocal.dataLost = (Word) 0 (0x0000000000000000)
  176 (8 bytes): JfrThreadLocal.javaBuffer = (Word) 0 (0x0000000000000000)
  184 (8 bytes): JfrThreadLocal.nativeBuffer = (Word) 0 (0x0000000000000000)
  192 (8 bytes): JfrThreadLocal.parentThreadId = (long) 1 (0x0000000000000001)
  200 (8 bytes): JfrThreadLocal.threadId = (long) 35 (0x0000000000000023)
  208 (8 bytes): SamplerThreadLocal.localBuffer = (Word) 0 (0x0000000000000000)
  216 (8 bytes): SubstrateDiagnostics.threadOnlyAttachedForCrashHandler = (bytes)
    0x0000ffff90000c18: 0x0000000000000000
  224 (8 bytes): ThreadLocalAllocation.allocatedBytes = (Word) 0 (0x0000000000000000)
  232 (8 bytes): VMThreads.IsolateTL = (Word) 281473335689216 (0x0000ffff9e300000)
  240 (8 bytes): VMThreads.OSThreadHandleTL = (Word) 281473323102704 (0x0000ffff9d6ff1f0)
  248 (8 bytes): VMThreads.OSThreadIdTL = (Word) 281473323102704 (0x0000ffff9d6ff1f0)
  256 (8 bytes): VMThreads.StackBase = (Word) 281473323106304 (0x0000ffff9d700000)
  264 (8 bytes): VMThreads.StackEnd = (Word) 281473314721792 (0x0000ffff9cf01000)
  272 (8 bytes): VMThreads.StartedByCurrentIsolate = (bytes)
    0x0000ffff90000c50: 0x0000000000000001
  280 (8 bytes): VMThreads.nextTL = (Word) 281473231883072 (0x0000ffff98000b40)
  288 (8 bytes): VMThreads.unalignedIsolateThreadMemoryTL = (Word) 281473097665312 (0x0000ffff90000b20)
  296 (4 bytes): ActionOnExitSafepointSupport.actionTL = (int) 0 (0x00000000)
  300 (4 bytes): ActionOnTransitionToJavaSupport.actionTL = (int) 0 (0x00000000)
  304 (4 bytes): ImplicitExceptions.implicitExceptionsAreFatal = (int) 0 (0x00000000)
  308 (4 bytes): StackOverflowCheckImpl.yellowZoneStateTL = (int) 2130640638 (0x7efefefe)
  312 (4 bytes): StatusSupport.safepointBehaviorTL = (int) 1 (0x00000001)
  316 (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 0x0000ffff90000b40:
  No anchors

Stacktrace for the failing thread 0x0000ffff90000b40:
  SP 0x0000ffff9d6fe770 IP 0x00000000004a61f4  [image code] com.oracle.svm.core.jdk.VMErrorSubstitutions.shutdown(VMErrorSubstitutions.java:116)
  SP 0x0000ffff9d6fe770 IP 0x00000000004a61f4  [image code] com.oracle.svm.core.jdk.VMErrorSubstitutions.shouldNotReachHere(VMErrorSubstitutions.java:109)
  SP 0x0000ffff9d6fe7b0 IP 0x000000000050fcd8  [image code] com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:65)
  SP 0x0000ffff9d6fe7e0 IP 0x00000000004db72c  [image code] com.oracle.svm.core.util.VMError.guarantee(VMError.java:89)
  SP 0x0000ffff9d6fe7e0 IP 0x00000000004db72c  [image code] com.oracle.svm.core.jvmstat.PerfManager$PerfDataThread.initializeMemory(PerfManager.java:208)
  SP 0x0000ffff9d6fe820 IP 0x00000000004db790  [image code] com.oracle.svm.core.jvmstat.PerfManager$PerfDataThread.run(PerfManager.java:187)
  SP 0x0000ffff9d6fe860 IP 0x000000000050605c  [image code] com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:775)
  SP 0x0000ffff9d6fe8a0 IP 0x00000000004f2c8c  [image code] com.oracle.svm.core.posix.thread.PosixPlatformThreads.pthreadStartRoutine(PosixPlatformThreads.java:203)
  SP 0x0000ffff9d6fe8d0 IP 0x0000000000454c60  [image code] com.oracle.svm.core.code.IsolateEnterStub.PosixPlatformThreads_pthreadStartRoutine_38d96cbc1a188a6051c29be1299afe681d67942e(IsolateEnterStub.java:0)

VM mutexes:
  mutex "thread" is unlocked.
  mutex "SamplerBufferPool" is unlocked.
  mutex "perfDataInitialization" is locked by thread 0x0000ffff90000b40
  mutex "jfrRecorder" is unlocked.
  mutex "referencePendingList" is unlocked.
  mutex "jfrThreadRepository" is unlocked.
  mutex "mainVMOperationControlWorkQueue" is unlocked.

AOT compiled code is mapped at 0x0000000000420000 - 0x0000000000ac32ef

Heap settings and statistics:
  Supports isolates: true
  Heap base: 0x0000ffff9e300000
  Object reference size: 8
  Aligned chunk size: 1048576
  Incremental collections: 0
  Complete collections: 0

Native image heap boundaries:
  ReadOnly Primitives: 0x0000ffff9e401028 - 0x0000ffff9e5a2ed0
  ReadOnly References: 0x0000ffff9e5a2ed0 - 0x0000ffff9e74dd68
  ReadOnly Relocatables: 0x0000ffff9e750000 - 0x0000ffff9e7f8468
  Writable Primitives: 0x0000ffff9e801028 - 0x0000ffff9e888550
  Writable References: 0x0000ffff9e888550 - 0x0000ffff9eb4a900
  Writable Huge: 0x0000ffff9ec00030 - 0x0000ffff9ec29b48
  ReadOnly Huge: 0x0000ffff9ec30030 - 0x0000ffff9edc58b0

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: Failed while initializing the performance data.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions