mmap strangeness in 2.4.22

From: Richard B. Johnson
Date: Thu Oct 09 2003 - 09:57:24 EST



I have a shared memory segment called 0xdeadface,
shown below.

When active, readable, writable, etc., it shows up
in /proc/NNN/maps as (deleted). How/why would this
be?

Also, `cat mem` in any /proc/NNN subdirectory returns
"No such process" when `cat` tries to read it.


Output from cat /proc/MYPID/maps:

08048000-0804b000 r-xp 00000000 08:11 457876 /root/Message-Based/monitor/monitor
0804b000-0804c000 rw-p 00002000 08:11 457876 /root/Message-Based/monitor/monitor
0804c000-08075000 rwxp 00000000 00:00 0
40000000-40013000 r-xp 00000000 08:11 393742 /root/Message-Based/clib/ld.so
40013000-40014000 rw-p 00012000 08:11 393742 /root/Message-Based/clib/ld.so
40014000-40015000 rw-p 00000000 00:00 0
40015000-4001c000 r-xp 00000000 08:11 964822 /root/Message-Based/lib/llib.so
4001c000-4001d000 rw-p 00006000 08:11 964822 /root/Message-Based/lib/llib.so
4001d000-40030000 r-xp 00000000 08:11 394079 /root/Message-Based/clib/crt.so
40030000-40031000 rw-p 00012000 08:11 394079 /root/Message-Based/clib/crt.so
40031000-400d2000 rw-s 00000000 00:04 0 /SYSVdeadface (deleted)
bfffe000-c0000000 rwxp fffff000 00:00 0

Cheers,
Dick Johnson
Penguin : Linux version 2.4.22 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/