Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Unix/Linux memory map command

  1. Oct 5, 2009 #1
    Here is a small segment that was dumped after an error in a program has occured - that does alot of memory allocation.


    Code (Text):
    b7ee6000-b7ee7000 rw-p 00157000 08:02 72280      /lib/libc-2.9.so            
    b7ee7000-b7eea000 rw-p b7ee7000 00:00 0                                      
    b7eea000-b7ef7000 r-xp 00000000 08:02 72115      /lib/libgcc_s.so.1          
    b7ef7000-b7ef8000 r--p 0000c000 08:02 72115      /lib/libgcc_s.so.1          
    b7ef8000-b7ef9000 rw-p 0000d000 08:02 72115      /lib/libgcc_s.so.1          
    b7ef9000-b7f20000 r-xp 00000000 08:02 72284      /lib/libm-2.9.so            
    b7f20000-b7f21000 r--p 00026000 08:02 72284      /lib/libm-2.9.so            
    b7f21000-b7f22000 rw-p 00027000 08:02 72284      /lib/libm-2.9.so    
    Interestingly, it shows the privileges of different memory segments. I'm wondering if there is a command that dumps this kind information if you provide the start and stop memory address. Or to find out which segments are from the heap, or stack.
     
  2. jcsd
  3. Oct 6, 2009 #2

    mgb_phys

    User Avatar
    Science Advisor
    Homework Helper

    pmap will report the memory usage of a process
     
  4. Oct 6, 2009 #3
    thanks, it works
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Unix/Linux memory map command
  1. Freopen() in UNIX (Replies: 1)

Loading...