Fun with ptrace and memory of an executable