Consultor Eletrônico



Kbase P117598: proDebugConfig fails with errno 17 when enabling debugging for a process
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

SYMPTOM(s):

proDebugConfig fails with errno 17 when enabling debugging for a process

Cannot make process <pid> ready for debugging.

Unexpected error, errno 17.

proDebugConfig may already be running. If this is the case, please exit before re-running.

truss or strace output reads:
shmget(105811, ...) = -1 (EEXIST)

ipcs -m lists a shared memory segment with key 0x19D53

FACT(s) (Environment):

OpenEdge 10.x
Unix
Linux Intel

CAUSE:

proDebugConfig failed to allocate a shared memory segment because it already exists.
In order to enable debugging for a process, proDebugConfig allocates a shared memory segment with a fixed key (105811, or 19D53 in hexadecimal), send a signal to the process to debug and then releases the shared memory segment. If it is interrupted before the shared memory segment is released, then it will be unable to run again afterwards, failing with errno 17.

FIX:

1. check that there are no currently running proDebugConfig processes (process name: _debugConfig)
2. run 'ipcrm -M 19D53' to remove the shared memory segment.(on Linux the command should be: "ipcrm -M 0x00019d53")