Hi All,
I am trying to run valgrind on ArmV7-CA9.
I cross compile the valgrind 3.6.1 for the target Arm platform using the
following commands
$ ./configure --host=armv7-unknown-linux-gnu --prefix=/opt/valgrind
$ make
$ make install
I copied the binaries and libraries generated in the /opt/valgrind folder to
the target /opt/valgrind folder.
After copying I exported the /opt/valgrind path in the target to $PATH
I run the following command on the target machine
# valgrind -d -d -v -v --trace-flags=10000000 ls -l
I am getting segfault from the *libuClibc-0.9.30-nptl.so
*Part of the output,where the segfault is happening is pasted below
==1200== Invalid read of size 4
==1200== at 0x489249C: __uClibc_main (in /lib/libuClibc-0.9.30-nptl.so)
==1200== Address 0xbd5d5c64 is just below the stack ptr. To suppress, use:
--workaround-gcc296-bugs=yes
==1200==
==== SB 613 [tid 1] __uClibc_main+480(0x489249c) SBs exec'd 112015 ====
==== SB 614 [tid 1] _dl_app_init_array(0x4001394) SBs exec'd 112016 ====
==== SB 615 [tid 1] (0x400133c) SBs exec'd 112017 ====
==== SB 616 [tid 1] (0xca60) SBs exec'd 112020 ====
==== SB 617 [tid 1] (0xca7c) SBs exec'd 112021 ====
==== SB 618 [tid 1] __uClibc_main+484(0x48924a0) SBs exec'd 112024 ====
==== SB 619 [tid 1] __uClibc_main+504(0x48924b4) SBs exec'd 112025 ====
==== SB 620 [tid 1] __errno_location+24(0x4858e4c) SBs exec'd 112029 ====
==== SB 621 [tid 1] __uClibc_main+508(0x48924b8) SBs exec'd 112030 ====
==== SB 622 [tid 1] __uClibc_main+536(0x48924d4) SBs exec'd 112031 ====
==== SB 623 [tid 1] __h_errno_location(0x4858e58) SBs exec'd 112032 ====
==== SB 624 [tid 1] __h_errno_location+24(0x4858e70) SBs exec'd 112052 ====
==== SB 625 [tid 1] __uClibc_main+540(0x48924d8) SBs exec'd 112053 ====
==== SB 626 [tid 1] _setjmp(0x484e3c8) SBs exec'd 112054 ====
==== SB 627 [tid 1] __sigsetjmp(0x484e3a8) SBs exec'd 112055 ====
==== SB 628 [tid 1] __sigjmp_save+44(0x488a0fc) SBs exec'd 112056 ====
==== SB 629 [tid 1] __uClibc_main+556(0x48924e8) SBs exec'd 112057 ====
==== SB 630 [tid 1] __uClibc_main+564(0x48924f0) SBs exec'd 112058 ====
==== SB 631 [tid 1] __aeabi_read_tp(0x484e440) SBs exec'd 112059 ====
==== SB 632 [tid 1] (0xffff0fe0) SBs exec'd 112060 ====
==== SB 633 [tid 1] __uClibc_main+568(0x48924f4) SBs exec'd 112061 ====
==1200== Invalid read of size 4
==1200== at 0x4892500: __uClibc_main (in /lib/libuClibc-0.9.30-nptl.so)
==1200== Address 0x4001c054 is not stack'd, malloc'd or (recently) free'd
==1200==
==1200==
==1200== Process terminating with default action of signal 11 (SIGSEGV)
==1200== Access not within mapped region at address 0x4001C054
==1200== at 0x4892500: __uClibc_main (in /lib/libuClibc-0.9.30-nptl.so)
==1200== If you believe this happened as a result of a stack
==1200== overflow in your program's main thread (unlikely but
==1200== possible), you can try to increase the size of the
At the end I am gettin the following output
==1200== ERROR SUMMARY: 25 errors from 3 contexts (suppressed: 0 from 0)
--1200:1:core_os VG_(terminate_NORETURN)(tid=1)
Segmentation fault
Does anyone how why the valgrind is giving segfault for *
libuClibc-0.9.30-nptl.so?*
Also does Valgrind -3.6.1 will support Arm V7 Cortex A9?
How to debug the segfault happened will running the valgrind?
Regards
Durga.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users