Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2002 11:50:47 +0100
From:      Anders Nordby <anders@FreeBSD.org>
To:        stable@FreeBSD.org
Subject:   Ipcrm cannot remove certain shared memory segments
Message-ID:  <20021230105047.GA86200@totem.fix.no>

next in thread | raw e-mail | index | archive | help
Hi,

It seems we still have problems with ipcrm not being able to remove
shared memory segments. On a 4.7-STABLE system:

# ipcs -a
Message Queues:
T     ID     KEY        MODE       OWNER    GROUP  CREATOR   CGROUP
CBYTES  QNUM QBYTES LSPID LRPID   STIME    RTIME    CTIME

Shared Memory:
T     ID     KEY        MODE       OWNER    GROUP  CREATOR   CGROUP
NATTCH  SEGSZ  CPID  LPID   ATIME    DTIME    CTIME
m 29622272          0 --rwarwarwa   anders    users   anders    users
2 393216  41265  4112411:25:34 11:25:57 11:25:34
m 30539777          0 --rw-r--r--     root    wheel     root    wheel
1 110592  41124  4126511:32:25 11:32:25 11:32:25
m 7864322          0 --rwarwarwa   anders    users   anders    users
1 393216   2372    27122:18:09 23:04:03 22:18:09
m 2949123          0 --rwarwarwa   anders    users   anders    users
1 460800   2372    27123:02:21 23:04:03 23:02:21
m 1114116          0 --rwarwarwa   anders    users   anders    users
1 112320   2372    27123:02:21 23:04:03 23:02:21
m 655365          0 --rwarwarwa   anders    users   anders    users
1  78400   2372    27122:59:51 23:04:03 22:59:51
m 1572870          0 --rwarwarwa   anders    users   anders    users
1  37600   2372    27122:59:51 23:04:03 22:59:51
m 393223          0 --rwarwarwa   anders    users   anders    users
1  36000   2372    27122:59:51 23:04:03 22:59:51
m 2752520          0 --rwarwarwa   anders    users   anders    users
1 112320   2372    27122:59:51 23:04:03 22:59:51
m 131085          0 --rwarwarwa   anders    users   anders    users
1 748800   2372    27122:58:59 23:04:03 22:58:59
m 8192015          0 --rwarwarwa   anders    users   anders    users
1 748800   2372    27122:58:49 23:04:03 22:58:49
m 8060944          0 --rwarwarwa   anders    users   anders    users
1 748800   2372    27122:59:02 23:04:03 22:59:02
(..)

Semaphores:
T     ID     KEY        MODE       OWNER    GROUP  CREATOR   CGROUP
NSEMS   OTIME    CTIME

# ipcrm -m 1114116
ipcrm: shmid(1114116): : Invalid argument

The creating process (CPID = 2372) does of course not exist:

# ps axjww -p 2372
USER   PID  PPID  PGID   SESS JOBC STAT  TT       TIME COMMAND

The creating process may have been programs running the Linuxulator I
suppose, I run a couple of Linux programs.

Is anyone with kernel-foo thinking about fixing or looking into this?

Cheers,

-- 
Anders.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021230105047.GA86200>