From: <pau...@ke...> - 2018-03-21 16:00:18
|
I'm trying to get valgrind to work on a Cavium Octeon III target. I've managed to run configure+make (MIPS64 target with soft-float ... couldn't get hard-float to build) and install the binaries on the target, but can't get past Bus Errors: # valgrind ls ==41605== Memcheck, a memory error detector ==41605== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==41605== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==41605== Command: ls ==41605== ==41605== Invalid read of size 8 ==41605== at 0x4206EE4: __ctype_init (in /lib/libc-2.16.so) ==41605== by 0x41F7C8C: _init (in /lib/libc-2.16.so) ==41605== by 0x40129D8: call_init (in /lib/ld-2.16.so) ==41605== by 0x4012BC8: _dl_init (in /lib/ld-2.16.so) ==41605== by 0x400328C: _dl_start_user (in /lib/ld-2.16.so) ==41605== Address 0xffffffffffff9000 is not stack'd, malloc'd or (recently) free'd ==41605== ==41605== ==41605== Process terminating with default action of signal 10 (SIGBUS): dumping core ==41605== at 0x4206EE4: __ctype_init (in /lib/libc-2.16.so) ==41605== by 0x41F7C8C: _init (in /lib/libc-2.16.so) ==41605== by 0x40129D8: call_init (in /lib/ld-2.16.so) ==41605== by 0x4012BC8: _dl_init (in /lib/ld-2.16.so) ==41605== by 0x400328C: _dl_start_user (in /lib/ld-2.16.so) ==41605== Invalid read of size 4 ==41605== at 0x4019508: __dl_runtime_resolve (in /lib/ld-2.16.so) ==41605== by 0x40192D8: _dl_runtime_resolve (in /lib/ld-2.16.so) ==41605== Address 0xffffffffffff8900 is not stack'd, malloc'd or (recently) free'd ==41605== ==41605== ==41605== Process terminating with default action of signal 10 (SIGBUS) ==41605== at 0x4019508: __dl_runtime_resolve (in /lib/ld-2.16.so) ==41605== by 0x40192D8: _dl_runtime_resolve (in /lib/ld-2.16.so) ==41605== ==41605== HEAP SUMMARY: ==41605== in use at exit: 0 bytes in 0 blocks ==41605== total heap usage: 0 allocs, 0 frees, 0 bytes allocated ==41605== ==41605== All heap blocks were freed -- no leaks are possible ==41605== ==41605== For counts of detected and suppressed errors, rerun with: -v ==41605== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) Bus error I've tried with other executables as well and pretty much the same thing always happens: bus error very early in execution. Any guidance would be appreciated. Paul |