1

I want to view the stack location of a running process. How can I view the memory map and find out the memory location of the stack using terminal without using any debuggers.

Context:
I am studying bufferoverflow attacks and prevention mechanisms that are used in operating systems. I need to learn how Ubuntu employs ASLR.

Thank you.

5

pmap will show memory map of a process and all associated processes running if you have the process ID. Perhaps that is what you want?

3
  • I looked at before..But it does not show the expected information
    – Deepal
    Sep 6 '13 at 12:20
  • 2
    @Saradiyel, what do you mean? It shows the information you said you expected; namely the memory map including stack location.
    – psusi
    Sep 6 '13 at 14:45
  • 1
    @psusi, It was my mistake. I didn't run that command as root. So I couldn't view the memory map of processes which running as root. :) Now its ok.
    – Deepal
    Sep 7 '13 at 10:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.