Hi All,

I am new to valgrind. I am using valgrind 3.6.1 cross compiled for ARMv7.

When I am memcheck getting SEGMENTATION FAULT @ /lib/ld-2.5.so.

Is there any problem while configuration/Installation of valgrind?

Log is below, any support highly appreciated.

/home/administrator/valgrind$ bin/valgrind  -v -v -d -d  /root/valgrind_example

--1078:1:debuglog DebugLog system started by Stage 1, level 2 logging requested
--1078:1:launcher no tool requested, defaulting to 'memcheck'
--1078:2:launcher   selecting platform for '/root/valgrind_example'
--1078:2:launcher   selecting platform for '/root/valgrind_example'
--1078:2:launcher   opened '/root/valgrind_example'
--1078:2:launcher   read 4096 bytes from '/root/valgrind_example'
--1078:2:launcher   selected platform 'arm-linux'
--1078:1:launcher selected platform 'arm-linux'
--1078:1:launcher launching
/home/administrator/valgrind/lib/valgrind/memcheck-arm-linux
--1078:1:debuglog DebugLog system started by Stage 2 (main), level 2
logging requested
--1078:1:main     Welcome to Valgrind version 3.6.1 debug logging
--1078:1:main     Checking current stack is plausible
--1078:1:main     Checking initial stack was noted
--1078:1:main     Starting the address space manager
--1078:2:aspacem            sp_at_startup = 0x00befa4d50 (supplied)
--1078:2:aspacem                  minAddr = 0x0004000000 (computed)
--1078:2:aspacem                  maxAddr = 0x00befa3fff (computed)
--1078:2:aspacem                   cStart = 0x0004000000 (computed)
--1078:2:aspacem                   vStart = 0x00617d2000 (computed)
--1078:2:aspacem    suggested_clstack_top = 0x00bdfa4fff (computed)
--1078:2:aspacem    <<< SHOW_SEGMENTS: Initial layout (5 segments, 0 segnames)
--1078:2:aspacem      0: RSVN 0000000000-0003ffffff     64m ----- SmFixed
--1078:2:aspacem      1:      0004000000-00617d1fff   1495m
--1078:2:aspacem      2: RSVN 00617d2000-00617d2fff    4096 ----- SmFixed
--1078:2:aspacem      3:      00617d3000-00befa3fff   1495m
--1078:2:aspacem      4: RSVN 00befa4000-00ffffffff   1040m ----- SmFixed
--1078:2:aspacem    >>>
--1078:2:aspacem    Reading /proc/self/maps
--1078:2:aspacem    <<< SHOW_SEGMENTS: With contents of
/proc/self/maps (13 segments, 1 segnames)
--1078:2:aspacem    ( 0)
/home/administrator/valgrind/lib/valgrind/memcheck-arm-linux
--1078:2:aspacem      0: RSVN 0000000000-0003ffffff     64m ----- SmFixed
--1078:2:aspacem      1:      0004000000-0037ffffff    832m
--1078:2:aspacem      2: FILE 0038000000-003822afff 2273280 r-x--
d=0x1f02 i=3783    o=32768   (0)
--1078:2:aspacem      3:      003822b000-0038231fff   28672
--1078:2:aspacem      4: FILE 0038232000-0038233fff    8192 rwx--
d=0x1f02 i=3783    o=2301952 (0)
--1078:2:aspacem      5: ANON 0038234000-0038d25fff     10m rwx--
--1078:2:aspacem      6:      0038d26000-00617d1fff    650m
--1078:2:aspacem      7: RSVN 00617d2000-00617d2fff    4096 ----- SmFixed
--1078:2:aspacem      8:      00617d3000-00bef8ffff   1495m
--1078:2:aspacem      9: ANON 00bef90000-00befa4fff   86016 rwx--
--1078:2:aspacem     10: RSVN 00befa5000-00fffeffff   1040m ----- SmFixed
--1078:2:aspacem     11: anon 00ffff0000-00ffff0fff    4096 r-x--
--1078:2:aspacem     12: RSVN 00ffff1000-00ffffffff   61440 ----- SmFixed
--1078:2:aspacem    >>>
--1078:1:main     Address space manager is running
--1078:1:main     Starting the dynamic memory manager
--1078:1:mallocfr newSuperblock at 0x617D3000 (pszB 4194288) owner VALGRIND/tool
--1078:1:main     Dynamic memory manager is running
--1078:1:main     Initialise m_debuginfo
--1078:1:main     VG_(libdir) = /home/administrator/valgrind/lib/valgrind
--1078:1:main     Getting launcher's name ...
--1078:1:main     ... /home/administrator/valgrind/bin/valgrind
--1078:1:main     Get hardware capabilities ...
--1078:1:machine  ARMv7 VFP 0 VFP2 0 VFP3 0 NEON 0
--1078:1:main     ... arch = ARM, hwcaps = ARMv7
--1078:1:main     Getting the working directory at startup
--1078:1:main     ... /home/administrator/valgrind
--1078:1:main     Split up command line
--1078:1:main     (early_) Process Valgrind's command line options
--1078:1:main     Create initial image
--1078:1:initimg  Loading client
--1078:1:initimg  Setup client env
--1078:2:initimg    preload_string:
--1078:2:initimg
"/home/administrator/valgrind/lib/valgrind/vgpreload_core-arm-linux.so:/home/administrator/valgrind/lib/valgrind/vgpreload_memcheck-ar"
--1078:1:initimg  Setup client stack: size will be 8388608
--1078:2:initimg    ARM has-neon from-auxv: NO
--1078:2:initimg    Client info: initial_IP=0x40007E0 initial_TOC=0x0
brk_base=0x11000
--1078:2:initimg    Client info: initial_SP=0xBDFA4D40 max_stack_size=8388608
--1078:1:initimg  Setup client data (brk) segment
--1078:1:main     Setup file descriptors
--1078:1:main     Create fake /proc/<pid>/cmdline
--1078:1:main     Initialise the tool part 1 (pre_clo_init)
--1078:1:mallocfr newSuperblock at 0x61BD3000 (pszB 1048560) owner
VALGRIND/exectxt
--1078:1:main     Print help and quit, if requested
--1078:1:main     (main_) Process Valgrind's command line options, setup logging
--1078:1:mallocfr newSuperblock at 0x61CD3000 (pszB 1048560) owner VALGRIND/core
--1078:1:main     Print the preamble...
==1078== Memcheck, a memory error detector
==1078== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==1078== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==1078== Command: /root/valgrind_example
==1078==
--1078-- Valgrind options:
--1078--    -v
--1078--    -v
--1078--    -d
--1078--    -d
--1078-- Contents of /proc/version:
--1078--   Linux version 2.6.31-203-gee1fdae (root@intermec5) (gcc
version 4.1.2) #118 PREEMPT Thu Mar 17 13:56:25 IST 2011
--1078-- Arch and hwcaps: ARM, ARMv7
--1078-- Page sizes: currently 4096, max supported 4096
--1078-- Valgrind library directory: /home/administrator/valgrind/lib/valgrind
--1078:1:main     ...finished the preamble
--1078:1:main     Initialise the tool part 2 (post_clo_init)
--1078:1:main     Initialise TT/TC
--1078-- TT/TC: VG_(init_tt_tc) (startup of code management)
--1078-- TT/TC: cache: 8 sectors of 24189984 bytes each = 193519872 total
--1078-- TT/TC: table: 524168 total entries, max occupancy 340704 (65%)
--1078:2:transtab   cache: 8 sectors of 24189984 bytes each = 193519872 total
--1078:2:transtab   table: 524168 total entries, max occupancy 340704 (65%)
--1078:1:main     Initialise redirects
--1078:1:mallocfr newSuperblock at 0x61E4E000 (pszB 1048560) owner
VALGRIND/dinfo
--1078:1:main     Load initial debug info
--1078-- Reading syms from /root/valgrind_example (0x8000)
--1078--    svma 0x00000082f8, avma 0x00000082f8
--1078-- Reading syms from /lib/ld-2.5.so (0x4000000)
--1078--    svma 0x00000007e0, avma 0x00040007e0
Segmentation fault


Thanks & Regards,

Zaahir Khan

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to