The case I described is when the instance is crashed or aborted. use the "shmid", "semid" given by the ipcs command to remove it, when using ipcrm.

\Prince.