Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2008 22:28:42 +0200
From:      Per olof Ljungmark <peo@intersonic.se>
To:        freebsd-questions@freebsd.org
Subject:   question on Linux emulation and semget error
Message-ID:  <480F9BFA.2030703@intersonic.se>

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

We have recently upgraded a machine that runs a Linux app from 4.11 to 
7-STABLE. Most things are just fine apart from the app can only be 
started once. If stopped and then restarted, we see
"semget error
Server Stopped"

Googling and reading led me to ipcs and ipcrm:
(after stopping the app)
#ipcs -c
T    ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP

Shared Memory:
T    ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP
m    65536   1330791762 --rwarwarwa     root    wheel     root    wheel

Semaphores:
T    ID          KEY MODE        OWNER    GROUP    CREATOR  CGROUP
s    262144   1332897154 --rwarwarwa     root    wheel     root    wheel

# ipcrm -s 262144

and then the app will start without any problem. The info stored in 
memory is the license key apparently and it is not unloaded with the 
app, or rather, daemon.

How can I get rid of this? We did not see this on 4.11.

--per



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