How to get the start address of segment from a back trace address

view full story

http://stackoverflow.com – Presently my program is giving back trace as [centos@avr ~]$ ./a.out ./a.out [0x804846d] Is there any way in which i can find out the start address of the segment from this address Example if i run my test application [centos@avr ~]$ ./a.out ./a.out [0x804846d] **Start address : 0x8048000** My current code is void show_backtrace() { void *array[10]; size_t size; char **strings; int i; size = backtrace (array, 10); strings = backtrace_symbols ((void *const *)array, size); printf ("%s\n", strings[0]); free (strings) (HowTos)