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

[23.1] Backport: svm: adopt "JDK-8328366: Thread.setContextClassloader from thread in FJP commonPool task no longer works after JDK-8327501" #780

Closed
1 of 2 tasks
jerboaa opened this issue Aug 20, 2024 · 7 comments · Fixed by graalvm/graalvm-community-jdk21u#6 or #786

Comments

@jerboaa
Copy link
Collaborator

jerboaa commented Aug 20, 2024

What would you like to backport?

We need to backport oracle@10bb0c6 to the Mandrel 23.1 release tree (probably via the upstream repo).

Why?

Since the JDK 21.0.5+3 EA build we see test failures in quarkus native integration tests. For example quarkus-integration-test-micrometer-prometheus, which fails with a segfault like so:

[INFO] Running io.quarkus.it.micrometer.prometheus.PrometheusMetricsRegistryIT
2024-08-20 12:04:11,734 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-1) HTTP Request to /message/fail failed, error id: c8820633-3bbf-4738-ad93-8526d42c5d5d-1: java.lang.NullPointerException: Failed on purpose
	at io.quarkus.it.micrometer.prometheus.MessageResource.fail(MessageResource.java:26)
	at io.quarkus.it.micrometer.prometheus.MessageResource$quarkusrestinvoker$fail_ff71d311deeacbc9f304127a47baa9f513331d4a.invoke(Unknown Source)
	at org.jboss.resteasy.reactive.server.handlers.InvocationHandler.handle(InvocationHandler.java:29)
	at io.quarkus.resteasy.reactive.server.runtime.QuarkusResteasyReactiveRequestContext.invokeHandler(QuarkusResteasyReactiveRequestContext.java:141)
	at org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.run(AbstractResteasyReactiveContext.java:147)
	at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:635)
	at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521)
	at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:11)
	at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:11)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at [email protected]/java.lang.Thread.runWith(Thread.java:1596)
	at [email protected]/java.lang.Thread.run(Thread.java:1583)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:896)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:872)

Fatal error: Non-allowed AccessControlContext that was replaced with a blank one at build time was invoked without being reinitialized at run time.
This might be an indicator of improper build time initialization, or of a non-compatible JDK version.
In order to fix this you can either:
    * Annotate the offending context's field with @RecomputeFieldValue
    * Implement a custom runtime accessor and annotate said field with @InjectAccessors
    * If this context originates from the JDK, and it doesn't leak sensitive info, you can allow it in 'AccessControlContextReplacerFeature.duringSetup'

Printing instructions (ip=0x00000000008a6670):
  0x00000000008a6570: 0xe8 0xcb 0x65 0x05 0x00 0x90 0xeb 0xda 0x48 0x89 0x44 0x24 0x08 0x66 0x66 0x90
  0x00000000008a6580: 0xe9 0x55 0xfd 0xff 0xff 0x48 0x8b 0x7c 0x24 0x10 0xe8 0x31 0xe3 0x03 0x00 0x90
  0x00000000008a6590: 0xe9 0x86 0xfd 0xff 0xff 0x48 0x8b 0xc8 0xe9 0x78 0xfe 0xff 0xff 0x48 0x8b 0x44
  0x00000000008a65a0: 0x24 0x28 0x48 0x8b 0xf0 0xe9 0xd9 0xfe 0xff 0xff 0xe8 0x91 0x0a 0x0c 0x00 0x90
  0x00000000008a65b0: 0xeb 0xab 0xbf 0x01 0x00 0x00 0x00 0xbe 0x01 0x00 0x00 0x00 0x0f 0x1f 0x40 0x00
  0x00000000008a65c0: 0xe8 0x2b 0x0d 0x0c 0x00 0x90 0xeb 0x8a 0xe9 0xf0 0xfe 0xff 0xff 0xe9 0xeb 0xfe
  0x00000000008a65d0: 0xff 0xff 0xe9 0xe6 0xfe 0xff 0xff 0xe9 0xe1 0xfe 0xff 0xff 0x0f 0x1f 0x40 0x00
  0x00000000008a65e0: 0xe9 0xd8 0xfe 0xff 0xff 0xe9 0xd3 0xfe 0xff 0xff 0xe9 0xce 0xfe 0xff 0xff 0xe9
  0x00000000008a65f0: 0xc9 0xfe 0xff 0xff 0xe9 0xc4 0xfe 0xff 0xff 0xe9 0xbf 0xfe 0xff 0xff 0x66 0x90
  0x00000000008a6600: 0xe9 0xb8 0xfe 0xff 0xff 0xe9 0xb3 0xfe 0xff 0xff 0xe9 0xae 0xfe 0xff 0xff 0xe9
  0x00000000008a6610: 0xa9 0xfe 0xff 0xff 0xe9 0xa4 0xfe 0xff 0xff 0xe8 0x92 0xf6 0xfd 0xff 0x90 0xcc
  0x00000000008a6620: 0x48 0x83 0xec 0x28 0x48 0x89 0x54 0x24 0x18 0x48 0x89 0x74 0x24 0x10 0x48 0x89
  0x00000000008a6630: 0x7c 0x24 0x20 0xe8 0xd8 0x93 0x0b 0x00 0x90 0x41 0xc7 0x87 0x10 0x01 0x00 0x00
  0x00000000008a6640: 0x01 0x00 0x00 0x00 0xf0 0x83 0x04 0x24 0x00 0x49 0xc7 0x47 0x08 0x01 0x00 0x00
  0x00000000008a6650: 0x00 0x41 0xc7 0x87 0x0c 0x01 0x00 0x00 0xfe 0xfe 0xfe 0x7e 0x48 0x8b 0x7c 0x24
  0x00000000008a6660: 0x20 0x48 0x8b 0x74 0x24 0x10 0x48 0x8b 0x54 0x24 0x18 0xe8 0x90 0xfb 0xff 0xff
> 0x00000000008a6670: 0x90 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc
  0x00000000008a6680: 0x48 0x83 0xec 0x18 0x48 0xb8 0x28 0x09 0x1f 0x02 0x00 0x00 0x00 0x00 0x49 0x8d
  0x00000000008a6690: 0x04 0x06 0x49 0x3b 0x67 0x08 0x0f 0x86 0xb1 0x00 0x00 0x00 0x0f 0x1f 0x40 0x00
  0x00000000008a66a0: 0x49 0x3b 0xf6 0x0f 0x84 0xaf 0x00 0x00 0x00 0x48 0x89 0x44 0x24 0x10 0x48 0xbf
  0x00000000008a66b0: 0xd0 0xde 0xb7 0x01 0x00 0x00 0x00 0x00 0x49 0x8d 0x3c 0x3e 0x48 0xc7 0xc1 0xf8
  0x00000000008a66c0: 0xff 0xff 0xff 0x48 0x23 0x0e 0x49 0x8d 0x0c 0x0e 0x48 0x89 0x74 0x24 0x08 0x48
  0x00000000008a66d0: 0x8b 0xf1 0xe8 0xf9 0x39 0x74 0x01 0x90 0x0f 0x1f 0x84 0x00 0x00 0x00 0x00 0x00
  0x00000000008a66e0: 0x49 0x3b 0xc6 0x0f 0x84 0x23 0x00 0x00 0x00 0x48 0xc7 0xc7 0xf8 0xff 0xff 0xff
  0x00000000008a66f0: 0x48 0x23 0x38 0xbe 0xff 0xff 0x00 0x00 0x41 0x23 0x74 0x3e 0x12 0x66 0x66 0x90
  0x00000000008a6700: 0x81 0xfe 0x1c 0x0a 0x00 0x00 0x0f 0x85 0x65 0x00 0x00 0x00 0x49 0x3b 0xc6 0x0f
  0x00000000008a6710: 0x84 0x49 0x00 0x00 0x00 0x48 0xc7 0xc7 0xf8 0xff 0xff 0xff 0x48 0x23 0x38 0x49
  0x00000000008a6720: 0x8b 0x8c 0x3e 0xf0 0x00 0x00 0x00 0x48 0x8b 0xf8 0x48 0x8b 0x74 0x24 0x08 0x48
  0x00000000008a6730: 0x8b 0xc1 0xff 0xd0 0x90 0x41 0x83 0x6f 0x10 0x01 0x0f 0x8e 0x05 0x00 0x00 0x00
  0x00000000008a6740: 0x48 0x83 0xc4 0x18 0xc3 0xe8 0xf6 0x08 0x0c 0x00 0x90 0xeb 0xf3 0x48 0x89 0x74
  0x00000000008a6750: 0x24 0x08 0xe8 0x99 0xf6 0xfd 0xff 0x90 0xe8 0x23 0x72 0x0b 0x00 0x90 0x48 0x8b
  0x00000000008a6760: 0x44 0x24 0x10 0x48 0x8b 0xf8 0x48 0x8b 0x74 0x24 0x08 0xe8 0x20 0x00 0x00 0x00

Top of stack (sp=0x00007fed81bff8b0):
  0x00007fed81bff890: 0x0000000000000000 0x0000000000000000 0x00007fed8aa16f30 0x00000000008a6670
> 0x00007fed81bff8b0: 0x00007fed81bff940 0x0000000001d1e15d 0x00007fed89e5dcf0 0x00007fed89200000
  0x00007fed81bff8d0: 0x0000000001d1df04 0x000000000096e154 0xa16ffd1faa27282d 0x0000000001d1df04
  0x00007fed81bff8f0: 0x00016c21002de97b 0x00007fed60c616f0 0x00007fed8ad7ffb8 0x0000000001d1e170
  0x00007fed81bff910: 0x0000000000000000 0x0000000000000000 0x00007fed8a6f8938 0x00007fed60c616d0
  0x00007fed81bff930: 0x00007fed8ad7ffb8 0x0000000002020645 0x412368c000000000 0x0000000000000000
  0x00007fed81bff950: 0x0000000000000000 0x0000000002020716 0x00007fed74000090 0x0000000002023fc5
  0x00007fed81bff970: 0x00007fed60c61190 0x00000000020287bf 0x00007fed60c2f790 0x0000000002028165
  0x00007fed81bff990: 0x00007fed60c611c0 0x000000000202145e 0x00007fed60c61170 0xffffffffd7a61170
  0x00007fed81bff9b0: 0x00007fed60c2f790 0x0000000000000000 0x00007fed60c2f790 0x00007fed60c61378
  0x00007fed81bff9d0: 0xb12327d4b12327d4 0x0000000000000014 0x0000000100000001 0x0000000002026c8f
  0x00007fed81bff9f0: 0x0000000000000000 0x0000000000000000 0x00007fed60c61320 0x00007fed60c2f790
  0x00007fed81bffa10: 0x0000000160c2f708 0x00000000020244a5 0x00007fed60c80000 0x0000000000000000
  0x00007fed81bffa30: 0x00007fed60c61320 0x0000000001fd1487 0x00007fed60c2f708 0x00007fed60c2f588
  0x00007fed81bffa50: 0x00007fed60c2f588 0x00007fed60c61350 0x00007fed8b0b8690 0x0000000001407abc
  0x00007fed81bffa70: 0x0000000000000004 0x00000000012ce089 0x412e848000000000 0x00000000012c03a4
  0x00007fed81bffa90: 0x00007fed60c2f6a8 0x00007fed60c2f588 0x0000000160c2f5e8 0x00000000012cdf68

VM thread locals for the failing thread 0x00007fed74000b80:
  0: JNIThreadLocalEnvironment.jniFunctions = (bytes) 0x00007fed8a349670
  8: StackOverflowCheckImpl.stackBoundaryTL = (Word) 0x0000000000000001 (1)
  16: Safepoint.safepointRequested = (int) 0x7fa3aba5 (2141432741)
  20: StatusSupport.statusTL = (int) 0x00000001 (1)
  24: ThreadLocalAllocation.regularTLAB = (bytes) 
    0x00007fed74000b98: 0x00007fed60c00000 0x00007fed60c80000
    0x00007fed74000ba8: 0x00007fed60c61898 0x0000000000000000
  56: PlatformThreads.currentThread = (Object) 0x00007fed8cc81760
    is an object of type io.vertx.core.impl.VertxThread
  64: JavaFrameAnchors.lastAnchor = (Word) 0x0000000000000000 (0)
  72: PlatformThreads.currentVThreadId = (long) 0x0000000000000047 (71)
  80: ExceptionUnwind.currentException = (Object) 0x0000000000000000
  88: IdentityHashCodeSupport.hashCodeGeneratorTL = (Object) 0x00007fed8cc85570
    is an object of type java.util.SplittableRandom
  96: IsolatedCompileClient.currentClient = (Object) 0x0000000000000000
  104: IsolatedCompileContext.currentContext = (Object) 0x0000000000000000
  112: JNIObjectHandles.handles = (Object) 0x00007fed8cc855a0
    is an object of type com.oracle.svm.core.handles.ThreadLocalHandles
  120: JNIThreadLocalPendingException.pendingException = (Object) 0x0000000000000000
  128: JNIThreadLocalReferencedObjects.referencedObjectsListHead = (Object) 0x0000000000000000
  136: JNIThreadOwnedMonitors.ownedMonitors = (Object) 0x0000000000000000
  144: NoAllocationVerifier.openVerifiers = (Object) 0x0000000000000000
  152: ThreadingSupportImpl.activeTimer = (Object) 0x0000000000000000
  160: ActionOnExitSafepointSupport.returnIP = (Word) 0x0000000000000000 (0)
  168: ActionOnExitSafepointSupport.returnSP = (Word) 0x0000000000000000 (0)
  176: SubstrateDiagnostics.threadOnlyAttachedForCrashHandler = (bytes) 0x0000000000000000
  184: ThreadLocalAllocation.allocatedBytes = (Word) 0x0000000001bc1d78 (29105528)
  192: VMThreads.IsolateTL = (Word) 0x00007fed89200000 (140658184552448)
  200: VMThreads.OSThreadHandleTL = (Word) 0x00007fed81c006c0 (140658060822208)
  208: VMThreads.OSThreadIdTL = (Word) 0x000000000000485a (18522)
  216: VMThreads.StackBase = (Word) 0x00007fed81c01000 (140658060824576)
  224: VMThreads.StackEnd = (Word) 0x00007fed81402000 (140658052440064)
  232: VMThreads.StartedByCurrentIsolate = (bytes) 0x0000000000000001
  240: VMThreads.nextTL = (Word) 0x00007fed70000b80 (140657763027840)
  248: VMThreads.unalignedIsolateThreadMemoryTL = (Word) 0x00007fed74000b70 (140657830136688)
  256: ActionOnExitSafepointSupport.actionTL = (int) 0x00000000 (0)
  260: ActionOnTransitionToJavaSupport.actionTL = (int) 0x00000000 (0)
  264: ImplicitExceptions.implicitExceptionsAreFatal = (int) 0x00000000 (0)
  268: StackOverflowCheckImpl.yellowZoneStateTL = (int) 0x7efefefe (2130640638)
  272: StatusSupport.safepointBehaviorTL = (int) 0x00000001 (1)
  276: ThreadingSupportImpl.currentPauseDepth = (int) 0x00000000 (0)
  
Java frame anchors for the failing thread 0x00007fed74000b80:
  No anchors
  
Stacktrace for the failing thread 0x00007fed74000b80 (A=AOT compiled, J=JIT compiled, D=deoptimized, i=inlined):
  i  SP 0x00007fed81bff8b0 IP 0x00000000008a6670 size=48    com.oracle.svm.core.jdk.VMErrorSubstitutions.shutdown(VMErrorSubstitutions.java:148)
  A  SP 0x00007fed81bff8b0 IP 0x00000000008a6670 size=48    com.oracle.svm.core.jdk.VMErrorSubstitutions.shouldNotReachHere(VMErrorSubstitutions.java:141)
  A  SP 0x00007fed81bff8e0 IP 0x000000000096e154 size=16    com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:90)
  A  SP 0x00007fed81bff8f0 IP 0x0000000001d1df04 size=32    java.security.AccessController.checkContext(AccessController.java:140)
  A  SP 0x00007fed81bff910 IP 0x0000000001d1e170 size=48    java.security.AccessController.doPrivileged(AccessController.java:399)
  A  SP 0x00007fed81bff940 IP 0x0000000002020645 size=32    java.util.concurrent.ForkJoinPool$DefaultForkJoinWorkerThreadFactory.newRegularWithACC(ForkJoinPool.java:1012)
  A  SP 0x00007fed81bff960 IP 0x0000000002020716 size=16    java.util.concurrent.ForkJoinPool$DefaultForkJoinWorkerThreadFactory.newThread(ForkJoinPool.java:987)
  A  SP 0x00007fed81bff970 IP 0x0000000002023fc5 size=32    java.util.concurrent.ForkJoinPool.createWorker(ForkJoinPool.java:1572)
  A  SP 0x00007fed81bff990 IP 0x0000000002028165 size=16    java.util.concurrent.ForkJoinPool.signalWork(ForkJoinPool.java:1710)
  A  SP 0x00007fed81bff9a0 IP 0x000000000202145e size=80    java.util.concurrent.ForkJoinPool$WorkQueue.push(ForkJoinPool.java:1154)
  A  SP 0x00007fed81bff9f0 IP 0x0000000002026c8f size=48    java.util.concurrent.ForkJoinPool.poolSubmit(ForkJoinPool.java:2368)
  A  SP 0x00007fed81bffa20 IP 0x00000000020244a5 size=32    java.util.concurrent.ForkJoinPool.execute(ForkJoinPool.java:2845)
  A  SP 0x00007fed81bffa40 IP 0x0000000001fd1487 size=48    java.util.concurrent.CompletableFuture.asyncSupplyStage(CompletableFuture.java:1782)
  i  SP 0x00007fed81bffa70 IP 0x0000000001407abc size=16    java.util.concurrent.CompletableFuture.supplyAsync(CompletableFuture.java:1989)
  i  SP 0x00007fed81bffa70 IP 0x0000000001407abc size=16    io.quarkus.it.micrometer.prometheus.AnnotatedResource.onlyCountAsyncFailures(AnnotatedResource.java:89)
  i  SP 0x00007fed81bffa70 IP 0x0000000001407abc size=16    io.quarkus.it.micrometer.prometheus.AnnotatedResource_Subclass.onlyCountAsyncFailures$$superforward(Unknown Source)
  A  SP 0x00007fed81bffa70 IP 0x0000000001407abc size=16    io.quarkus.it.micrometer.prometheus.AnnotatedResource_Subclass$$function$$10.apply(Unknown Source)
  A  SP 0x00007fed81bffa80 IP 0x00000000012ce089 size=48    io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:73)
  A  SP 0x00007fed81bffab0 IP 0x00000000012cdf68 size=16    io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:62)
  A  SP 0x00007fed81bffac0 IP 0x000000000144a304 size=96    io.quarkus.micrometer.runtime.MicrometerCountedInterceptor.countedMethod(MicrometerCountedInterceptor.java:71)
  A  SP 0x00007fed81bffb20 IP 0x000000000144b67d size=16    io.quarkus.micrometer.runtime.MicrometerCountedInterceptor_Bean.intercept(Unknown Source)
  i  SP 0x00007fed81bffb30 IP 0x00000000012cde64 size=80    io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:42)
  A  SP 0x00007fed81bffb30 IP 0x00000000012cde64 size=80    io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:30)
  i  SP 0x00007fed81bffb80 IP 0x0000000001410428 size=32    io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:27)
  A  SP 0x00007fed81bffb80 IP 0x0000000001410428 size=32    io.quarkus.it.micrometer.prometheus.AnnotatedResource_Subclass.onlyCountAsyncFailures(Unknown Source)
  i  SP 0x00007fed81bffba0 IP 0x0000000001405422 size=16    io.quarkus.it.micrometer.prometheus.AnnotatedResource.lambda$allTheThings$2(AnnotatedResource.java:30)
  A  SP 0x00007fed81bffba0 IP 0x0000000001405422 size=16    io.quarkus.it.micrometer.prometheus.AnnotatedResource$$Lambda/0xc13d6f61dbe9d533cc2463a315a7e6d0a5e851790.apply(Unknown Source)
  A  SP 0x00007fed81bffbb0 IP 0x00000000014067c6 size=32    io.quarkus.it.micrometer.prometheus.AnnotatedResource.join(AnnotatedResource.java:63)
  A  SP 0x00007fed81bffbd0 IP 0x0000000001405a67 size=48    io.quarkus.it.micrometer.prometheus.AnnotatedResource.allTheThings(AnnotatedResource.java:30)
  A  SP 0x00007fed81bffc00 IP 0x0000000001405841 size=16    io.quarkus.it.micrometer.prometheus.AnnotatedResource$quarkusrestinvoker$allTheThings_ee9c480d19427c3c7a3273bd30e79c39c5ced6cf.invoke(Unknown Source)
  A  SP 0x00007fed81bffc10 IP 0x0000000003382137 size=48    org.jboss.resteasy.reactive.server.handlers.InvocationHandler.handle(InvocationHandler.java:29)
  A  SP 0x00007fed81bffc40 IP 0x0000000001559646 size=16    io.quarkus.resteasy.reactive.server.runtime.QuarkusResteasyReactiveRequestContext.invokeHandler(QuarkusResteasyReactiveRequestContext.java:141)
  A  SP 0x00007fed81bffc50 IP 0x00000000033275da size=128   org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.run(AbstractResteasyReactiveContext.java:147)
  A  SP 0x00007fed81bffcd0 IP 0x00000000016cb830 size=96    io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:635)
  A  SP 0x00007fed81bffd30 IP 0x000000000339ea32 size=16    org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
  A  SP 0x00007fed81bffd40 IP 0x000000000339eb65 size=48    org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
  A  SP 0x00007fed81bffd70 IP 0x000000000339fc87 size=96    org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521)
  i  SP 0x00007fed81bffdd0 IP 0x00000000033a6494 size=16    org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:11)
  A  SP 0x00007fed81bffdd0 IP 0x00000000033a6494 size=16    org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:11)
  A  SP 0x00007fed81bffde0 IP 0x0000000001157a84 size=32    io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
  i  SP 0x00007fed81bffe00 IP 0x0000000001b3c426 size=32    java.lang.Thread.runWith(Thread.java:1596)
  A  SP 0x00007fed81bffe00 IP 0x0000000001b3c426 size=32    java.lang.Thread.run(Thread.java:1583)
  A  SP 0x00007fed81bffe20 IP 0x0000000000965cb2 size=48    com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:896)
  A  SP 0x00007fed81bffe50 IP 0x0000000000965b37 size=32    com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:872)
  A  SP 0x00007fed81bffe70 IP 0x000000000085e460 size=96    com.oracle.svm.core.code.IsolateEnterStub.PlatformThreads_threadStartRoutine_7ca06a92d37709d55cf0945cbea8bdcde7f70f0e(IsolateEnterStub.java:0)
  
Threads:
  0x00007fecf0000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Transaction Reaper Worker 0" - 0x00007fed8cc81908, daemon, stack(0x00007fed55e02000,0x00007fed56601000)
  0x00007fecf8000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Transaction Reaper" - 0x00007fed8cc81b18, daemon, stack(0x00007fed56802000,0x00007fed57001000)
  0x00007fecfc000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "executor-thread-2" - 0x00007fed8cc81c90, daemon, stack(0x00007fed57602000,0x00007fed57e01000)
  0x00007fed04000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-11" - 0x00007fed8cc82120, stack(0x00007fed60e02000,0x00007fed61601000)
  0x00007fed08000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-10" - 0x00007fed8cc823c0, stack(0x00007fed61802000,0x00007fed62001000)
  0x00007fed10000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-9" - 0x00007fed8cc82660, stack(0x00007fed62202000,0x00007fed62a01000)
  0x00007fed14000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-8" - 0x00007fed8cc82900, stack(0x00007fed62c02000,0x00007fed63401000)
  0x00007fed1c000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-7" - 0x00007fed8cc82ba0, stack(0x00007fed63602000,0x00007fed63e01000)
  0x00007fed20000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-6" - 0x00007fed8cc82e40, stack(0x00007fed6c202000,0x00007fed6ca01000)
  0x00007fed28000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-5" - 0x00007fed8cc830e0, stack(0x00007fed6cc02000,0x00007fed6d401000)
  0x00007fed2c000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-4" - 0x00007fed8cc83380, stack(0x00007fed6d602000,0x00007fed6de01000)
  0x00007fed34000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-3" - 0x00007fed8cc83620, stack(0x00007fed6e002000,0x00007fed6e801000)
  0x00007fed38000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-2" - 0x00007fed8cc838c0, stack(0x00007fed6ea02000,0x00007fed6f201000)
  0x00007fed40000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-1" - 0x00007fed8cc83b60, stack(0x00007fed82a02000,0x00007fed83201000)
  0x00007fed4c000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-acceptor-thread-0" - 0x00007fed8cc83e00, stack(0x00007fed6f602000,0x00007fed6fe01000)
  0x00007fed44000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "agroal-11" - 0x00007fed8cc83f20, daemon, stack(0x00007fed78402000,0x00007fed78c01000)
  0x00007fed50000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "BatchSpanProcessor_WorkerThread-1" - 0x00007fed8cc841b8, daemon, stack(0x00007fed79802000,0x00007fed7a001000)
  0x00007fed58000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "PeriodicMetricReader-1" - 0x00007fed8cc84408, daemon, stack(0x00007fed7a202000,0x00007fed7aa01000)
  0x00007fed5c000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "BatchSpanProcessor_WorkerThread-1" - 0x00007fed8cc84690, daemon, stack(0x00007fed7ac02000,0x00007fed7b401000)
  0x00007fed64000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vert.x-eventloop-thread-0" - 0x00007fed8cc84a60, stack(0x00007fed7b602000,0x00007fed7be01000)
  0x00007fed68000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "vertx-blocked-thread-checker" - 0x00007fed8cc84b80, daemon, stack(0x00007fed80802000,0x00007fed81001000)
  0x00007fed74000b80 STATUS_IN_JAVA (PREVENT_VM_FROM_REACHING_SAFEPOINT) "executor-thread-1" - 0x00007fed8cc81760, daemon, stack(0x00007fed81402000,0x00007fed81c01000)
  0x00007fed70000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Reference Reaper #1" - 0x00007fed8cc84d58, daemon, stack(0x00007fed82002000,0x00007fed82801000)
  0x00007fed7c000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Signal Dispatcher" - 0x00007fed8cc84e58, daemon, stack(0x00007fed83602000,0x00007fed83e01000)
  0x00007fed84000b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Reference Handler" - 0x00007fed8acc88d0, daemon, stack(0x00007fed88802000,0x00007fed89001000)
  0x000000002e30e2c0 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "main" - 0x00007fed8acc8808, stack(0x00007fff5436b000,0x00007fff54b69000)
  
No VMOperation in progress

The 30 most recent VM operation status changes:
  2.737s - Started Garbage collection (safepoint: true, queueingThread: 0x00007fed74000b80, executingThread: 0x00007fed74000b80, safepointId: 1)
  2.750s - Finished Garbage collection (safepoint: true, queueingThread: 0x00007fed74000b80, executingThread: 0x00007fed74000b80, safepointId: 1)
  
VM mutexes:
  mutex "RealLog.backTracePrinterMutex" is unlocked.
  mutex "mainVMOperationControlWorkQueue" is unlocked.
  mutex "outOfMemoryHeapDump" is unlocked.
  mutex "referencePendingList" is unlocked.
  mutex "thread" is unlocked.
  
Build time information:
  Version: 21.0.5-beta+3-ea, serial gc
  Platform: linux/amd64
  Page size: 4096
  Container support: true
  CPU features used for AOT compiled code: CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA
  
Runtime information:
  CPU cores (OS): 12
  Memory: 64052M
  Page size: 4096
  VM uptime: 2.797s
  Current timestamp: 1724148251854
  AOT compiled code: 0x0000000000407000 - 0x0000000003a1a22f
  
Command line: 

Heap settings and statistics:
  Supports isolates: true
  Heap base: 0x00007fed89200000
  Object reference size: 8
  Reserved object header bits: 0b111
  Aligned chunk size: 524288
  Large array threshold: 131072
  Incremental collections: 1
  Complete collections: 1
  
Heap usage:
  Eden: 15.00M (0.00M in 0 aligned chunks, 0.00M in 0 unaligned chunks)
  Old: 6.50M (6.50M in 13 aligned chunks, 0.00M in 0 unaligned chunks)
  
Native image heap boundaries:
  ReadOnly Primitives: 0x00007fed89280830 - 0x00007fed89c32d68
  ReadOnly References: 0x00007fed89c32d68 - 0x00007fed8a3470a8
  ReadOnly Relocatables: 0x00007fed8a348000 - 0x00007fed8a8a6150
  Writable Primitives: 0x00007fed8a8a7000 - 0x00007fed8aaff4c0
  Writable References: 0x00007fed8aaff4c0 - 0x00007fed8b6a0118
  Writable Huge: 0x00007fed8b700038 - 0x00007fed8b864458
  ReadOnly Huge: 0x00007fed8b865038 - 0x00007fed8cbf0218
  
Heap chunks: E=eden, S=survivor, O=old, F=free; A=aligned chunk, U=unaligned chunk; T=to space
  |0x00007fed8cc80000|0x00007fed8cc80830, 0x00007fed8cd00000, 0x00007fed8cd00000|100%|  O|A|
  |0x00007fed88600000|0x00007fed88600830, 0x00007fed8867ff58, 0x00007fed88680000| 99%|  O|A|
  |0x00007fed88500000|0x00007fed88500830, 0x00007fed88580000, 0x00007fed88580000|100%|  O|A|
  |0x00007fed88400000|0x00007fed88400830, 0x00007fed88480000, 0x00007fed88480000|100%|  O|A|
  |0x00007fed88300000|0x00007fed88300830, 0x00007fed8837ffb8, 0x00007fed88380000| 99%|  O|A|
  |0x00007fed88200000|0x00007fed88200830, 0x00007fed8827fff8, 0x00007fed88280000| 99%|  O|A|
  |0x00007fed88100000|0x00007fed88100830, 0x00007fed8817f8e0, 0x00007fed88180000| 99%|  O|A|
  |0x00007fed88000000|0x00007fed88000830, 0x00007fed8807ff78, 0x00007fed88080000| 99%|  O|A|
  |0x00007fed83f00000|0x00007fed83f00830, 0x00007fed83f7fa90, 0x00007fed83f80000| 99%|  O|A|
  |0x00007fed83500000|0x00007fed83500830, 0x00007fed8357fb90, 0x00007fed83580000| 99%|  O|A|
  |0x00007fed83400000|0x00007fed83400830, 0x00007fed8347faa8, 0x00007fed83480000| 99%|  O|A|
  |0x00007fed83300000|0x00007fed83300830, 0x00007fed83376c60, 0x00007fed83380000| 92%|  O|A|
  |0x00007fed81e00000|0x00007fed81e00830, 0x00007fed81e47bc8, 0x00007fed81e80000| 55%|  O|A|
  |0x00007fed89100000|0x00007fed89100830, 0x00007fed89100830, 0x00007fed89180000|  0%|  F|A|
  |0x00007fed88700000|0x00007fed88700830, 0x00007fed88700830, 0x00007fed88780000|  0%|  F|A|
  |0x00007fed81f00000|0x00007fed81f00830, 0x00007fed81f00830, 0x00007fed81f80000|  0%|  F|A|
  |0x00007fed81300000|0x00007fed81300830, 0x00007fed81300830, 0x00007fed81380000|  0%|  F|A|
  |0x00007fed60800000|0x00007fed60800830, 0x00007fed60800830, 0x00007fed60880000|  0%|  F|A|
  |0x00007fed60600000|0x00007fed60600830, 0x00007fed60600830, 0x00007fed60680000|  0%|  F|A|
  |0x00007fed60500000|0x00007fed60500830, 0x00007fed60500830, 0x00007fed60580000|  0%|  F|A|
  |0x00007fed60400000|0x00007fed60400830, 0x00007fed60400830, 0x00007fed60480000|  0%|  F|A|
  |0x00007fed60300000|0x00007fed60300830, 0x00007fed60300830, 0x00007fed60380000|  0%|  F|A|
  |0x00007fed60200000|0x00007fed60200830, 0x00007fed60200830, 0x00007fed60280000|  0%|  F|A|
  |0x00007fed60100000|0x00007fed60100830, 0x00007fed60100830, 0x00007fed60180000|  0%|  F|A|
  |0x00007fed60000000|0x00007fed60000830, 0x00007fed60000830, 0x00007fed60080000|  0%|  F|A|
  |0x00007fed57f00000|0x00007fed57f00830, 0x00007fed57f00830, 0x00007fed57f80000|  0%|  F|A|
  |0x00007fed57400000|0x00007fed57400830, 0x00007fed57400830, 0x00007fed57480000|  0%|  F|A|
  |0x00007fed57300000|0x00007fed57300830, 0x00007fed57300830, 0x00007fed57380000|  0%|  F|A|
  |0x00007fed55d00000|0x00007fed55d00830, 0x00007fed55d00830, 0x00007fed55d80000|  0%|  F|A|
  |0x00007fed55c00000|0x00007fed55c00830, 0x00007fed55c00830, 0x00007fed55c80000|  0%|  F|A|
  |0x00007fed55b00000|0x00007fed55b00830, 0x00007fed55b00830, 0x00007fed55b80000|  0%|  F|A|
  |0x00007fed55a00000|0x00007fed55a00830, 0x00007fed55a00830, 0x00007fed55a80000|  0%|  F|A|
  |0x00007fed55900000|0x00007fed55900830, 0x00007fed55900830, 0x00007fed55980000|  0%|  F|A|
  |0x00007fed55800000|0x00007fed55800830, 0x00007fed55800830, 0x00007fed55880000|  0%|  F|A|
  |0x00007fed55700000|0x00007fed55700830, 0x00007fed55700830, 0x00007fed55780000|  0%|  F|A|
  |0x00007fed55600000|0x00007fed55600830, 0x00007fed55600830, 0x00007fed55680000|  0%|  F|A|
  |0x00007fed55500000|0x00007fed55500830, 0x00007fed55500830, 0x00007fed55580000|  0%|  F|A|
  |0x00007fed55400000|0x00007fed55400830, 0x00007fed55400830, 0x00007fed55480000|  0%|  F|A|
  |0x00007fed55300000|0x00007fed55300830, 0x00007fed55300830, 0x00007fed55380000|  0%|  F|A|
  |0x00007fed55200000|0x00007fed55200830, 0x00007fed55200830, 0x00007fed55280000|  0%|  F|A|
  |0x00007fed55100000|0x00007fed55100830, 0x00007fed55100830, 0x00007fed55180000|  0%|  F|A|
  |0x00007fed55000000|0x00007fed55000830, 0x00007fed55000830, 0x00007fed55080000|  0%|  F|A|
  |0x00007fed54f00000|0x00007fed54f00830, 0x00007fed54f00830, 0x00007fed54f80000|  0%|  F|A|
  |0x00007fed54e00000|0x00007fed54e00830, 0x00007fed54e00830, 0x00007fed54e80000|  0%|  F|A|
  |0x00007fed54d00000|0x00007fed54d00830, 0x00007fed54d00830, 0x00007fed54d80000|  0%|  F|A|
  |0x00007fed54c00000|0x00007fed54c00830, 0x00007fed54c00830, 0x00007fed54c80000|  0%|  F|A|
  |0x00007fed54b00000|0x00007fed54b00830, 0x00007fed54b00830, 0x00007fed54b80000|  0%|  F|A|
  |0x00007fed54a00000|0x00007fed54a00830, 0x00007fed54a00830, 0x00007fed54a80000|  0%|  F|A|
  |0x00007fed54900000|0x00007fed54900830, 0x00007fed54900830, 0x00007fed54980000|  0%|  F|A|
  |0x00007fed81100000|0x00007fed81100830, 0x00007fed81100830, 0x00007fed81180000|  0%|  F|A|
  |0x00007fed80500000|0x00007fed80500830, 0x00007fed80500830, 0x00007fed80580000|  0%|  F|A|
  |0x00007fed80400000|0x00007fed80400830, 0x00007fed80400830, 0x00007fed80480000|  0%|  F|A|
  |0x00007fed80200000|0x00007fed80200830, 0x00007fed80200830, 0x00007fed80280000|  0%|  F|A|
  |0x00007fed80000000|0x00007fed80000830, 0x00007fed80000830, 0x00007fed80080000|  0%|  F|A|
  |0x00007fed7ab00000|0x00007fed7ab00830, 0x00007fed7ab00830, 0x00007fed7ab80000|  0%|  F|A|
  |0x00007fed6f500000|0x00007fed6f500830, 0x00007fed6f500830, 0x00007fed6f580000|  0%|  F|A|
  |0x00007fed6f400000|0x00007fed6f400830, 0x00007fed6f400830, 0x00007fed6f480000|  0%|  F|A|
  |0x00007fed6f300000|0x00007fed6f300830, 0x00007fed6f300830, 0x00007fed6f380000|  0%|  F|A|
  |0x00007fed60700000|0x00007fed60700830, 0x00007fed60700830, 0x00007fed60780000|  0%|  F|A|
  |0x00007fed57200000|0x00007fed57200830, 0x00007fed57200830, 0x00007fed57280000|  0%|  F|A|
  |0x00007fed6e900000|0x00007fed6e900830, 0x00007fed6e900830, 0x00007fed6e980000|  0%|  F|A|
  |0x00007fed6df00000|0x00007fed6df00830, 0x00007fed6df00830, 0x00007fed6df80000|  0%|  F|A|
  |0x00007fed57500000|0x00007fed57500830, 0x00007fed57500830, 0x00007fed57580000|  0%|  F|A|
  |0x00007fed6d500000|0x00007fed6d500830, 0x00007fed6d500830, 0x00007fed6d580000|  0%|  F|A|
  |0x00007fed6c100000|0x00007fed6c100830, 0x00007fed6c100830, 0x00007fed6c180000|  0%|  F|A|
  |0x00007fed6c000000|0x00007fed6c000830, 0x00007fed6c000830, 0x00007fed6c080000|  0%|  F|A|
  |0x00007fed63f00000|0x00007fed63f00830, 0x00007fed63f00830, 0x00007fed63f80000|  0%|  F|A|
  |0x00007fed63500000|0x00007fed63500830, 0x00007fed63500830, 0x00007fed63580000|  0%|  F|A|
  |0x00007fed62b00000|0x00007fed62b00830, 0x00007fed62b00830, 0x00007fed62b80000|  0%|  F|A|
  |0x00007fed60a00000|0x00007fed60a00830, 0x00007fed60a00830, 0x00007fed60a80000|  0%|  F|A|
  |0x00007fed62100000|0x00007fed62100830, 0x00007fed62100830, 0x00007fed62180000|  0%|  F|A|
  |0x00007fed60900000|0x00007fed60900830, 0x00007fed60900830, 0x00007fed60980000|  0%|  F|A|
  |0x00007fed57100000|0x00007fed57100830, 0x00007fed57100830, 0x00007fed57180000|  0%|  F|A|
  |0x00007fed56700000|0x00007fed56700830, 0x00007fed56700830, 0x00007fed56780000|  0%|  F|A|
  |0x00007fed7b500000|0x00007fed7b500830, 0x00007fed7b500830, 0x00007fed7b580000|  0%|  F|A|
  |0x00007fed79700000|0x00007fed79700830, 0x00007fed79700830, 0x00007fed79780000|  0%|  F|A|
  |0x00007fed78d00000|0x00007fed78d00830, 0x00007fed78d00830, 0x00007fed78d80000|  0%|  F|A|
  |0x00007fed7a100000|0x00007fed7a100830, 0x00007fed7a100830, 0x00007fed7a180000|  0%|  F|A|
  |0x00007fed82900000|0x00007fed82900830, 0x00007fed82900830, 0x00007fed82980000|  0%|  F|A|
  
Fatal error: Non-allowed AccessControlContext that was replaced with a blank one at build time was invoked without being reinitialized at run time.
This might be an indicator of improper build time initialization, or of a non-compatible JDK version.
In order to fix this you can either:
    * Annotate the offending context's field with @RecomputeFieldValue
    * Implement a custom runtime accessor and annotate said field with @InjectAccessors
    * If this context originates from the JDK, and it doesn't leak sensitive info, you can allow it in 'AccessControlContextReplacerFeature.duringSetup'

See https://github.com/graalvm/mandrel/actions/runs/10427964088/job/28884041672

Are the changes being backported merged in upstream Graal?

  • Yes
  • No
@jerboaa jerboaa added backport pending upstream Issue or PR pending action on upstream repository (oracle/graal) affects/23.1 affects/JDK21 labels Aug 20, 2024
@jerboaa jerboaa self-assigned this Aug 20, 2024
@jerboaa jerboaa added this to the 23.1.5.0-Final milestone Aug 20, 2024
@jerboaa
Copy link
Collaborator Author

jerboaa commented Aug 20, 2024

See also #739 (comment)

@zakkak
Copy link
Collaborator

zakkak commented Aug 20, 2024

Assuming the upstream repo is graalvm-community-jdk21u:

FWIW "upstream repo" is meant to refer to https://github.com/oracle/graal/, the aim of this question was/is to see if the backport request is regarding a fix that is already accepted upstream or a backport of a Mandrel-specific fix (from a different branch).

@jerboaa
Copy link
Collaborator Author

jerboaa commented Aug 20, 2024

Assuming the upstream repo is graalvm-community-jdk21u:

FWIW "upstream repo" is meant to refer to https://github.com/oracle/graal/, the aim of this question was/is to see if the backport request is regarding a fix that is already accepted upstream or a backport of a Mandrel-specific fix (from a different branch).

Shouldn't matter in this case, then. As the answer is no in both cases.

@jerboaa
Copy link
Collaborator Author

jerboaa commented Aug 20, 2024

Upstream PR: graalvm/graalvm-community-jdk21u#6

@jerboaa
Copy link
Collaborator Author

jerboaa commented Aug 22, 2024

I'll re-open since we still need to merge in the upstream changes into the 23.1 release branch.

@jerboaa jerboaa reopened this Aug 22, 2024
@jerboaa jerboaa removed the pending upstream Issue or PR pending action on upstream repository (oracle/graal) label Aug 22, 2024
@jerboaa
Copy link
Collaborator Author

jerboaa commented Aug 22, 2024

#786 is the merge from upstream.

@jerboaa
Copy link
Collaborator Author

jerboaa commented Aug 28, 2024

#786 is merged. Work completed.

@jerboaa jerboaa closed this as completed Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment