class_admin process stuck

From: Robert Mulley (robert.mulley@travelcorporation.com.au)
Date: Tue May 07 2002 - 23:15:33 EDT


Hello,

We've got some problems with class_admin being run from sys_check. Machine:
2xGS320 Cluster/Tru64 5.1 PK4. We are running BMC Patrol which allocates
some semaphores. The problem seems to be that it gets allocated semaphores
starting 2. However for some reason "class_admin stats" always tries to do
semop on semID 2, as shown in this truss I ran against it:
execve("/usr/sbin/class_admin", 0x000000011FFFC020, 0x000000011FFFC038)
argc = 2
getpagesize() = 8192
brk(0x0000000140020C90) = 0
getuid() = 0 [ 0 ]
getuid() = 0 [ 0 ]
mkdir("/etc/class", 0600) Err#17 File exists
brk(0x0000000140030C90) = 0
stat("/etc/class/part.default", 0x000000011FFFBE00) = 0
shmget(1640565271, 57776, IPC_CREAT|IPC_EXCL) Err#17 File exists
shmget(1640565271, 57776, IPC_EXCL) = 7
shmat(7, 0x00000000, SHM_RND) = 0x0000000000012000
getuid() = 0 [ 0 ]
getuid() = 0 [ 0 ]
getgid() = 1 [ 1 ]
getgroups(32, 0x000000011FFFB180) = 6
open("/usr/lib/nls/msg/C/class_admin.cat", O_RDONLY, 00) Err#2 No such file
or directory
getuid() = 0 [ 0 ]
open("/usr/share/.msg_conv-C", O_RDONLY, 04000003630) Err#2 No such file or
directory
semop(2, 0x000000011FFF8608, 1) (sleeping...)

It then sits there forever and never returns. When that semaphore ID is
free, then it gets errors and continues as it should. We are not running any
class scheduling etc... so why is this process trying to connect to this
semaphore. Any ideas, or just a bug.

Robert Mulley
System Administrator
The Travel Corporation Pty Ltd
Travel House
35 Grafton Street
Woollahra NSW 2025
(02) 9028 5585



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:40 EDT