Identify the two ptrace issues and fix them all