1837979 Members
2957 Online
110124 Solutions
New Discussion

Strange ipcs output.

 
venven
Occasional Contributor

Strange ipcs output.

Here is the output from one of my servers running 11.11

# ipcs -s
IPC status from /dev/kmem as of Wed Dec 28 13:30:03 2005
T ID KEY MODE OWNER GROUP
Semaphores:
s 0 0x41280846 --ra-ra-ra- root root
s 1 0x4e0c0002 --ra-ra-ra- root root
s 2 0x412c10e2 --ra-ra-ra- root root
s 3 0x00446f6e --ra-r--r-- root root
s 4 0x00446f6d --ra-r--r-- root root
s 5 0x01090522 --ra-r--r-- root root
s 6 0x41288db4 --ra-ra-ra- root root
s 7 0x612c0474 --ra-ra-ra- root root
s 8 0x732c0474 --ra-ra-ra- root root
s 9 0x702c0474 --ra-ra-ra- root root
s 10 0x692c0474 --ra-ra-ra- root root
s 11 0x752c0474 --ra-ra-ra- root root
s 12 0x632c0474 --ra-ra-ra- root root
s 13 0x642c0474 --ra-ra-ra- root root
s 14 0x662c0474 --ra-ra-ra- root root
s 15 0x6c2c0474 --ra-ra-ra- root root
s 16 0x6d2c0474 --ra-ra-ra- root root
s 17 0x6f2c0474 --ra-ra-ra- root root
s 18 0x49144749 --ra-r--r-- root root
s 19 0x410c0d92 --ra-ra-ra- root root
s 20 0x00000001 --ra-ra-ra- root root
s 21 0x522c0474 --ra-ra-ra- root root
s 22 0x0d280011 --ra-ra-ra- root root
s 23 0x0d280017 --ra-ra-ra-20130611201869756960

If you notice the last line, the ownership is some strange number?

Is there a way to map this semaphore to some process or map this strange number to a uid?

I checked my /etc/passwd and i don't see any strange UID or GID.

TIA
4 REPLIES 4
Henk Geurts
Esteemed Contributor

Re: Strange ipcs output.

hi venven
i've seen such strange numbers before..
it happens when an application is installed either from CD or pushed from another server.

Are there still any files that belong to this UID ?
find / -exec ll {} \; |grep 20130611

I can imagine that the application was removed after not being stopped correctly ...

you might use
ipcrm command to get rid of this semaphore is not used by any application....
ipcrm -s 23
regards



Steven E. Protter
Exalted Contributor

Re: Strange ipcs output.

Shalom Venven,

A wee bit strange. I'd either follow the ipcrm advice or restart the system. Hopefully it will be gone after that.

Have you recently installed Data Protector software, say pushing it from a Windows box? That could do it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Himanshu_3
Valued Contributor

Re: Strange ipcs output.

Hi Venven,

I am pretty confident that this ipcs anomaly would easily disappear after the system reboot . If you can not get the system down on immediate basis you can also use ipcrm for getting rid of this problem.

Such instances occur mainly because of the application processes not being able to release the semaphores or memory when they exit. This could also be the result of abnormal termination of any process.

Regards,
Himanshu
venven
Occasional Contributor

Re: Strange ipcs output.

I have a call opened with support. They sent me a tool ipcps which shows the process using the semaphore.

I guess this is a tool similar to shminfo.

It is showing me the process using the semaphore.

But the mystery is the user and group. I ran a find for any files unowned or username similar to the numerical value. Everything seem to be fine.

I rebooted last weekend and this has re-appeared again.