|
From: Nishant S. <ns...@in...> - 2006-05-03 09:30:32
|
>>
>> The contents of /proc/self/maps is also usefull, which can be
>> obtained by running valgrind with the -d argument. I've seen multiple
>> occurances of this using glibc 2.2.x, but I have no idea if that is
>> platform-specific.
>>
>
Valgrind output with -d flag :
--1614:1:debuglog DebugLog system started by Stage 1, level 1 logging
requested
--1614:1:launcher no tool requested, defaulting to 'memcheck'
--1614:1:launcher no platform detected, defaulting platform to 'ppc32-linux'
--1614:1:launcher launching /tmp//valgrind/ppc32-linux/memcheck
--1614:1:debuglog DebugLog system started by Stage 2 (main), level 1
logging requested
--1614:1:main Welcome to Valgrind version 3.1.1 debug logging
--1614:1:main Checking current stack is plausible
--1614:1:main Checking initial stack was noted
--1614:1:main Starting the address space manager
--1614:1:main Address space manager is running
--1614:1:main Starting the dynamic memory manager
--1614:1:mallocfr newSuperblock at 0x42001000 (pszB 1048560) owner
VALGRIND/tool
--1614:1:main Dynamic memory manager is running
--1614:1:main Getting stage1's name
--1614:1:main Get hardware capabilities ...
--1614:1:main ... arch = PPC32, subarch = ppc32-int-and-fp
--1614:1:main Split up command line
--1614:1:main Preprocess command line opts
--1614:1:main Loading client
--1614:1:main Setup client env
--1614:1:main Setup client stack
--1614:1:main Setup client data (brk) segment
--1614:1:main Setup file descriptors
--1614:1:main Create fake /proc/<pid>/cmdline
--1614:1:main Initialise the tool part 1 (pre_clo_init)
--1614:1:main Print help and quit, if requested
--1614:1:main Process Valgrind's command line options, setup logging
--1614:1:mallocfr newSuperblock at 0x42101000 (pszB 1048560) owner
VALGRIND/core
--1614:1:main Print the preamble...
==1614== Memcheck, a memory error detector.
==1614== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==1614== Using LibVEX rev 1575, a library for dynamic binary translation.
==1614== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==1614== Using valgrind-3.1.1, a dynamic binary instrumentation framework.
==1614== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==1614== For more details, rerun with: -v
==1614==
--1614:1:main ...finished the preamble
--1614:1:main Initialise the tool part 2 (post_clo_init)
--1614:1:main Initialise TT/TC
--1614:1:main Initialise redirects
--1614:1:mallocfr newSuperblock at 0x42201000 (pszB 1048560) owner
VALGRIND/symtab
--1614:1:main Load initial debug info
--1614:1:mallocfr newSuperblock at 0x42301000 (pszB 1048560) owner
VALGRIND/symtab
--1614:1:mallocfr newSuperblock at 0x42401000 (pszB 1048560) owner
VALGRIND/symtab
--1614:1:mallocfr newSuperblock at 0x42501000 (pszB 1048560) owner
VALGRIND/symtab
--1614:1:redir transfer ownership V -> C of 0x70028000 .. 0x70028FFF
--1614:1:main Tell tool about initial permissions
--1614:1:main Initialise scheduler
--1614:1:main Initialise thread 1's state
--1614:1:main Initialise signal management --1614:1:main Load
suppressions
--1614:1:main
--1614:1:main
--1614:1:aspacem <<< SHOW_SEGMENTS: Memory layout at client startup (27
segments, 3 segnames)
--1614:1:aspacem ( 0) /var/tmp/valgrind/ppc32-linux/memcheck
--1614:1:aspacem ( 1) /bin/busybox
--1614:1:aspacem ( 2) /lib/ld-2.2.5.so
--1614:1:aspacem 0: RSVN 0000000000-0003FFFFFF 64m ----- SmFixed
--1614:1:aspacem 1: file 0004000000-0004012FFF 77824 r-x-- d=0x1F02
i=977784 o=0 (2)
--1614:1:aspacem 2: 0004013000-0004021FFF 61440
--1614:1:aspacem 3: file 0004022000-0004025FFF 16384 rw--- d=0x1F02
i=977784 o=73728 (2)
--1614:1:aspacem 4: 0004026000-000FFFFFFF 191m
--1614:1:aspacem 5: file 0010000000-001003CFFF 249856 r-x-- d=0x1F02
i=340832 o=0 (1)
--1614:1:aspacem 6: 001003D000-001004BFFF 61440
--1614:1:aspacem 7: file 001004C000-001004DFFF 8192 rw--- d=0x1F02
i=340832 o=245760 (1)
--1614:1:aspacem 8: anon 001004E000-0010057FFF 40960 rw---
--1614:1:aspacem 9: anon 0010058000-0010058FFF 4096 rwx--
--1614:1:aspacem 10: RSVN 0010059000-0010857FFF 8384512 ----- SmLower
--1614:1:aspacem 11: 0010858000-0041FFFFFF 791m
--1614:1:aspacem 12: RSVN 0042000000-0042000FFF 4096 ----- SmFixed
--1614:1:aspacem 13: ANON 0042001000-004267EFFF 6807552 rwx--
--1614:1:aspacem 14: 004267F000-006FFFFFFF 729m
--1614:1:aspacem 15: FILE 0070000000-0070027FFF 163840 r-x-- d=0x008
i=352724 o=0 (0)
--1614:1:aspacem 16: file 0070028000-0070028FFF 4096 r-x-- d=0x008
i=352724 o=163840 (0)
--1614:1:aspacem 17: FILE 0070029000-007015AFFF 1253376 r-x-- d=0x008
i=352724 o=167936 (0)
--1614:1:aspacem 18: 007015B000-0070169FFF 61440
--1614:1:aspacem 19: FILE 007016A000-007016BFFF 8192 rw--- d=0x008
i=352724 o=1417216 (0)
--1614:1:aspacem 20: ANON 007016C000-0070836FFF 7122944 rwx--
--1614:1:aspacem 21: 0070837000-007E7FFFFF 223m
--1614:1:aspacem 22: RSVN 007E800000-007EFFEFFF 8384512 ----- SmUpper
--1614:1:aspacem 23: anon 007EFFF000-007EFFFFFF 4096 rwx--
--1614:1:aspacem 24: 007F000000-007FFFEFFF 15m
--1614:1:aspacem 25: ANON 007FFFF000-007FFFFFFF 4096 rwx--
--1614:1:aspacem 26: RSVN 0080000000-00FFFFFFFF 2048m ----- SmFixed
--1614:1:aspacem >>>
--1614:1:main
--1614:1:main
--1614:1:main Running thread 1
--1614:1:syswrap- entering VG_(main_thread_wrapper_NORETURN)
--1614:1:aspacem allocated thread stack at 0x4267F000 size 81920
--1614:1:syswrap- run_a_thread_NORETURN(tid=1): pre-thread_wrapper
--1614:1:syswrap- thread_wrapper(tid=1): entry
--1614:1:transtab allocate sector 0
--1614:1:mallocfr newSuperblock at 0x43EC5000 (pszB 65520) owner
VALGRIND/ttaux
==1614==
==1614== Process terminating with default action of signal 11 (SIGSEGV)
==1614== Bad permissions for mapped region at address 0x4024BF4
==1614== at 0x4024BF4: ???
==1614== by 0x40100E4: (within /lib/ld-2.2.5.so)
--1614:1:syswrap- thread_wrapper(tid=1): exit
--1614:1:syswrap- run_a_thread_NORETURN(tid=1): post-thread_wrapper
--1614:1:syswrap- run_a_thread_NORETURN(tid=1): last one standing
--1614:1:main entering VG_(shutdown_actions_NORETURN)
==1614==
==1614== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==1614== malloc/free: in use at exit: 0 bytes in 0 blocks.
==1614== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==1614== For counts of detected errors, rerun with: -v
==1614== All heap blocks were freed -- no leaks are possible.
--1614:1:core_os VG_(terminate_NORETURN)(tid=1)
tia
nishant
>> Val...@li...
>> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>>
>>
>>
>
|