|
From: Apostolos M. <apo...@gm...> - 2006-06-13 13:12:30
|
On 6/12/06, Apostolos Manolitzas <apo...@gm...> wrote: > On 6/11/06, Dennis Lubert <pla...@pr...> wrote: > > Am Freitag, den 09.06.2006, 18:05 +0300 schrieb Apostolos Manolitzas: > > > > > BUT the program is not executed with the following error: > > > valgrind --tool=3Dmemcheck --log-file=3D/mnt/ipu/tmp/grind.log ./m= yfile.x -s9 > > > ./nms.imgX =C5=14"t=C4=01_\=C6BX=10=10!0=03=03=03=03=03=03=03=03=03= =03=03=03=03=03=03=03 > > > L//lib/valgrind//ppc32-linux/vgpreload_core.so=B0=C4=01X=CC=01=C4=01Y= t=C4=01Y=04=EC=C0=B4t8Droot@foo:# For a better clarification, I attach the execution of the program with the flags -v -v -d -d. thanks in advanced, Apostolos --371:1:debuglog DebugLog system started by Stage 1, level 2 logging reques= ted --371:1:launcher no tool requested, defaulting to 'memcheck' --371:1:launcher no platform detected, defaulting platform to 'ppc32-linux' --371:1:launcher launching /mnt/ipu/lib/valgrind/ppc32-linux/memcheck --371:1:debuglog DebugLog system started by Stage 2 (main), level 2 logging requested --371:1:main Welcome to Valgrind version 3.2.0 debug logging --371:1:main Checking current stack is plausible --371:1:main Checking initial stack was noted --371:1:main Starting the address space manager --371:2:aspacem sp_at_startup =3D 0x007FFFFCC0 (supplied) --371:2:aspacem minAddr =3D 0x0004000000 (computed) --371:2:aspacem maxAddr =3D 0x007FFFEFFF (computed) --371:2:aspacem cStart =3D 0x0004000000 (computed) --371:2:aspacem vStart =3D 0x0042000000 (computed) --371:2:aspacem suggested_clstack_top =3D 0x007EFFFFFF (computed) --371:2:aspacem <<< SHOW_SEGMENTS: Initial layout (5 segments, 0 segname= s) --371:2:aspacem 0: RSVN 0000000000-0003FFFFFF 64m ----- SmFixed --371:2:aspacem 1: 0004000000-0041FFFFFF 992m --371:2:aspacem 2: RSVN 0042000000-0042000FFF 4096 ----- SmFixed --371:2:aspacem 3: 0042001000-007FFFEFFF 991m --371:2:aspacem 4: RSVN 007FFFF000-00FFFFFFFF 2048m ----- SmFixed --371:2:aspacem >>> --371:2:aspacem Reading /proc/self/maps --371:2:aspacem <<< SHOW_SEGMENTS: With contents of /proc/self/maps (11 segments, 1 segnames) --371:2:aspacem ( 0) /mnt/ipu/lib/valgrind/ppc32-linux/memcheck --371:2:aspacem 0: RSVN 0000000000-0003FFFFFF 64m ----- SmFixed --371:2:aspacem 1: 0004000000-0037FFFFFF 832m --371:2:aspacem 2: FILE 0038000000-0038163FFF 1458176 r-x-- d=3D0x008 i=3D6045873 o=3D0 (0) --371:2:aspacem 3: 0038164000-0038172FFF 61440 --371:2:aspacem 4: FILE 0038173000-0038174FFF 8192 rw--- d=3D0x008 i=3D6045873 o=3D1454080 (0) --371:2:aspacem 5: ANON 0038175000-00388FAFFF 7888896 rwx-- --371:2:aspacem 6: 00388FB000-0041FFFFFF 151m --371:2:aspacem 7: RSVN 0042000000-0042000FFF 4096 ----- SmFixed --371:2:aspacem 8: 0042001000-007FFFEFFF 991m --371:2:aspacem 9: ANON 007FFFF000-007FFFFFFF 4096 rwx-- --371:2:aspacem 10: RSVN 0080000000-00FFFFFFFF 2048m ----- SmFixed --371:2:aspacem >>> --371:1:main Address space manager is running --371:1:main Starting the dynamic memory manager --371:1:mallocfr newSuperblock at 0x42001000 (pszB 1048560) owner VALGRIND/= tool --371:1:main Dynamic memory manager is running --371:1:main Getting stage1's name --371:1:main Get hardware capabilities ... --371:1:main ... arch =3D PPC32, hwcaps =3D ppc32-int-flt-GX --371:1:main Split up command line --371:1:main Preprocess command line opts --371:1:main Loading client --371:1:main Setup client env --371:2:main preload_string: --371:2:main "/mnt/ipu/lib/valgrind/ppc32-linux/vgpreload_core.so:/mnt/ipu/lib/valgrind/= ppc32-linux/vgpreload_memcheck.so" --371:1:main Setup client stack --371:2:main PPC32 cache line size 32 (type 19) --371:2:main PPC32 cache line size 32 (type 20) --371:2:main Client info: initial_IP=3D0x4010A48 initial_SP=3D0x7EFFFCD0 initial_TOC=3D0x0 brk_base=3D0x10011000 --371:1:main Setup client data (brk) segment --371:1:main Setup file descriptors --371:1:main Create fake /proc/<pid>/cmdline --371:1:main Initialise the tool part 1 (pre_clo_init) --371:1:main Print help and quit, if requested --371:1:main Process Valgrind's command line options, setup logging --371:1:mallocfr newSuperblock at 0x42101000 (pszB 1048560) owner VALGRIND/= core --371:1:main Print the preamble... =3D=3D371=3D=3D Memcheck, a memory error detector. =3D=3D371=3D=3D Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et= al. =3D=3D371=3D=3D Using LibVEX rev 1606, a library for dynamic binary transla= tion. =3D=3D371=3D=3D Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP. =3D=3D371=3D=3D Using valgrind-3.2.0, a dynamic binary instrumentation fram= ework. =3D=3D371=3D=3D Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et= al. =3D=3D371=3D=3D --371-- Command line --371-- mem_stress.x --371-- 20000 --371-- Startup, with flags: --371-- -v --371-- -v --371-- -d --371-- -d --371-- Contents of /proc/version: --371-- Linux version 2.4.20_mvl31-8270ppu (iple@pclinux) (gcc version 3.3.1 (MontaVista 3.3.1-3.0.10.0300532 2003-12-24)) #8 Fri Feb 24 10:43:32 EET 2006 --371-- Arch and hwcaps: PPC32, ppc32-int-flt-GX --371-- Valgrind library directory: /mnt/ipu/lib/valgrind --371:1:main ...finished the preamble --371:1:main Initialise the tool part 2 (post_clo_init) --371:1:main Initialise TT/TC --371-- TT/TC: VG_(init_tt_tc) (startup of code management) --371-- TT/TC: cache: 8 sectors of 20127744 bytes each =3D 161021952 total --371-- TT/TC: table: 524168 total entries, max occupancy 419328 (80%) --371:2:transtab cache: 8 sectors of 20127744 bytes each =3D 161021952 to= tal --371:2:transtab table: 524168 total entries, max occupancy 419328 (80%) --371:1:main Initialise redirects --371:1:mallocfr newSuperblock at 0x4227C000 (pszB 1048560) owner VALGRIND/symtab --371:1:main Load initial debug info --371-- Reading syms from /lib/ld-2.3.2.so (0x4000000) --371:2:transtab discard_translations(0x40127E0, 1) req by redir_new_SegInfo(from_addr) --371:2:transtab FAST, ec =3D 36 --371:2:transtab discard_translations(0x3802EDF8, 1) req by redir_new_SegInfo(to_addr) --371:2:transtab FAST, ec =3D 93 --371:2:transtab discard_translations(0x40129B0, 1) req by redir_new_SegInfo(from_addr) --371:2:transtab FAST, ec =3D 37 --371:2:transtab discard_translations(0x3802EDD0, 1) req by redir_new_SegInfo(to_addr) --371:2:transtab FAST, ec =3D 93 --371-- Reading syms from /root/mem_stress.x (0x10000000) --371-- Reading syms from /mnt/ipu/lib/valgrind/ppc32-linux/memcheck (0x38000000) --371-- object doesn't have a dynamic symbol table --371:1:mallocfr newSuperblock at 0x4237C000 (pszB 1048560) owner VALGRIND/symtab --371:1:mallocfr newSuperblock at 0x4247C000 (pszB 1048560) owner VALGRIND/symtab --371:1:mallocfr newSuperblock at 0x4257C000 (pszB 2052080) owner VALGRIND/symtab --371:1:redir transfer ownership V -> C of 0x3802E000 .. 0x3802EFFF --371:1:main Tell tool about initial permissions --371:2:main tell tool about 0004000000-0004016FFF r-x --371:2:main tell tool about 0004026000-0004027FFF rwx --371:2:main tell tool about 0010000000-0010000FFF r-x --371:2:main tell tool about 0010010000-0010010FFF rwx --371:2:main tell tool about 0010011000-0010011FFF rwx --371:2:main tell tool about 003802E000-003802EFFF r-x --371:2:main tell tool about 007EFFF000-007EFFFFFF rwx --371:2:main mark stack inaccessible 007EFFF000-007EFFFCCF --371:1:main Initialise scheduler --371:1:main Initialise thread 1's state --371:1:main Initialise signal management --371:1:main Load suppressions --371-- Reading suppressions file: /mnt/ipu/lib/valgrind/default.supp --371:2:stacks register 0x7EFFF000-0x7EFFFFFF as stack 0 --371:1:main --371:1:main --371:1:aspacem <<< SHOW_SEGMENTS: Memory layout at client startup (26 segments, 3 segnames) --371:1:aspacem ( 0) /mnt/ipu/lib/valgrind/ppc32-linux/memcheck --371:1:aspacem ( 1) /root/mem_stress.x --371:1:aspacem ( 2) /lib/ld-2.3.2.so --371:1:aspacem 0: RSVN 0000000000-0003FFFFFF 64m ----- SmFixed --371:1:aspacem 1: file 0004000000-0004016FFF 94208 r-x-- d=3D0x1F01 i=3D622 o=3D0 (2) --371:1:aspacem 2: 0004017000-0004025FFF 61440 --371:1:aspacem 3: file 0004026000-0004027FFF 8192 rwx-- d=3D0x1F01 i=3D622 o=3D90112 (2) --371:1:aspacem 4: 0004028000-000FFFFFFF 191m --371:1:aspacem 5: file 0010000000-0010000FFF 4096 r-x-- d=3D0x1F01 i=3D1987 o=3D0 (1) --371:1:aspacem 6: 0010001000-001000FFFF 61440 --371:1:aspacem 7: file 0010010000-0010010FFF 4096 rwx-- d=3D0x1F01 i=3D1987 o=3D0 (1) --371:1:aspacem 8: anon 0010011000-0010011FFF 4096 rwx-- --371:1:aspacem 9: RSVN 0010012000-0010810FFF 8384512 ----- SmLower --371:1:aspacem 10: 0010811000-0037FFFFFF 631m --371:1:aspacem 11: FILE 0038000000-003802DFFF 188416 r-x-- d=3D0x008 i=3D6045873 o=3D0 (0) --371:1:aspacem 12: file 003802E000-003802EFFF 4096 r-x-- d=3D0x008 i=3D6045873 o=3D188416 (0) --371:1:aspacem 13: FILE 003802F000-0038163FFF 1265664 r-x-- d=3D0x008 i=3D6045873 o=3D192512 (0) --371:1:aspacem 14: 0038164000-0038172FFF 61440 --371:1:aspacem 15: FILE 0038173000-0038174FFF 8192 rw--- d=3D0x008 i=3D6045873 o=3D1454080 (0) --371:1:aspacem 16: ANON 0038175000-00388FAFFF 7888896 rwx-- --371:1:aspacem 17: 00388FB000-0041FFFFFF 151m --371:1:aspacem 18: RSVN 0042000000-0042000FFF 4096 ----- SmFixed --371:1:aspacem 19: ANON 0042001000-0042788FFF 7897088 rwx-- --371:1:aspacem 20: 0042789000-007E7FFFFF 960m --371:1:aspacem 21: RSVN 007E800000-007EFFEFFF 8384512 ----- SmUpper --371:1:aspacem 22: anon 007EFFF000-007EFFFFFF 4096 rwx-- --371:1:aspacem 23: 007F000000-007FFFEFFF 15m --371:1:aspacem 24: ANON 007FFFF000-007FFFFFFF 4096 rwx-- --371:1:aspacem 25: RSVN 0080000000-00FFFFFFFF 2048m ----- SmFixed --371:1:aspacem >>> --371:1:main --371:1:main --371:1:main Running thread 1 --371:1:syswrap- entering VG_(main_thread_wrapper_NORETURN) --371:1:aspacem allocated thread stack at 0x42789000 size 81920 --371:1:syswrap- run_a_thread_NORETURN(tid=3D1): pre-thread_wrapper --371:1:syswrap- thread_wrapper(tid=3D1): entry --371:1:transtab allocate sector 0 --371-- TT/TC: initialise sector 0 --371:1:mallocfr newSuperblock at 0x43FCF000 (pszB 65520) owner VALGRIND/= ttaux --371:2:transtab discard_translations(0x40273E0, 32) req by scheduler(VEX_TRC_JMP_TINVAL) --371:2:transtab FAST, ec =3D 78 --371:2:transtab discard_translations(0x4027400, 32) req by scheduler(VEX_TRC_JMP_TINVAL) --371:2:transtab FAST, ec =3D 78 --371:2:transtab discard_translations(0x4027440, 32) req by scheduler(VEX_TRC_JMP_TINVAL) --371:2:transtab FAST, ec =3D 78 --371:2:transtab discard_translations(0x4027440, 32) req by scheduler(VEX_TRC_JMP_TINVAL) --371:2:transtab FAST, ec =3D 78 --371:2:transtab discard_translations(0x4027440, 32) req by scheduler(VEX_TRC_JMP_TINVAL) --371:2:transtab FAST, ec =3D 78 --371:2:transtab discard_translations(0x4027440, 32) req by scheduler(VEX_TRC_JMP_TINVAL) --371:2:transtab FAST, ec =3D 78 --371:2:transtab discard_translations(0x4027460, 32) req by scheduler(VEX_TRC_JMP_TINVAL) --371:2:transtab FAST, ec =3D 78 --371:2:transtab discard_translations(0x4027460, 32) req by scheduler(VEX_TRC_JMP_TINVAL) --371:2:transtab FAST, ec =3D 78 --371:2:transtab discard_translations(0x4027460, 32) req by scheduler(VEX_TRC_JMP_TINVAL) --371:2:transtab FAST, ec =3D 78 --371:1:mallocfr newSuperblock at 0x43FDF000 (pszB 262128) owner VALGRIND/exectxt --371:1:mallocfr newSuperblock at 0x4401F000 (pszB 65520) owner VALGRIND/errors --371-- REDIR: 0x40129B0 (strlen) redirected to 0x3802EDD0 (vgPlain_ppc32_linux_REDIR_FOR_strlen) --371-- REDIR: 0x40127E0 (strcmp) redirected to 0x3802EDF8 (vgPlain_ppc32_linux_REDIR_FOR_strcmp) --371:1:signals extending a stack base 0x7EFFF000 down by 4096 --371:2:stacks change stack 0 from 0x7EFFF000-0x7EFFFFFF to 0x7EFFE000-0x7EFFFFFF mem_stress.x |