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

XMLWordPrintable

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

      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.


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

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

              Created:
              Updated:
              Resolved: