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.
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.
- duplicates
-
JDK-8212207 runtime/InternalApi/ThreadCpuTimesDeadlock.java crashes with SEGV in pthread_getcpuclockid+0x0
- Resolved