self-debug using ptrace bad behavior?