Implement SMEM
improve coredump()