Skip to contentSkip to conversation

BUG:: SYSV IPC shmem reported as "(deleted)" in process maps file

DISCUSSION Anton Lavrentiev 2 participants 2 messages Aug 30, 2002 – Sep 5, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Dear Linux Developers:

/proc/#/maps file of a process, which has a shared memory segment attached, prints the segment as "(deleted)" while in fact the segment is fine and sound. This seems to be quite confusing.

cat /proc/#/maps:
40018000-40022000 rw-s 00000000 00:05 5865476 /SYSV01315549 (deleted)
4021b000-40225000 rw-s 00000000 00:05 5898248 /SYSV012cc3bc (deleted)

ipcs -a:

0x01315549 5865476    ncbiduse  666        40960      1
0x012cc3bc 5898248    ncbiduse  666        40960      1

Best regards,

Anton Lavrentiev
NCBI/NLM/NIH
Bethesda MD 20894

#2 lore raw

Hi Anton,

Quoted 7 lines · Anton Lavrentiev

cat /proc/#/maps:
40018000-40022000 rw-s 00000000 00:05 5865476 /SYSV01315549 (deleted)
4021b000-40225000 rw-s 00000000 00:05 5898248 /SYSV012cc3bc (deleted)

ipcs -a:

0x01315549 5865476    ncbiduse  666        40960      1
0x012cc3bc 5898248    ncbiduse  666        40960      1

Works as designed.

The internal implementation creates the file unlinked. SYSV is one holder of this open file. The display may be irritating but IMHO its internal simplicity is worth to live with it.

Greetings
Christoph