Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BoundVThreadTest - Bad Thread Object
After GetAllStackTraces, derive the thread object from the stack_info array, which is filled by GetAllStackTraces. Currently, the thread object is retrieved from the threads_ptr array, which is filled by GetAllThreads before the call to GetAllStackTraces. Live platform threads might have been created or destroyed between the call to GetAllThreads and GetAllStackTraces. This makes the threads_ptr array stale after GetAllStackTraces. A bad thread object is accessed from the stale threads_ptr which causes a segfault. Related: eclipse-openj9/openj9#17868 Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
- Loading branch information