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

Thread list contains newly allocated/born thread that can result fatal crash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 12
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None

      Description

      This problem is exposed by runtime/InternalApi/ThreadCpuTimesDeadlock.java test with ShenandoahGC.

      Thread list contains newly allocated/born thread, has yet made runnable, e.g. thread_id = 0.

      For this particular test, when it iterates through threads with ThreadTimesClosure, it may crash in pthread_getcpuclockid() call if the thread has thread_id = 0.


        Attachments

        1. crash.gdb
          3 kB
          Zhengyu Gu
        2. hs_err_pid25092.log
          173 kB
          Zhengyu Gu

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              zgu Zhengyu Gu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: