It seems that threads added by --follow-children get duplicated, so if the same thread is linked three times by different threads it'll be added to our list three times in a row and cause issues.
Alternatively, the child thread that kept getting added was a closed thread, so I wonder whether it just kept seeing that the thread was closed, removing it from our list, and then next time it checked for child threads it just readded it because it didn't seem to exist at all in our list.
It seems that threads added by
--follow-children
get duplicated, so if the same thread is linked three times by different threads it'll be added to our list three times in a row and cause issues.Alternatively, the child thread that kept getting added was a closed thread, so I wonder whether it just kept seeing that the thread was closed, removing it from our list, and then next time it checked for child threads it just readded it because it didn't seem to exist at all in our list.
Will investigate.