Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8297964

Jetty.java fails "assert(_no_handle_mark_nesting == 0) failed: allocating handle inside NoHandleMark"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 20
    • 20
    • hotspot
    • jfr
    • b27
    • x86_64
    • linux

    Description

      The following test failed in the JDK20 CI:

      applications/jetty/Jetty.java

      Here's a snippet from the log file:

      The tail of stress stdout is:
      For random generator using seed: -8374422372389354117
      To re-run test with same seed value please add "-Djdk.test.lib.random.seed=-8374422372389354117" to command line.
      Stress process main method is started.
      Create server on port 8081
      Using virtual threads
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94933/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/93618ff8-995e-4e15-93f6-793d5f8f293a/runs/8855ceda-7494-4d7e-b52f-d08dbd64510f/workspace/open/src/hotspot/share/runtime/handles.cpp:46), pid=485357, tid=485675
      # assert(_no_handle_mark_nesting == 0) failed: allocating handle inside NoHandleMark
      #
      # JRE version: Java(TM) SE Runtime Environment (20.0+26) (fastdebug build 20-ea+26-2014)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-ea+26-2014, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xf2a6f4] HandleArea::allocate_null_handle()+0x144
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S145364/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2216d4ef-00bd-4d30-a249-1fada2ab7606/runs/031253b3-b191-4177-8c57-de8fd271313c/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_jetty_Jetty_java/scratch/0/core.485357)
      #
      # JFR recording file will be written. Location: /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S145364/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2216d4ef-00bd-4d30-a249-1fada2ab7606/runs/031253b3-b191-4177-8c57-de8fd271313c/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_jetty_Jetty_java/scratch/0/hs_err_pid485357.jfr
      #
      Unsupported internal testing APIs have been used.

      # An error report file with more information is saved as:
      # /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S145364/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2216d4ef-00bd-4d30-a249-1fada2ab7606/runs/031253b3-b191-4177-8c57-de8fd271313c/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_jetty_Jetty_java/scratch/0/hs_err_pid485357.log
      [42.140s][warning][os] Loading hsdis library failed

      [error occurred during error reporting (), id 0xe0000000, Internal Error (/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94933/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/93618ff8-995e-4e15-93f6-793d5f8f293a/runs/8855ceda-7494-4d7e-b52f-d08dbd64510f/workspace/open/src/hotspot/share/runtime/handles.cpp:46)]

      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ----------System.err:(164/20788)----------


      Here's the crashing thread's stack:

      --------------- T H R E A D ---------------

      Current thread (0x00007f44f8004480): JavaThread "ForkJoinPool-1-worker-12" daemon [_thread_in_Java, id=485675, stack(0x00007f44e7cfd000,0x00007f44e7dfe000)]

      Stack: [0x00007f44e7cfd000,0x00007f44e7dfe000], sp=0x00007f44e7df5550, free space=993k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xf2a6f4] HandleArea::allocate_null_handle()+0x144 (handles.cpp:46)
      V [libjvm.so+0xd3d97f] RegisterMap::RegisterMap(JavaThread*, RegisterMap::UpdateMap, RegisterMap::ProcessFrames, RegisterMap::WalkContinuation)+0xbf (frame.cpp:74)
      V [libjvm.so+0x111c76a] JfrVframeStream::JfrVframeStream(JavaThread*, frame const&, bool, bool)+0x4a (jfrStackTrace.cpp:157)
      V [libjvm.so+0x111e1f7] JfrStackTrace::record(JavaThread*, frame const&, int)+0x97 (jfrStackTrace.cpp:278)
      V [libjvm.so+0x111eb5f] JfrStackTrace::record(JavaThread*, int)+0x7f (jfrStackTrace.cpp:326)
      V [libjvm.so+0x1121e4f] JfrStackTraceRepository::record(Thread*, int)+0x11f (jfrStackTraceRepository.cpp:171)
      V [libjvm.so+0x1a16ede] post_monitor_inflate_event(EventJavaMonitorInflate*, oop, ObjectSynchronizer::InflateCause)+0x48e (jfrEvent.hpp:194)
      V [libjvm.so+0x1a1757b] ObjectSynchronizer::inflate(Thread*, oop, ObjectSynchronizer::InflateCause)+0x64b (synchronizer.cpp:1379)
      V [libjvm.so+0x1a194bf] ObjectSynchronizer::inflate_helper(oop)+0x5f (synchronizer.cpp:1210)
      V [libjvm.so+0x18a27a4] SharedRuntime::OSR_migration_begin(JavaThread*)+0x384 (sharedRuntime.cpp:3344)
      j java.util.concurrent.ConcurrentHashMap.transfer([Ljava/util/concurrent/ConcurrentHashMap$Node;[Ljava/util/concurrent/ConcurrentHashMap$Node;)V+372 java.base@20-ea
      J 3911 c2 java.util.concurrent.ConcurrentHashMap.putVal(Ljava/lang/Object;Ljava/lang/Object;Z)Ljava/lang/Object; java.base@20-ea (432 bytes) @ 0x00007f45e4bd14ac [0x00007f45e4bd0a20+0x0000000000000a8c]
      J 3499 c2 java.util.concurrent.ConcurrentHashMap.putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java.base@20-ea (8 bytes) @ 0x00007f45e4b97268 [0x00007f45e4b97220+0x0000000000000048]
      J 4612 c2 org.glassfish.hk2.utilities.cache.Cache.compute(Ljava/lang/Object;)Ljava/lang/Object; (159 bytes) @ 0x00007f45e4c02d88 [0x00007f45e4c029c0+0x00000000000003c8]
      J 4474 c1 org.jvnet.hk2.internal.SingletonContext.findOrCreate(Lorg/glassfish/hk2/api/ActiveDescriptor;Lorg/glassfish/hk2/api/ServiceHandle;)Ljava/lang/Object; (40 bytes) @ 0x00007f45dd62204c [0x00007f45dd621de0+0x000000000000026c]
      J 4103 c1 org.jvnet.hk2.internal.Utilities.createService(Lorg/glassfish/hk2/api/ActiveDescriptor;Lorg/glassfish/hk2/api/Injectee;Lorg/jvnet/hk2/internal/ServiceLocatorImpl;Lorg/glassfish/hk2/api/ServiceHandle;Ljava/lang/Class;)Ljava/lang/Object; (450 bytes) @ 0x00007f45dd5cbd64 [0x00007f45dd5cafa0+0x0000000000000dc4]
      J 4446 c1 org.jvnet.hk2.internal.ServiceHandleImpl.getService(Lorg/glassfish/hk2/api/ServiceHandle;)Ljava/lang/Object; (102 bytes) @ 0x00007f45dd62e5ac [0x00007f45dd62e3c0+0x00000000000001ec]
      J 4476 c1 org.jvnet.hk2.internal.ServiceHandleImpl.getService()Ljava/lang/Object; (6 bytes) @ 0x00007f45dd63218c [0x00007f45dd632120+0x000000000000006c]
      j org.glassfish.jersey.internal.inject.ProviderToService.apply(Lorg/glassfish/hk2/api/ServiceHandle;)Ljava/lang/Object;+5
      j org.glassfish.jersey.internal.inject.ProviderToService.apply(Ljava/lang/Object;)Ljava/lang/Object;+5
      j jersey.repackaged.com.google.common.collect.Iterators$8.transform(Ljava/lang/Object;)Ljava/lang/Object;+5
      J 4555 c1 jersey.repackaged.com.google.common.collect.TransformedIterator.next()Ljava/lang/Object; (14 bytes) @ 0x00007f45dd71481c [0x00007f45dd714760+0x00000000000000bc]
      J 3017 c1 java.util.AbstractCollection.addAll(Ljava/util/Collection;)Z java.base@20-ea (42 bytes) @ 0x00007f45dd3dc9fc [0x00007f45dd3dc820+0x00000000000001dc]
      j java.util.LinkedHashSet.<init>(Ljava/util/Collection;)V+23 java.base@20-ea
      j jersey.repackaged.com.google.common.collect.Sets.newLinkedHashSet(Ljava/lang/Iterable;)Ljava/util/LinkedHashSet;+15
      j org.glassfish.jersey.internal.inject.Providers.getClasses(Ljava/util/Collection;)Ljava/util/Set;+24
      j org.glassfish.jersey.internal.inject.Providers.getProviders(Lorg/glassfish/hk2/api/ServiceLocator;Ljava/lang/Class;)Ljava/util/Set;+11
      j org.glassfish.jersey.message.internal.MessageBodyFactory.<init>(Lorg/glassfish/hk2/api/ServiceLocator;Ljavax/ws/rs/core/Configuration;)V+174
      J 3781 c1 java.lang.invoke.DirectMethodHandle$Holder.newInvokeSpecial(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java.base@20-ea (24 bytes) @ 0x00007f45dd554784 [0x00007f45dd5542e0+0x00000000000004a4]
      j java.lang.invoke.LambdaForm$MH+0x0000000801280800.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+59 java.base@20-ea
      J 2447 c1 jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance([Ljava/lang/Object;)Ljava/lang/Object; java.base@20-ea (148 bytes) @ 0x00007f45dd2a5c24 [0x00007f45dd2a50a0+0x0000000000000b84]
      J 2550 c1 java.lang.reflect.Constructor.newInstanceWithCaller([Ljava/lang/Object;ZLjava/lang/Class;)Ljava/lang/Object; java.base@20-ea (51 bytes) @ 0x00007f45dd2edf6c [0x00007f45dd2edd20+0x000000000000024c]
      J 4740 c1 org.glassfish.hk2.utilities.reflection.ReflectionHelper.makeMe(Ljava/lang/reflect/Constructor;[Ljava/lang/Object;Z)Ljava/lang/Object; (102 bytes) @ 0x00007f45dd71f004 [0x00007f45dd71ee60+0x00000000000001a4]
      J 4707 c1 org.jvnet.hk2.internal.ClazzCreator.createMe(Ljava/util/Map;)Ljava/lang/Object; (217 bytes) @ 0x00007f45dd68178c [0x00007f45dd681220+0x000000000000056c]
      J 4731 c1 org.jvnet.hk2.internal.ClazzCreator.create(Lorg/glassfish/hk2/api/ServiceHandle;Lorg/jvnet/hk2/internal/SystemDescriptor;)Ljava/lang/Object; (226 bytes) @ 0x00007f45dd72c35c [0x00007f45dd72c1e0+0x000000000000017c]
      J 4384 c1 org.jvnet.hk2.internal.SystemDescriptor.create(Lorg/glassfish/hk2/api/ServiceHandle;)Ljava/lang/Object; (91 bytes) @ 0x00007f45dd6204e4 [0x00007f45dd620180+0x0000000000000364]
      j org.jvnet.hk2.internal.SingletonContext$1.compute(Lorg/jvnet/hk2/internal/SingletonContext$ActiveDescriptorAndRoot;)Ljava/lang/Object;+23
      j org.jvnet.hk2.internal.SingletonContext$1.compute(Ljava/lang/Object;)Ljava/lang/Object;+5
      j org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call()Ljava/lang/Object;+14
      j java.util.concurrent.FutureTask.run()V+39 java.base@20-ea
      j org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run()V+4
      J 4612 c2 org.glassfish.hk2.utilities.cache.Cache.compute(Ljava/lang/Object;)Ljava/lang/Object; (159 bytes) @ 0x00007f45e4c03138 [0x00007f45e4c029c0+0x0000000000000778]
      J 4474 c1 org.jvnet.hk2.internal.SingletonContext.findOrCreate(Lorg/glassfish/hk2/api/ActiveDescriptor;Lorg/glassfish/hk2/api/ServiceHandle;)Ljava/lang/Object; (40 bytes) @ 0x00007f45dd62204c [0x00007f45dd621de0+0x000000000000026c]
      J 4103 c1 org.jvnet.hk2.internal.Utilities.createService(Lorg/glassfish/hk2/api/ActiveDescriptor;Lorg/glassfish/hk2/api/Injectee;Lorg/jvnet/hk2/internal/ServiceLocatorImpl;Lorg/glassfish/hk2/api/ServiceHandle;Ljava/lang/Class;)Ljava/lang/Object; (450 bytes) @ 0x00007f45dd5cbd64 [0x00007f45dd5cafa0+0x0000000000000dc4]
      J 4343 c1 org.jvnet.hk2.internal.ServiceLocatorImpl.getService(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Ljava/lang/Object; (36 bytes) @ 0x00007f45dd614094 [0x00007f45dd613f60+0x0000000000000134]
      J 4366 c1 org.jvnet.hk2.internal.IterableProviderImpl.get()Ljava/lang/Object; (87 bytes) @ 0x00007f45dd61ec8c [0x00007f45dd61ea00+0x000000000000028c]
      j org.glassfish.jersey.client.RequestProcessingInitializationStage.apply(Lorg/glassfish/jersey/client/ClientRequest;)Lorg/glassfish/jersey/client/ClientRequest;+23
      j org.glassfish.jersey.client.RequestProcessingInitializationStage.apply(Ljava/lang/Object;)Ljava/lang/Object;+5
      j org.glassfish.jersey.process.internal.Stages$LinkedStage.apply(Ljava/lang/Object;)Lorg/glassfish/jersey/process/internal/Stage$Continuation;+5
      j org.glassfish.jersey.process.internal.Stages.process(Ljava/lang/Object;Lorg/glassfish/jersey/process/internal/Stage;)Ljava/lang/Object;+20
      j org.glassfish.jersey.client.ClientRuntime.invoke(Lorg/glassfish/jersey/client/ClientRequest;)Lorg/glassfish/jersey/client/ClientResponse;+10
      j org.glassfish.jersey.client.JerseyInvocation$2.call()Ljava/lang/Object;+15
      j org.glassfish.jersey.internal.Errors.process(Ljava/util/concurrent/Callable;Z)Ljava/lang/Object;+36
      j org.glassfish.jersey.internal.Errors.process(Lorg/glassfish/jersey/internal/util/Producer;Z)Ljava/lang/Object;+2
      j org.glassfish.jersey.internal.Errors.process(Lorg/glassfish/jersey/internal/util/Producer;)Ljava/lang/Object;+2
      j org.glassfish.jersey.process.internal.RequestScope.runInScope(Lorg/glassfish/jersey/internal/util/Producer;)Ljava/lang/Object;+25
      j org.glassfish.jersey.client.JerseyInvocation.invoke(Ljava/lang/Class;)Ljava/lang/Object;+40
      j org.glassfish.jersey.client.JerseyInvocation$Builder.method(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;+33
      j org.glassfish.jersey.client.JerseyInvocation$Builder.get(Ljava/lang/Class;)Ljava/lang/Object;+4
      j applications.jetty.demo.AggregatorServices.query(Ljava/lang/String;)Ljava/lang/String;+39
      j applications.jetty.demo.AggregatorServices.lambda$allOf$3(Ljava/lang/String;)Ljava/lang/String;+2
      j applications.jetty.demo.AggregatorServices$$Lambda$360+0x0000000801244cf0.call()Ljava/lang/Object;+8
      j java.util.concurrent.ThreadPerTaskExecutor$ThreadBoundFuture.run()V+22 java.base@20-ea
      j java.lang.VirtualThread.run(Ljava/lang/Runnable;)V+66 java.base@20-ea
      j java.lang.VirtualThread$VThreadContinuation.lambda$new$0(Ljava/lang/VirtualThread;Ljava/lang/Runnable;)V+2 java.base@20-ea
      j java.lang.VirtualThread$VThreadContinuation$$Lambda$280+0x000000080116d540.run()V+8 java.base@20-ea
      j jdk.internal.vm.Continuation.enter0()V+4 java.base@20-ea
      j jdk.internal.vm.Continuation.enter(Ljdk/internal/vm/Continuation;Z)V+1 java.base@20-ea
      J 3152 jdk.internal.vm.Continuation.enterSpecial(Ljdk/internal/vm/Continuation;ZZ)V java.base@20-ea (0 bytes) @ 0x00007f45e4b4cfa4 [0x00007f45e4b4ce40+0x0000000000000164]
      j jdk.internal.vm.Continuation.run()V+122 java.base@20-ea
      j java.lang.VirtualThread.runContinuation()V+81 java.base@20-ea
      j java.lang.VirtualThread$$Lambda$281+0x000000080116d768.run()V+4 java.base@20-ea
      j java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec()Z+4 java.base@20-ea
      j java.util.concurrent.ForkJoinTask.doExec()I+10 java.base@20-ea
      J 3792 c1 java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V java.base@20-ea (83 bytes) @ 0x00007f45dd55a60c [0x00007f45dd55a520+0x00000000000000ec]
      J 3759 c1 java.util.concurrent.ForkJoinPool.scan(Ljava/util/concurrent/ForkJoinPool$WorkQueue;II)I java.base@20-ea (263 bytes) @ 0x00007f45dd541c8c [0x00007f45dd5414e0+0x00000000000007ac]
      j java.util.concurrent.ForkJoinPool.runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V+35 java.base@20-ea
      j java.util.concurrent.ForkJoinWorkerThread.run()V+31 java.base@20-ea
      v ~StubRoutines::call_stub 0x00007f45e443ed21
      V [libjvm.so+0x1047a30] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x500 (javaCalls.cpp:417)
      V [libjvm.so+0x1048242] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x432 (javaCalls.cpp:331)
      V [libjvm.so+0x1048831] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x71 (javaCalls.cpp:193)
      V [libjvm.so+0x11cb6cb] thread_entry(JavaThread*, JavaThread*)+0x12b (jvm.cpp:2876)
      V [libjvm.so+0x107d5f6] JavaThread::thread_main_inner()+0x206 (javaThread.cpp:697)
      V [libjvm.so+0x1a854e0] Thread::call_run()+0x100 (thread.cpp:224)
      V [libjvm.so+0x17154c3] thread_native_entry(Thread*)+0x103 (os_linux.cpp:739)

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j java.util.concurrent.ConcurrentHashMap.transfer([Ljava/util/concurrent/ConcurrentHashMap$Node;[Ljava/util/concurrent/ConcurrentHashMap$Node;)V+372 java.base@20-ea
      J 3911 c2 java.util.concurrent.ConcurrentHashMap.putVal(Ljava/lang/Object;Ljava/lang/Object;Z)Ljava/lang/Object; java.base@20-ea (432 bytes) @ 0x00007f45e4bd14ac [0x00007f45e4bd0a20+0x0000000000000a8c]
      J 3499 c2 java.util.concurrent.ConcurrentHashMap.putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java.base@20-ea (8 bytes) @ 0x00007f45e4b97268 [0x00007f45e4b97220+0x0000000000000048]
      J 4612 c2 org.glassfish.hk2.utilities.cache.Cache.compute(Ljava/lang/Object;)Ljava/lang/Object; (159 bytes) @ 0x00007f45e4c02d88 [0x00007f45e4c029c0+0x00000000000003c8]
      J 4474 c1 org.jvnet.hk2.internal.SingletonContext.findOrCreate(Lorg/glassfish/hk2/api/ActiveDescriptor;Lorg/glassfish/hk2/api/ServiceHandle;)Ljava/lang/Object; (40 bytes) @ 0x00007f45dd62204c [0x00007f45dd621de0+0x000000000000026c]
      J 4103 c1 org.jvnet.hk2.internal.Utilities.createService(Lorg/glassfish/hk2/api/ActiveDescriptor;Lorg/glassfish/hk2/api/Injectee;Lorg/jvnet/hk2/internal/ServiceLocatorImpl;Lorg/glassfish/hk2/api/ServiceHandle;Ljava/lang/Class;)Ljava/lang/Object; (450 bytes) @ 0x00007f45dd5cbd64 [0x00007f45dd5cafa0+0x0000000000000dc4]
      J 4446 c1 org.jvnet.hk2.internal.ServiceHandleImpl.getService(Lorg/glassfish/hk2/api/ServiceHandle;)Ljava/lang/Object; (102 bytes) @ 0x00007f45dd62e5ac [0x00007f45dd62e3c0+0x00000000000001ec]
      J 4476 c1 org.jvnet.hk2.internal.ServiceHandleImpl.getService()Ljava/lang/Object; (6 bytes) @ 0x00007f45dd63218c [0x00007f45dd632120+0x000000000000006c]
      j org.glassfish.jersey.internal.inject.ProviderToService.apply(Lorg/glassfish/hk2/api/ServiceHandle;)Ljava/lang/Object;+5
      j org.glassfish.jersey.internal.inject.ProviderToService.apply(Ljava/lang/Object;)Ljava/lang/Object;+5
      j jersey.repackaged.com.google.common.collect.Iterators$8.transform(Ljava/lang/Object;)Ljava/lang/Object;+5
      J 4555 c1 jersey.repackaged.com.google.common.collect.TransformedIterator.next()Ljava/lang/Object; (14 bytes) @ 0x00007f45dd71481c [0x00007f45dd714760+0x00000000000000bc]
      J 3017 c1 java.util.AbstractCollection.addAll(Ljava/util/Collection;)Z java.base@20-ea (42 bytes) @ 0x00007f45dd3dc9fc [0x00007f45dd3dc820+0x00000000000001dc]
      j java.util.LinkedHashSet.<init>(Ljava/util/Collection;)V+23 java.base@20-ea
      j jersey.repackaged.com.google.common.collect.Sets.newLinkedHashSet(Ljava/lang/Iterable;)Ljava/util/LinkedHashSet;+15
      j org.glassfish.jersey.internal.inject.Providers.getClasses(Ljava/util/Collection;)Ljava/util/Set;+24
      j org.glassfish.jersey.internal.inject.Providers.getProviders(Lorg/glassfish/hk2/api/ServiceLocator;Ljava/lang/Class;)Ljava/util/Set;+11
      j org.glassfish.jersey.message.internal.MessageBodyFactory.<init>(Lorg/glassfish/hk2/api/ServiceLocator;Ljavax/ws/rs/core/Configuration;)V+174
      J 3781 c1 java.lang.invoke.DirectMethodHandle$Holder.newInvokeSpecial(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java.base@20-ea (24 bytes) @ 0x00007f45dd554784 [0x00007f45dd5542e0+0x00000000000004a4]
      j java.lang.invoke.LambdaForm$MH+0x0000000801280800.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+59 java.base@20-ea
      J 2447 c1 jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance([Ljava/lang/Object;)Ljava/lang/Object; java.base@20-ea (148 bytes) @ 0x00007f45dd2a5c24 [0x00007f45dd2a50a0+0x0000000000000b84]
      J 2550 c1 java.lang.reflect.Constructor.newInstanceWithCaller([Ljava/lang/Object;ZLjava/lang/Class;)Ljava/lang/Object; java.base@20-ea (51 bytes) @ 0x00007f45dd2edf6c [0x00007f45dd2edd20+0x000000000000024c]
      J 4740 c1 org.glassfish.hk2.utilities.reflection.ReflectionHelper.makeMe(Ljava/lang/reflect/Constructor;[Ljava/lang/Object;Z)Ljava/lang/Object; (102 bytes) @ 0x00007f45dd71f004 [0x00007f45dd71ee60+0x00000000000001a4]
      J 4707 c1 org.jvnet.hk2.internal.ClazzCreator.createMe(Ljava/util/Map;)Ljava/lang/Object; (217 bytes) @ 0x00007f45dd68178c [0x00007f45dd681220+0x000000000000056c]
      J 4731 c1 org.jvnet.hk2.internal.ClazzCreator.create(Lorg/glassfish/hk2/api/ServiceHandle;Lorg/jvnet/hk2/internal/SystemDescriptor;)Ljava/lang/Object; (226 bytes) @ 0x00007f45dd72c35c [0x00007f45dd72c1e0+0x000000000000017c]
      J 4384 c1 org.jvnet.hk2.internal.SystemDescriptor.create(Lorg/glassfish/hk2/api/ServiceHandle;)Ljava/lang/Object; (91 bytes) @ 0x00007f45dd6204e4 [0x00007f45dd620180+0x0000000000000364]
      j org.jvnet.hk2.internal.SingletonContext$1.compute(Lorg/jvnet/hk2/internal/SingletonContext$ActiveDescriptorAndRoot;)Ljava/lang/Object;+23
      j org.jvnet.hk2.internal.SingletonContext$1.compute(Ljava/lang/Object;)Ljava/lang/Object;+5
      j org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call()Ljava/lang/Object;+14
      j java.util.concurrent.FutureTask.run()V+39 java.base@20-ea
      j org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run()V+4
      J 4612 c2 org.glassfish.hk2.utilities.cache.Cache.compute(Ljava/lang/Object;)Ljava/lang/Object; (159 bytes) @ 0x00007f45e4c03138 [0x00007f45e4c029c0+0x0000000000000778]
      J 4474 c1 org.jvnet.hk2.internal.SingletonContext.findOrCreate(Lorg/glassfish/hk2/api/ActiveDescriptor;Lorg/glassfish/hk2/api/ServiceHandle;)Ljava/lang/Object; (40 bytes) @ 0x00007f45dd62204c [0x00007f45dd621de0+0x000000000000026c]
      J 4103 c1 org.jvnet.hk2.internal.Utilities.createService(Lorg/glassfish/hk2/api/ActiveDescriptor;Lorg/glassfish/hk2/api/Injectee;Lorg/jvnet/hk2/internal/ServiceLocatorImpl;Lorg/glassfish/hk2/api/ServiceHandle;Ljava/lang/Class;)Ljava/lang/Object; (450 bytes) @ 0x00007f45dd5cbd64 [0x00007f45dd5cafa0+0x0000000000000dc4]
      J 4343 c1 org.jvnet.hk2.internal.ServiceLocatorImpl.getService(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;)Ljava/lang/Object; (36 bytes) @ 0x00007f45dd614094 [0x00007f45dd613f60+0x0000000000000134]
      J 4366 c1 org.jvnet.hk2.internal.IterableProviderImpl.get()Ljava/lang/Object; (87 bytes) @ 0x00007f45dd61ec8c [0x00007f45dd61ea00+0x000000000000028c]
      j org.glassfish.jersey.client.RequestProcessingInitializationStage.apply(Lorg/glassfish/jersey/client/ClientRequest;)Lorg/glassfish/jersey/client/ClientRequest;+23
      j org.glassfish.jersey.client.RequestProcessingInitializationStage.apply(Ljava/lang/Object;)Ljava/lang/Object;+5
      j org.glassfish.jersey.process.internal.Stages$LinkedStage.apply(Ljava/lang/Object;)Lorg/glassfish/jersey/process/internal/Stage$Continuation;+5
      j org.glassfish.jersey.process.internal.Stages.process(Ljava/lang/Object;Lorg/glassfish/jersey/process/internal/Stage;)Ljava/lang/Object;+20
      j org.glassfish.jersey.client.ClientRuntime.invoke(Lorg/glassfish/jersey/client/ClientRequest;)Lorg/glassfish/jersey/client/ClientResponse;+10
      j org.glassfish.jersey.client.JerseyInvocation$2.call()Ljava/lang/Object;+15
      j org.glassfish.jersey.internal.Errors.process(Ljava/util/concurrent/Callable;Z)Ljava/lang/Object;+36
      j org.glassfish.jersey.internal.Errors.process(Lorg/glassfish/jersey/internal/util/Producer;Z)Ljava/lang/Object;+2
      j org.glassfish.jersey.internal.Errors.process(Lorg/glassfish/jersey/internal/util/Producer;)Ljava/lang/Object;+2
      j org.glassfish.jersey.process.internal.RequestScope.runInScope(Lorg/glassfish/jersey/internal/util/Producer;)Ljava/lang/Object;+25
      j org.glassfish.jersey.client.JerseyInvocation.invoke(Ljava/lang/Class;)Ljava/lang/Object;+40
      j org.glassfish.jersey.client.JerseyInvocation$Builder.method(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;+33
      j org.glassfish.jersey.client.JerseyInvocation$Builder.get(Ljava/lang/Class;)Ljava/lang/Object;+4
      j applications.jetty.demo.AggregatorServices.query(Ljava/lang/String;)Ljava/lang/String;+39
      j applications.jetty.demo.AggregatorServices.lambda$allOf$3(Ljava/lang/String;)Ljava/lang/String;+2
      j applications.jetty.demo.AggregatorServices$$Lambda$360+0x0000000801244cf0.call()Ljava/lang/Object;+8
      j java.util.concurrent.ThreadPerTaskExecutor$ThreadBoundFuture.run()V+22 java.base@20-ea
      j java.lang.VirtualThread.run(Ljava/lang/Runnable;)V+66 java.base@20-ea
      j java.lang.VirtualThread$VThreadContinuation.lambda$new$0(Ljava/lang/VirtualThread;Ljava/lang/Runnable;)V+2 java.base@20-ea
      j java.lang.VirtualThread$VThreadContinuation$$Lambda$280+0x000000080116d540.run()V+8 java.base@20-ea
      j jdk.internal.vm.Continuation.enter0()V+4 java.base@20-ea
      j jdk.internal.vm.Continuation.enter(Ljdk/internal/vm/Continuation;Z)V+1 java.base@20-ea
      J 3152 jdk.internal.vm.Continuation.enterSpecial(Ljdk/internal/vm/Continuation;ZZ)V java.base@20-ea (0 bytes) @ 0x00007f45e4b4cfa4 [0x00007f45e4b4ce40+0x0000000000000164]
      j jdk.internal.vm.Continuation.run()V+122 java.base@20-ea
      j java.lang.VirtualThread.runContinuation()V+81 java.base@20-ea
      j java.lang.VirtualThread$$Lambda$281+0x000000080116d768.run()V+4 java.base@20-ea
      j java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec()Z+4 java.base@20-ea
      j java.util.concurrent.ForkJoinTask.doExec()I+10 java.base@20-ea
      J 3792 c1 java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V java.base@20-ea (83 bytes) @ 0x00007f45dd55a60c [0x00007f45dd55a520+0x00000000000000ec]
      J 3759 c1 java.util.concurrent.ForkJoinPool.scan(Ljava/util/concurrent/ForkJoinPool$WorkQueue;II)I java.base@20-ea (263 bytes) @ 0x00007f45dd541c8c [0x00007f45dd5414e0+0x00000000000007ac]
      j java.util.concurrent.ForkJoinPool.runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V+35 java.base@20-ea
      j java.util.concurrent.ForkJoinWorkerThread.run()V+31 java.base@20-ea
      v ~StubRoutines::call_stub 0x00007f45e443ed21

      I'm starting this bug off in hotspot/jfr for initial triage since
      that's the code that tried to allocate the handle.

      Attachments

        Issue Links

          Activity

            People

              mgronlun Markus Grönlund
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: