based on /proc/self/maps what this addresses means and where is the php base address,…
- User
based on /proc/self/maps what this addresses means and where is the php base address, heap base & libc base ?? 5607fae00000-5607faf20000 r--p 00000000 fe:01 5686110 /usr/local/bin/php 5607fb000000-5607fb44d000 r-xp 00200000 fe:01 5686110 /usr/local/bin/php 5607fb600000-5607fbf18000 r--p 00800000 fe:01 5686110 /usr/local/bin/php 5607fc152000-5607fc200000 r--p 01152000 fe:01 5686110 /usr/local/bin/php 5607fc200000-5607fc207000 rw-p 01200000 fe:01 5686110 /usr/local/bin/php 5607fc207000-5607fc228000 rw-p 00000000 00:00 0 5607fc96c000-5607fcbe2000 rw-p 00000000 00:00 0 [heap] 7fe9c74c6000-7fe9c7547000 rw-p 00000000 00:00 0 ............ 7fe9c781a000-7fe9c781b000 r--p 00000000 fe:01 5813209 /app/metadata_reader.so 7fe9c781b000-7fe9c781c000 r-xp 00001000 fe:01 5813209 /app/metadata_reader.so 7fe9c781c000-7fe9c781d000 r--p 00002000 fe:01 5813209 /app/metadata_reader.so 7fe9c781d000-7fe9c781e000 r--p 00002000 fe:01 5813209 /app/metadata_reader.so 7fe9c781e000-7fe9c781f000 rw-p 00003000 fe:01 5813209 /app/metadata_reader.so ............ 7fe9ca531000-7fe9ca557000 r--p 00000000 fe:01 5281947 /usr/lib/x86_64-linux-gnu/libc.so.6 7fe9ca557000-7fe9ca6ac000 r-xp 00026000 fe:01 5281947 /usr/lib/x86_64-linux-gnu/libc.so.6 7fe9ca6ac000-7fe9ca6ff000 r--p 0017b000 fe:01 5281947 /usr/lib/x86_64-linux-gnu/libc.so.6 7fe9ca6ff000-7fe9ca703000 r--p 001ce000 fe:01 5281947 /usr/lib/x86_64-linux-gnu/libc.so.6 7fe9ca703000-7fe9ca705000 rw-p 001d2000 fe:01 5281947 /usr/lib/x86_64-linux-gnu/libc.so.6
- Assistant
To interpret the memory mapping from the
/proc/self/mapsin your example, let's break down the relevant sections.PHP Base Address
From the output, there are several entries for the PHP binary residing at the address space:
- Base address:
5607fb000000(indicated by the first line withr-xpindicating executable permission). - The PHP binary is located at
/usr/local/bin/php.
Heap Base
The heap is typically indicated by an entry like this:
- Heap base address:
5607fc200000(the address starts with , indicating it is writable and private).
- Base address: