linux - pmap result shows many file are mapped from virtual address zero -
for init process, pid 1, , other processes, when use pmap show mmapped file, results show this:
0000000000000000 0k r-x-- /sbin/init 0000000000000000 0k r---- /sbin/init 0000000000000000 0k rw--- /sbin/init 0000000000000000 0k ----- [ stack ] 0000000000000000 0k rw--- [ stack ] 0000000000000000 0k r-x-- /lib/libc-2.12.2.so 0000000000000000 0k ----- /lib/libc-2.12.2.so 0000000000000000 0k r---- /lib/libc-2.12.2.so 0000000000000000 0k rw--- /lib/libc-2.12.2.so 0000000000000000 0k rw--- [ stack ] 0000000000000000 0k r-x-- /lib/ld-2.12.2.so 0000000000000000 0k rw--- [ stack ] 0000000000000000 0k rw--- [ stack ] 0000000000000000 0k r-x-- [ stack ] 0000000000000000 0k rw--- /lib/ld-2.12.2.so 0000000000000000 0k rw--- [ stack ] 0000000000000000 0k rw--- [ stack ] ffffffffff600000 4k r---- [ anon ] total 4k
why happens? virtual address except last 1 start 0 , size zero.
Comments
Post a Comment