It would be helpful if I could get information on the following
Why does the stack bounds change for a process every time it is restarted on Linux ? Why does it change ?
If I want to capture the heap area of a process through another process which also runs in user level, what would be the best method to do it?
Similarly, if I want to find a process's pending signals through another process, how could I do it.
It would be of great help if I could get help for these
Thanks & Regards
schannah
process memory
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: process memory
does bounds mean address? if so its changing every time because of ASLRschannah wrote:Why does the stack bounds change for a process every time it is restarted on Linux ? Why does it change?
This can be turned off by
The easiest way to get the addresses of another processes heap would be to parse the /proc/<pid>/maps file of the process you want. From there you can use ptrace to read the memory out of the other process into yours.echo 0 > /proc/sys/kernel/randomize_va_space