clearing shared memory from unterminated processes


Click here for full thread
Clicked A Few Times
Previously, I asked a question regarding how to clear share memory from strayed process. Edo told me to use a scriptl called 'ipcreset' shiped with nwchem package to deal with it, http://nwchemgit.github.io/Special_AWCforum/st/id1001/Errors_Running_Nwchem_6.3.ht.... This script does a great job most of the time. However, there is some process that cannot be handled by this script. For example I have tried to use ipreset but it turned out to be like this,

[tpirojsi@compute-0-55 ~]$ ipcs -a


Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 589826 tpirojsi 600 2147483648 12 dest


Semaphore Arrays --------
key semid owner perms nsems


Message Queues --------
key msqid owner perms used-bytes messages


As far as I noticed, the strayed process that can be killed will have nattch '0' but for a non-zero nattach (12 in above example) it cannot be cleared. I have tried 'ipcrm' as suggested in many websites online but still unsuccessful too. Any idea how to fix this problem please?

Best,
Tee