fix make check shm-snapshot