Under "Ptrace access mode checking", the documentation states:
"1. If the calling thread and the target thread are in the same thread group, access is always allowed."
This is incorrect. A thread may never attach to another in the same group.