bugfix: coredumped when read msg from shm