|
From: Chia T. K. <cte...@gm...> - 2011-09-06 05:57:56
|
Hello all, I have been attempting to run Valgrind 3.6.1 on a Linux EABI/ARM virtual machine (http://people.debian.org/~aurel32/qemu/armel/) under QEMU 0.13.0 for Windows ( http://homepage3.nifty.com/takeda-toshiya/qemu/qemu-0.13.0-windows.zip). I was able to build and install Valgrind, but running Memcheck on /bin/ls (valgrind /bin/ls) caused the following error: ==1855== Memcheck, a memory error detector ==1855== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==1855== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==1855== Command: ls ==1855== ==1855== Invalid write of size 4 ==1855== at 0x49B9EA8: __pthread_initialize_minimal (in /lib/ libpthread-2.7.so) ==1855== by 0x49B992F: ??? (in /lib/libpthread-2.7.so) ==1855== Address 0x40022aec is not stack'd, malloc'd or (recently) free'd ==1855== ==1855== ==1855== Process terminating with default action of signal 11 (SIGSEGV) ==1855== Access not within mapped region at address 0x40022AEC ==1855== at 0x49B9EA8: __pthread_initialize_minimal (in /lib/ libpthread-2.7.so) ==1855== by 0x49B992F: ??? (in /lib/libpthread-2.7.so) ==1855== If you believe this happened as a result of a stack ==1855== overflow in your program's main thread (unlikely but ==1855== possible), you can try to increase the size of the ==1855== main thread stack using the --main-stacksize= flag. ==1855== The main thread stack size used in this run was 8388608. ==1855== Invalid read of size 4 ==1855== at 0x400E384: _dl_fixup (in /lib/ld-2.7.so) ==1855== by 0x401433F: _dl_runtime_resolve (in /lib/ld-2.7.so) ==1855== by 0x48265AB: _vgnU_freeres (vg_preloaded.c:62) ==1855== by 0x4002297F: ??? ==1855== Address 0x40022980 is not stack'd, malloc'd or (recently) free'd ==1855== ==1855== ==1855== Process terminating with default action of signal 11 (SIGSEGV) ==1855== Access not within mapped region at address 0x40022980 ==1855== at 0x400E384: _dl_fixup (in /lib/ld-2.7.so) ==1855== by 0x401433F: _dl_runtime_resolve (in /lib/ld-2.7.so) ==1855== by 0x48265AB: _vgnU_freeres (vg_preloaded.c:62) ==1855== by 0x4002297F: ??? ==1855== If you believe this happened as a result of a stack ==1855== overflow in your program's main thread (unlikely but ==1855== possible), you can try to increase the size of the ==1855== main thread stack using the --main-stacksize= flag. ==1855== The main thread stack size used in this run was 8388608. ==1855== ==1855== HEAP SUMMARY: ==1855== in use at exit: 0 bytes in 0 blocks ==1855== total heap usage: 0 allocs, 0 frees, 0 bytes allocated ==1855== ==1855== All heap blocks were freed -- no leaks are possible ==1855== ==1855== For counts of detected and suppressed errors, rerun with: -v ==1855== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 25 from 6) Segmentation fault. The configuration of Valgrind was done with ./configure --prefix=/home/user/local/valgrind-3.6.1 --host=armv7-unknown-linux-gnueabi Any advice on what may be causing the problem and how I may fix it? Thank you in advance. |