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

jdb/threadgroup/threadgroup002 SIGSEGV in JVM/TI GetThreadLocalStorage()

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 15
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      The following test failed in the JDK15 CI:

      vmTestbase/nsk/jdb/threadgroup/threadgroup002/threadgroup002.java

      Here's a snippet from the log file:

      reply[4]: main[1]
      Sending command: threadgroups
      reply[0]: 1. (java.lang.ThreadGroup)655 system
      reply[1]: 2. (java.lang.ThreadGroup)656 main
      reply[2]: 3. (java.lang.ThreadGroup)658 MyThreadGroup#0
      reply[3]: 4. (java.lang.ThreadGroup)659 MyThreadGroup#1
      reply[4]: 5. (java.lang.ThreadGroup)660 MyThreadGroup#2
      reply[5]: 6. (java.lang.ThreadGroup)657 InnocuousThreadGroup
      reply[6]: main[1]
      Sending command: threadgroup MyThreadGroup#0
      reply[0]: main[1]
      Sending command: threadgroup MyThreadGroup#1
      reply[0]: main[1]
      Sending command: threadgroup MyThreadGroup#2
      reply[0]: main[1]
      Sending command: cont
      reply[0]: > #
      reply[1]: # A fatal error has been detected by the Java Runtime Environment:
      reply[2]: #
      reply[3]: # SIGSEGV (0xb) at pc=0x000000010fd03679, pid=69037, tid=39427
      reply[4]: #
      reply[5]: # JRE version: Java(TM) SE Runtime Environment (15.0+33) (fastdebug build 15-ea+33-1545)
      reply[6]: # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 15-ea+33-1545, compiled mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
      reply[7]: # Problematic frame:
      reply[8]: # V [libjvm.dylib+0xb03679] JvmtiEnv::GetThreadLocalStorage(_jobject*, void**)+0x399
      reply[9]: #
      reply[10]: # Core dump will be written. Default location: core.69037
      reply[11]: #
      reply[12]: # An error report file with more information is saved as:
      reply[13]: # /scratch/mesos/slaves/52628e90-e5e7-4ef3-af97-10d8776d10db-S2019/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/95339c6f-ae69-481e-b942-74bade1388d2/runs/4f985c6f-67a9-41ee-b369-297b0ae2257e/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdb/scratch/1/hs_err_pid69037.log
      reply[14]: #
      reply[15]: # If you would like to submit a bug report, please visit:
      reply[16]: # https://bugreport.java.com/bugreport/crash.jsp
      reply[17]: #
      reply[18]:
      reply[19]: The application has been disconnected
      Sending command: quit
      # ERROR: Caught unexpected exception while executing the test: nsk.share.Failure: Debuggee did not exit after 1 <cont> commands

      Here's the crashing thread's stack:

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

      Current thread (0x00007fc67f8dde20): JavaThread "JDWP Event Helper Thread" daemon [_thread_in_vm, id=39427, stack(0x000070000cf73000,0x000070000d073000)] _threads_hazard_ptr=0x00007fc682daabd0, _nested_threads_hazard_ptr_cnt=0

      Stack: [0x000070000cf73000,0x000070000d073000], sp=0x000070000d072ac0, free space=1022k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0xb03679] JvmtiEnv::GetThreadLocalStorage(_jobject*, void**)+0x399
      C [libjdwp.dylib+0x21942] findThread+0x72
      C [libjdwp.dylib+0x21c1b] threadControl_suspendAll+0x17b
      C [libjdwp.dylib+0x18c6f] commandLoop+0x2df
      V [libjvm.dylib+0xb3782f] JvmtiAgentThread::start_function_wrapper(JavaThread*, Thread*)+0xff
      V [libjvm.dylib+0xffb723] JavaThread::thread_main_inner()+0x2a3
      V [libjvm.dylib+0xff69c7] Thread::call_run()+0x1b7
      V [libjvm.dylib+0xdbc7bf] thread_native_entry(Thread*)+0x15f
      C [libsystem_pthread.dylib+0x3661] _pthread_body+0x154
      C [libsystem_pthread.dylib+0x350d] _pthread_body+0x0
      C [libsystem_pthread.dylib+0x2bf9] thread_start+0xd


      siginfo: si_signo: 11 (SIGSEGV), si_code: 0 (unknown), si_addr: 0x0000000000000000

      Since the jdb test crash in JVM/TI GetThreadLocalStorage()
      I'm starting this bug off in hotspot/jvmti.

      The failing task's description is:

      Run test :vmTestbase_nsk_jdb with macosx-x64-debug with -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -XX:+DeoptimizeALot

      so there are some extra options involved.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: