Logging last syscall code for memory error