Calling task.getMemory().getInt() when iterating through a process' mapped memory will occaisionally throw a ptrace IO error. Iterating through the mapped memory with getByte() does not produce this.