fix core_dump shm-memory bug