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

[AOT] crash in ClassLoaderData::is_alive() with AOTed jdk.base

    Details

    • Subcomponent:
    • Resolved In Build:
      b24
    • Verification:
      Verified

      Description

      After JDK-8213259) "[AOT] AOTing java.base fails with "java.lang.AssertionError: no fingerprint for Ljdk/internal/event/Event"
      and JDK-8213486 "SIGSEGV in CompiledMethod::cleanup_inline_caches_impl with AOT" were fixed jck_util and jck_lang tests started to
      crash into 2 different ways when running with AOTed jdk.base module.

      1st crash is in ClassLoaderData::is_alive()

      # Problematic frame:
      # V [libjvm.so+0x93e1b0] ClassLoaderData::is_alive() const+0x0
      #
      --------------- T H R E A D ---------------

      Current thread (0x00007fd2e4062800): JavaThread "CommandExecutor executeThread for command args: [-loadDir, /scratch/opt/mach5/mesos/work_dir/jib-master/install/jck/12/b04/bundles/JCK-runtime-12.jar/JCK-runtime-12/classes:, javasoft.sqe.tests.api.java.util.stream.IntStream.concat.ConcatInfinite]" [_thread_in_vm, id=10477, stack(0x00007fd321ce5000,0x00007fd321de6000)]

      Stack: [0x00007fd321ce5000,0x00007fd321de6000], sp=0x00007fd321ddcd28, free space=991k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x93e1b0] ClassLoaderData::is_alive() const+0x0
      V [libjvm.so+0xa17368] CompiledMethod::add_handler_for_exception_and_pc(Handle, unsigned char*, unsigned char*)+0xb8
      V [libjvm.so+0x10b2174] exception_handler_for_pc_helper(JavaThread*, oopDesc*, unsigned char*, CompiledMethod*&)+0x4f4
      V [libjvm.so+0x10b26ab] JVMCIRuntime::exception_handler_for_pc(JavaThread*)+0x6b
      ...

      2nd crash is in SharedRuntime::handle_ic_miss_helper

      # Problematic frame:
      # V [libjvm.so+0x16209fa] SharedRuntime::handle_ic_miss_helper(JavaThread*, Thread*)+0x72a

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

      Current thread (0x00007f08d005f000): JavaThread "CommandExecutor executeThread for command args: [-loadDir, /scratch/opt/mach5/mesos/work_dir/jib-mast
      er/install/jck/12/b04/bundles/JCK-runtime-12.jar/JCK-runtime-12/classes:, javasoft.sqe.tests.api.java.util.stream.LongStream.concat.ConcatParallel]" [_
      thread_in_vm, id=10576, stack(0x00007f0905dc1000,0x00007f0905ec2000)]

      Stack: [0x00007f0905dc1000,0x00007f0905ec2000], sp=0x00007f0905eb7780, free space=985k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x16209fa] SharedRuntime::handle_ic_miss_helper(JavaThread*, Thread*)+0x72a
      V [libjvm.so+0x16211b1] SharedRuntime::handle_wrong_method_ic_miss(JavaThread*)+0x191
      v ~RuntimeStub::ic_miss_stub
      A 7922 java.util.stream.Collectors.lambda$partitioningBy$62(Ljava/util/function/BiConsumer;Ljava/util/function/Predicate;Ljava/util/stream/Collectors$Partition;Ljava/lang/Object;)V java.base@12-internal (29 bytes) @ 0x00007f09219fef6c [0x00007f09219fef20+0x000000000000004c]
      j java.util.stream.Collectors$$Lambda$105.accept(Ljava/lang/Object;Ljava/lang/Object;)V+13 java.base@12-internal
      A 8133 java.util.stream.ReduceOps$3ReducingSink.accept(Ljava/lang/Object;)V java.base@12-internal (15 bytes) @ 0x00007f091f57593c [0x00007f091f5758a0+0x000000000000009c]
      A 14189 java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Ljava/util/function/Consumer;)V java.base@12-internal (127 bytes) @ 0x00007f091d8e3874 [0x00007f091d8e3720+0x0000000000000154]
      A 5459 java.util.stream.AbstractPipeline.wrapAndCopyInto(Ljava/util/stream/Sink;Ljava/util/Spliterator;)Ljava/util/stream/Sink; java.base@12-internal (18 bytes) @ 0x00007f091d33692c [0x00007f091d336520+0x000000000000040c]
      A 8116 java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Ljava/util/stream/PipelineHelper;Ljava/util/Spliterator;)Ljava/lang/Object; java.base@12-internal (18 bytes) @ 0x00007f092064fa44 [0x00007f092064f9a0+0x00000000000000a4]
      J 3107 c2 java.util.stream.ReferencePipeline.collect(Ljava/util/stream/Collector;)Ljava/lang/Object; java.base@12-internal (124 bytes) @ 0x00007f09308c2974 [0x00007f09308c2320+0x0000000000000654]
      j javasoft.sqe.tests.api.java.util.stream.Collector.tests.CollectorAsArg.partitioningBy_usageTest(Ljavasoft/sqe/tests/api/java/util/stream/Collector/CollectorTestData;)V+36
      ...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eosterlund Erik Ă–sterlund
                Reporter:
                epavlova Ekaterina Pavlova
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: