Title: Segfault in graal native-image code using quarkus. · Issue #864 · msgpack/msgpack-java · GitHub
Open Graph Title: Segfault in graal native-image code using quarkus. · Issue #864 · msgpack/msgpack-java
X Title: Segfault in graal native-image code using quarkus. · Issue #864 · msgpack/msgpack-java
Description: I'm trying to use msgpack in a Quarkus native project, but it is giving warnings during build: Warning: RecomputeFieldValue.ArrayBaseOffset automatic substitution failed. The automatic substitution registration was attempted because a ca...
Open Graph Description: I'm trying to use msgpack in a Quarkus native project, but it is giving warnings during build: Warning: RecomputeFieldValue.ArrayBaseOffset automatic substitution failed. The automatic substitution...
X Description: I'm trying to use msgpack in a Quarkus native project, but it is giving warnings during build: Warning: RecomputeFieldValue.ArrayBaseOffset automatic substitution failed. The automatic substitu...
Opengraph URL: https://github.com/msgpack/msgpack-java/issues/864
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segfault in graal native-image code using quarkus.","articleBody":"I'm trying to use msgpack in a Quarkus native project, but it is giving warnings during build:\r\n```\r\nWarning: RecomputeFieldValue.ArrayBaseOffset automatic substitution failed. The automatic substitution registration was attempted because a call to jdk.internal.misc.Unsafe.arrayBaseOffset(Class) was detected in the static initializer of org.msgpack.core.buffer.MessageBuffer. Detailed failure reason(s): Could not determine the field where the value produced by the call to jdk.internal.misc.Unsafe.arrayBaseOffset(Class) for the array base offset computation is stored. The call is not directly followed by a field store or by a sign extend node followed directly by a field store.\r\nWarning: RecomputeFieldValue.ArrayIndexScale automatic substitution failed. The automatic substitution registration was attempted because a call to jdk.internal.misc.Unsafe.arrayIndexScale(Class) was detected in the static initializer of org.msgpack.core.buffer.MessageBuffer. Detailed failure reason(s): Could not determine the field where the value produced by the call to jdk.internal.misc.Unsafe.arrayIndexScale(Class) for the array index scale computation is stored. The call is not directly followed by a field store or by a sign extend node followed directly by a field store.\r\n```\r\n\r\nAnd results in a segfault during execution:\r\n```\r\n[ [ SegfaultHandler caught a segfault in thread 0x000001ec9c943dc0 ] ]\r\nsiginfo: ExceptionCode: -1073741819, reading address 0x000001ec9e600118 (heapBase + 280)\r\nGeneral purpose register values:\r\n RAX 0x00000000060d295c is an unknown value\r\n RBX 0x00000000060dfb7a is an unknown value\r\n RCX 0x0000000000001ffe is an unknown value\r\n RDX 0x000001eccecffc08 points into an aligned TLAB chunk of thread 0x000001ec9c943dc0\r\n is an object of type org.msgpack.core.MessagePacker\r\n RBP 0x0000000000000000\r\n RSI 0x0000000000000000\r\n RDI 0x000001eccecfdbd0 points into an aligned TLAB chunk of thread 0x000001ec9c943dc0\r\n is an object of type [B with length 8192: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ...\r\n RSP 0x000000dee597eb30 points into the stack for thread 0x000001ec9c943dc0\r\n R8 0x000001eccec94ae0 points into an aligned TLAB chunk of thread 0x000001ec9c943dc0\r\n R9 0x0000000000000000\r\n R10 0x000001eccecffbe8 points into an aligned TLAB chunk of thread 0x000001ec9c943dc0\r\n is an object of type org.msgpack.core.buffer.MessageBuffer\r\n R11 0x0000000000000000\r\n R12 0x000000000000059e is an unknown value\r\n R13 0x00000000000005a5 is an unknown value\r\n R14 0x000001ec9e600000 is the heap base\r\n R15 0x000001ec9c943dc0 is a thread\r\n EFL 0x0000000000010297 is an unknown value\r\n RIP 0x00007ff6fb094c1d points into AOT compiled code org.msgpack.core.MessagePacker.flushBuffer(MessagePacker.java)\r\n\r\nPrinting instructions (ip=0x00007ff6fb094c1d):\r\n 0x00007ff6fb094b1d: 0x51 0xfc 0x48 0x8b 0xe3 0x83 0x7a 0x20 0x01 0x0f 0x8d 0x5b 0x00 0x00 0x00 0x8b\r\n 0x00007ff6fb094b2d: 0x52 0x04 0x90 0x85 0xd2 0x0f 0x84 0x65 0x00 0x00 0x00 0x41 0x8b 0x54 0xd6 0x04\r\n 0x00007ff6fb094b3d: 0x85 0xd2 0x0f 0x84 0x5e 0x00 0x00 0x00 0x41 0x8b 0x04 0xd6 0xc1 0xe8 0x05 0x0f\r\n 0x00007ff6fb094b4d: 0x1f 0x40 0x00 0x81 0xf8 0x7c 0x30 0xa8 0x02 0x0f 0x84 0x1b 0x00 0x00 0x00 0x81\r\n 0x00007ff6fb094b5d: 0xf8 0x0a 0x2f 0xa8 0x02 0x0f 0x84 0x0f 0x00 0x00 0x00 0x49 0x8b 0x84 0xc6 0xa8\r\n 0x00007ff6fb094b6d: 0x00 0x00 0x00 0x49 0x8d 0x14 0xd6 0xff 0xd0 0x90 0x48 0x83 0xc4 0x18 0x41 0x83\r\n 0x00007ff6fb094b7d: 0x6f 0x10 0x01 0x0f 0x8e 0xea 0x87 0x64 0xfc 0xc3 0x48 0x8b 0xc2 0x48 0x89 0x44\r\n 0x00007ff6fb094b8d: 0x24 0x10 0x90 0xe8 0x1b 0x00 0x00 0x00 0x90 0x48 0x8b 0x54 0x24 0x10 0xeb 0x8f\r\n 0x00007ff6fb094b9d: 0xe8 0x6e 0x46 0x63 0xfc 0x90 0xe8 0x68 0x46 0x63 0xfc 0x90 0xcc 0xcc 0xcc 0xcc\r\n 0x00007ff6fb094bad: 0xcc 0xcc 0xcc 0x48 0x8d 0x5c 0x24 0xc8 0x49 0x3b 0x5f 0x08 0x0f 0x86 0x21 0x87\r\n 0x00007ff6fb094bbd: 0x51 0xfc 0x48 0x8b 0xe3 0x8b 0x42 0x04 0x85 0xc0 0x0f 0x84 0x5f 0x01 0x00 0x00\r\n 0x00007ff6fb094bcd: 0x45 0x8b 0x44 0xc6 0x08 0x8b 0x4a 0x20 0x45 0x85 0xc0 0x0f 0x84 0x58 0x01 0x00\r\n 0x00007ff6fb094bdd: 0x00 0x41 0x8b 0x44 0xc6 0x04 0x85 0xc0 0x0f 0x84 0x55 0x01 0x00 0x00 0x48 0x89\r\n 0x00007ff6fb094bed: 0x54 0x24 0x20 0x45 0x8b 0x0c 0xc6 0x43 0x8b 0x5c 0xc6 0x04 0x47 0x8b 0x44 0xc6\r\n 0x00007ff6fb094bfd: 0x10 0x41 0x8d 0x70 0xf0 0x49 0x8d 0x3c 0xde 0x41 0xc1 0xe9 0x05 0x4d 0x8d 0x04\r\n 0x00007ff6fb094c0d: 0xc6 0x66 0x90 0x41 0x81 0xf9 0x7c 0x30 0xa8 0x02 0x0f 0x84 0x48 0x00 0x00 0x00\r\n\u003e 0x00007ff6fb094c1d: 0x4b 0x8b 0x84 0xce 0x18 0x01 0x00 0x00 0x49 0x8b 0xd0 0x4c 0x8b 0xc7 0x44 0x8b\r\n 0x00007ff6fb094c2d: 0xce 0x8b 0xf9 0xff 0xd0 0x90 0x48 0x8b 0x54 0x24 0x20 0xc7 0x42 0x08 0x00 0x00\r\n 0x00007ff6fb094c3d: 0x00 0x00 0x48 0x8b 0x42 0x10 0x48 0x63 0x4a 0x20 0x48 0x03 0xc8 0x48 0x89 0x4a\r\n 0x00007ff6fb094c4d: 0x10 0xc7 0x42 0x20 0x00 0x00 0x00 0x00 0x48 0x83 0xc4 0x38 0x41 0x83 0x6f 0x10\r\n 0x00007ff6fb094c5d: 0x01 0x0f 0x8e 0x0c 0x87 0x64 0xfc 0xc3 0x89 0x44 0x24 0x1c 0x89 0x5c 0x24 0x18\r\n 0x00007ff6fb094c6d: 0x48 0x89 0x7c 0x24 0x10 0x4c 0x89 0x44 0x24 0x08 0x8b 0xd9 0x8b 0xce 0xe9 0x67\r\n 0x00007ff6fb094c7d: 0x00 0x00 0x00 0x66 0x66 0x66 0x0f 0x1f 0x84 0x00 0x00 0x00 0x00 0x00 0x66 0x66\r\n 0x00007ff6fb094c8d: 0x66 0x90 0x90 0x47 0x8b 0x54 0xce 0x04 0x45 0x8b 0x5c 0xc6 0x14 0x45 0x8b 0xe2\r\n 0x00007ff6fb094c9d: 0x45 0x2b 0xe3 0x44 0x3b 0xe3 0x44 0x0f 0x4f 0xe3 0x66 0x0f 0x1f 0x84 0x00 0x00\r\n 0x00007ff6fb094cad: 0x00 0x00 0x00 0x41 0x83 0xfc 0x01 0x0f 0x8d 0x97 0x00 0x00 0x00 0x89 0x4c 0x24\r\n 0x00007ff6fb094cbd: 0x34 0x83 0xfb 0x01 0x0f 0x8c 0x33 0x00 0x00 0x00 0x89 0x5c 0x24 0x2c 0x49 0x8b\r\n 0x00007ff6fb094ccd: 0xd0 0x66 0x90 0xe8 0xbb 0xb0 0xe4 0xfb 0x90 0x8b 0x5c 0x24 0x2c 0x8b 0x4c 0x24\r\n 0x00007ff6fb094cdd: 0x34 0x4c 0x8b 0x44 0x24 0x08 0x8b 0x44 0x24 0x1c 0x45 0x8b 0x4c 0xc6 0x0c 0x0f\r\n 0x00007ff6fb094ced: 0x1f 0x40 0x00 0x45 0x85 0xc9 0x75 0x9b 0xe9 0x4c 0x00 0x00 0x00 0x48 0x8b 0x54\r\n 0x00007ff6fb094cfd: 0x24 0x20 0xc7 0x42 0x08 0x00 0x00 0x00 0x00 0x4c 0x8b 0x42 0x10 0x4c 0x63 0x4a\r\n 0x00007ff6fb094d0d: 0x20 0x4d 0x03 0xc8 0x4c 0x89 0x4a 0x10 0xc7 0x42 0x20 0x00 0x00 0x00 0x00 0x48\r\n\r\nTop of stack (sp=0x000000dee597eb30):\r\n 0x000000dee597eb10: 0x000001eccecffd00 0x000001eccecfdb10 0x000036e500004bb8 0x00007ff6fb094cd5\r\n\u003e 0x000000dee597eb30: 0x000001ecb3b262b0 0x000001eccecfdb10 0x000001eccecfdbd0 0x060dfb62060dfb7a\r\n 0x000000dee597eb50: 0x000001eccecffc08 0x0000059efb0a73d7 0x00001ffcf7176d60 0x00007ff6fb0973e3\r\n 0x000000dee597eb70: 0x0000000500000004 0x000001ecb3a4b878 0x000001eccecfdb48 0x00007ff6fb0a9b37\r\n 0x000000dee597eb90: 0x000001eccecffc08 0x000001eccecea430 0xffffffca40e75c29 0x00007ff6fb0a7c30\r\n 0x000000dee597ebb0: 0x000001eccecfff20 0x000001eccecfdb48 0x000001eccecffc08 0x00007ff6f70fbfa4\r\n 0x000000dee597ebd0: 0xffffffdc00004bb8 0x000001eccec54d70 0x000001eccecffc08 0x000001eccecea430\r\n 0x000000dee597ebf0: 0x000001eccecffc08 0x00007ff6fb0a83c5 0x000001eccecffd00 0x00007ff6f70fbede\r\n 0x000000dee597ec10: 0x000001eccece9708 0x060c01c3f70c0946 0x000001eccec00e18 0x000001eccecfdb48\r\n 0x000000dee597ec30: 0x000001ec00000ccb 0x00007ff6fb0a7235 0x000001ecb4f97af8 0x000001ecb56a4a48\r\n 0x000000dee597ec50: 0x000001eccecfdb48 0x00007ff6fb0a715f 0x000001eccecea430 0x000001eccecfdb48\r\n 0x000000dee597ec70: 0x000001eccecfdb48 0x00007ff6f6f19917 0x000001eccecfdb10 0x000001eccecfdb48\r\n 0x000000dee597ec90: 0x000001eccecea430 0x00007ff6f6f1a9f2 0x000001ecb56a45d8 0x000001eccecfdb10\r\n 0x000000dee597ecb0: 0x000001eccaae69d0 0x000001eccece85e0 0x000001eccecea430 0x00007ff6f6c227f7\r\n 0x000000dee597ecd0: 0x0039006200330061 0x0031003200330038 0x0031003100660066 0x0030003100320031\r\n 0x000000dee597ecf0: 0x000001eccece85e0 0x02a6182700350039 0x000001ecca015b10 0x0037003000310032\r\n 0x000000dee597ed10: 0x0000000000000000 0x00007ff6f6c15ebf 0x000001ecca04ec08 0x00007ff6f93e0cd9\r\n\r\nVM thread locals for the failing thread 0x000001ec9c943dc0:\r\n 0: JNIThreadLocalEnvironment.jniFunctions = (bytes) 0x000001ecb38e8008\r\n 8: StackOverflowCheckImpl.stackBoundaryTL = (Word) 0x0000000000000001 (1)\r\n 16: Safepoint.safepointRequested = (int) 0x7530e2c1 (1966138049)\r\n 20: StatusSupport.statusTL = (int) 0x00000001 (1)\r\n 24: ThreadLocalAllocation.regularTLAB = (bytes)\r\n 0x000001ec9c943dd8: 0x000001eccea80000 0x000001ecceb00000\r\n 0x000001ec9c943de8: 0x000001ecceaa51e0 0x000001ecd60de000\r\n 56: JavaFrameAnchors.lastAnchor = (Word) 0x0000000000000000 (0)\r\n 64: PlatformThreads.currentVThreadId = (long) 0x0000000000000001 (1)\r\n 72: PlatformThreads.currentThread = (Object) 0x000001ecb44cf578\r\n is an object of type java.lang.Thread\r\n 80: ActionOnExitSafepointSupport.returnIP = (Word) 0x0000000000000000 (0)\r\n 88: ActionOnExitSafepointSupport.returnSP = (Word) 0x0000000000000000 (0)\r\n 96: SubstrateDiagnostics.threadOnlyAttachedForCrashHandler = (bytes) 0x0000000000000000\r\n 104: ThreadLocalAllocation.allocatedBytes = (Word) 0x0000000024348430 (607421488)\r\n 112: VMThreads.IsolateTL = (Word) 0x000001ec9e600000 (2115781001216)\r\n 120: VMThreads.OSThreadHandleTL = (Word) 0x0000000000000144 (324)\r\n 128: VMThreads.OSThreadIdTL = (Word) 0x0000000000007f88 (32648)\r\n 136: VMThreads.StackBase = (Word) 0x000000dee5980000 (957334683648)\r\n 144: VMThreads.StackEnd = (Word) 0x000000dee5880000 (957333635072)\r\n 152: VMThreads.StartedByCurrentIsolate = (bytes) 0x0000000000000000\r\n 160: VMThreads.nextTL = (Word) 0x0000000000000000 (0)\r\n 168: VMThreads.unalignedIsolateThreadMemoryTL = (Word) 0x000001ec9c943db0 (2115750870448)\r\n 176: ExceptionUnwind.currentException = (Object) 0x0000000000000000\r\n 180: IsolatedCompileClient.currentClient = (Object) 0x0000000000000000\r\n 184: IsolatedCompileContext.currentContext = (Object) 0x0000000000000000\r\n 188: JNIObjectHandles.handles = (Object) 0x000001eccb0206f0\r\n is an object of type com.oracle.svm.core.handles.ThreadLocalHandles\r\n 192: JNIThreadLocalPendingException.pendingException = (Object) 0x0000000000000000\r\n 196: JNIThreadLocalReferencedObjects.referencedObjectsListHead = (Object) 0x0000000000000000\r\n 200: JNIThreadOwnedMonitors.ownedMonitors = (Object) 0x0000000000000000\r\n 204: NoAllocationVerifier.openVerifiers = (Object) 0x0000000000000000\r\n 208: ThreadingSupportImpl.activeTimer = (Object) 0x0000000000000000\r\n 212: ActionOnExitSafepointSupport.actionTL = (int) 0x00000000 (0)\r\n 216: ActionOnTransitionToJavaSupport.actionTL = (int) 0x00000000 (0)\r\n 220: ImplicitExceptions.implicitExceptionsAreFatal = (int) 0x00000000 (0)\r\n 224: StackOverflowCheckImpl.yellowZoneStateTL = (int) 0x7efefefe (2130640638)\r\n 228: StatusSupport.safepointBehaviorTL = (int) 0x00000001 (1)\r\n 232: ThreadingSupportImpl.currentPauseDepth = (int) 0x00000000 (0)\r\n\r\nJava frame anchors for the failing thread 0x000001ec9c943dc0:\r\n No anchors\r\n\r\nStacktrace for the failing thread 0x000001ec9c943dc0 (A=AOT compiled, J=JIT compiled, D=deoptimized, i=inlined):\r\n A SP 0x000000dee597eb30 IP 0x00007ff6fb094c1d size=64 org.msgpack.core.MessagePacker.flushBuffer(MessagePacker.java)\r\n i SP 0x000000dee597eb70 IP 0x00007ff6fb0973e3 size=64 org.msgpack.core.MessagePacker.ensureCapacity(MessagePacker.java:321)\r\n A SP 0x000000dee597eb70 IP 0x00007ff6fb0973e3 size=64 org.msgpack.core.MessagePacker.writeByteAndFloat(MessagePacker.java:362)\r\n i SP 0x000000dee597ebb0 IP 0x00007ff6fb0a7c30 size=80 org.msgpack.core.MessagePacker.packFloat(MessagePacker.java:633)\r\n A SP 0x000000dee597ebb0 IP 0x00007ff6fb0a7c30 size=80 org.msgpack.jackson.dataformat.MessagePackGenerator.pack(MessagePackGenerator.java:215)\r\n A SP 0x000000dee597ec00 IP 0x00007ff6fb0a83c5 size=64 org.msgpack.jackson.dataformat.MessagePackGenerator.packArray(MessagePackGenerator.java:306)\r\n A SP 0x000000dee597ec40 IP 0x00007ff6fb0a7235 size=32 org.msgpack.jackson.dataformat.MessagePackGenerator.flush(MessagePackGenerator.java:524)\r\n A SP 0x000000dee597ec60 IP 0x00007ff6fb0a715f size=32 org.msgpack.jackson.dataformat.MessagePackGenerator.close(MessagePackGenerator.java:505)\r\n A SP 0x000000dee597ec80 IP 0x00007ff6f6f19917 size=32 com.fasterxml.jackson.databind.ObjectMapper._writeValueAndClose(ObjectMapper.java:4816)\r\n A SP 0x000000dee597eca0 IP 0x00007ff6f6f1a9f2 size=48 com.fasterxml.jackson.databind.ObjectMapper.writeValueAsBytes(ObjectMapper.java:4077)\r\n...\r\n```","author":{"url":"https://github.com/shepherd85","@type":"Person","name":"shepherd85"},"datePublished":"2024-12-20T18:08:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/864/msgpack-java/issues/864"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1c97f23f-408c-3345-ae96-c4870faf6b9f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A638:19D71A:D8D637:129E11C:6A53AABC |
| html-safe-nonce | eb804422aa824f5dbd51f1be3fc1cdce4d9c05e0fa995ff95fd5686e50e634ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjM4OjE5RDcxQTpEOEQ2Mzc6MTI5RTExQzo2QTUzQUFCQyIsInZpc2l0b3JfaWQiOiIzMzYyOTAzNjU4NzYxMjY3OTAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0545dcf0676dfcbd5f6a3f7342801127733a13802278aa8f419912d9affb6ba9 |
| hovercard-subject-tag | issue:2753227303 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/msgpack/msgpack-java/864/issue_layout |
| twitter:image | https://opengraph.githubassets.com/71054ea2aeac39db28f41fdf8407b405310d98f9fd31717058e02cc41223f685/msgpack/msgpack-java/issues/864 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/71054ea2aeac39db28f41fdf8407b405310d98f9fd31717058e02cc41223f685/msgpack/msgpack-java/issues/864 |
| og:image:alt | I'm trying to use msgpack in a Quarkus native project, but it is giving warnings during build: Warning: RecomputeFieldValue.ArrayBaseOffset automatic substitution failed. The automatic substitution... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shepherd85 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/msgpack/msgpack-java git https://github.com/msgpack/msgpack-java.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 1971346 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1971346 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width