User Tools

Site Tools


proc:maps_file

Proc - maps file

The /proc/PID/maps file containing the currently mapped memory regions and their access permissions.

The format is:

addresspermsoffsetdevinodepathname
08048000-08049000r-xp0000000003:008312/opt/test
08049000-0804a000rw-p0000100003:008312/opt/test
0804a000-0806b000rw-p0000000000:000[heap]
a7cb1000-a7cb2000---p0000000000:000
a7cb2000-a7eb2000rw-p0000000000:000
a7eb2000-a7eb3000---p0000000000:000
a7eb3000-a7ed5000rw-p0000000000:000
a7ed5000-a8008000r-xp0000000003:004222/lib/libc.so.6
a8008000-a800a000r--p0013300003:004222/lib/libc.so.6
a800a000-a800b000rw-p0013500003:004222/lib/libc.so.6
a800b000-a800e000rw-p0000000000:000
a800e000-a8022000r-xp0000000003:0014462/lib/libpthread.so.0
a8022000-a8023000r--p0001300003:0014462/lib/libpthread.so.0
a8023000-a8024000rw-p0001400003:0014462/lib/libpthread.so.0
a8024000-a8027000rw-p0000000000:000
a8027000-a8043000r-xp0000000003:008317/lib/ld-linux.so.2
a8043000-a8044000r--p0001b00003:008317/lib/ld-linux.so.2
a8044000-a8045000rw-p0001c00003:008317/lib/ld-linux.so.2
aff35000-aff4a000rw-p0000000000:000[stack]
ffffe000-fffff000r-xp0000000000:000[vdso]

where:

  • address is the address space in the process that it occupies.
  • perms is a set of permissions:
    • r = read.
    • w = write.
    • x = execute.
    • s = shared.
    • p = private (copy on write).
  • offset is the offset into the mapping.
  • dev is the device (major:minor).
  • inode is the inode on that device.
    • 0 indicates that no inode is associated with the memory region, as the case would be with BSS (uninitialized data).
  • pathname shows the name associated file for this mapping. If the mapping is not associated with a file:
    • [heap] = the heap of the program.
    • [stack] = the stack of the main process.
    • [vdso] = the “virtual dynamic shared object”, the kernel system call handler.
    • If empty, the mapping is anonymous.
proc/maps_file.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki