[PATCH] D46517: [sanitizer] Don't miss threads by ThreadSuspender

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 7 11:31:15 PDT 2018


vitalybuka added a comment.

In https://reviews.llvm.org/D46517#1090037, @eugenis wrote:

> What if there is no short read and the entire list is read in one syscall - does that mean that we've got a consistent thread list for some point of time in the past? If so, then iterating until the list stops changing and ignoring any attempts that ended in short reads should work.


I already tried that. It's possible to have no short read but still small list. Weird that even /proc/<pid>/status:Threads contains small value which match this incomplete list.


Repository:
  rL LLVM

https://reviews.llvm.org/D46517





More information about the llvm-commits mailing list