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

SIGSEGV in FailedSpeculation::free_failed_speculations during ClassLoaderData destructor call

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: External
    • Affects Version/s: 17
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      The following test failed in the JDK17 CI:

      applications/kitchensink/Kitchensink8H.java

      Here's a snippet from the log file:

      Output and diagnostic info for process 37485 was saved into 'pid-37485-output.log'
      [2021-07-28T10:36:33.423522Z] Waiting for completion for process 37485
      [2021-07-28T10:36:33.423572Z] Waiting for completion finished for process 37485
      [stress.process.out] #
      [stress.process.out] # A fatal error has been detected by the Java Runtime Environment:
      [stress.process.out] #
      [stress.process.out] # SIGSEGV (0xb) at pc=0x000000010f241b80, pid=36957, tid=15875
      [stress.process.out] #
      [stress.process.out] # JRE version: Java(TM) SE Runtime Environment (17.0+33) (build 17-ea+33-LTS-2696)
      [stress.process.out] # Java VM: Java HotSpot(TM) 64-Bit Server VM (17-ea+33-LTS-2696, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)
      [stress.process.out] # Problematic frame:
      [stress.process.out] # V [libjvm.dylib+0x830b80] FailedSpeculation::free_failed_speculations(FailedSpeculation**)+0x20
      [stress.process.out] #
      [stress.process.out] # Core dump will be written. Default location: core.36957
      [stress.process.out] #
      [stress.process.out] # JFR recording file will be written. Location: /System/Volumes/Data/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S10752/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/24e3692f-786c-4943-8ca5-a076a2b0daee/runs/71297ef6-2f6e-4f32-83a3-1934a329e676/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink8H_java/scratch/0/hs_err_pid36957.jfr
      [stress.process.out] #
      [stress.process.out] Unsupported internal testing APIs have been used.
      [stress.process.out]
      [stress.process.out] # An error report file with more information is saved as:
      [stress.process.out] # /System/Volumes/Data/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S10752/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/24e3692f-786c-4943-8ca5-a076a2b0daee/runs/71297ef6-2f6e-4f32-83a3-1934a329e676/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink8H_java/scratch/0/hs_err_pid36957.log
      [stress.process.out] #
      [stress.process.out] # If you would like to submit a bug report, please visit:
      [stress.process.out] # https://bugreport.java.com/bugreport/crash.jsp
      [stress.process.out] #
      [2021-07-28T10:37:13.395772Z] Gathering output for process 37498
      [2021-07-28T10:37:13.397342Z] Waiting for completion for process 37498
      [2021-07-28T10:37:13.397407Z] Waiting for completion finished for process 37498
      Output and diagnostic info for process 37498 was saved into 'pid-37498-output.log'


      Here's the crashing thread's stack:

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

      Current thread (0x00007fbd8e9360a0): VMThread "VM Thread" [stack: 0x000070000b575000,0x000070000b675000] [id=15875]

      Stack: [0x000070000b575000,0x000070000b675000], sp=0x000070000b674720, free space=1021k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x830b80] FailedSpeculation::free_failed_speculations(FailedSpeculation**)+0x20
      V [libjvm.dylib+0x82574e] Method::release_C_heap_structures()+0x1e
      V [libjvm.dylib+0x4e5b01] InstanceKlass::release_C_heap_structures()+0x61
      V [libjvm.dylib+0x2e37c0] ClassLoaderData::~ClassLoaderData()+0x40
      V [libjvm.dylib+0x2e631c] ClassLoaderDataGraph::purge(bool)+0x3c
      V [libjvm.dylib+0x4128d9] G1ConcurrentMark::remark()+0x599
      V [libjvm.dylib+0x4659e3] VM_G1Concurrent::doit()+0x173
      V [libjvm.dylib+0xa67df6] VM_Operation::evaluate()+0xd6
      V [libjvm.dylib+0xa6cffe] VMThread::evaluate_operation(VM_Operation*)+0xae
      V [libjvm.dylib+0xa6d892] VMThread::inner_execute(VM_Operation*)+0x1f2
      V [libjvm.dylib+0xa6cd1a] VMThread::run()+0xca
      V [libjvm.dylib+0x9ec6ca] Thread::call_run()+0x11a
      V [libjvm.dylib+0x880fe8] thread_native_entry(Thread*)+0x148
      C [libsystem_pthread.dylib+0x68fc] _pthread_start+0xe0
      C [libsystem_pthread.dylib+0x2443] thread_start+0xf


      siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000100000000008

      This test task has no JVM args.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dcubed Daniel Daugherty
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: