To get Valgrind working for my MIPS64 Cavium chip so far I have applied a couple of patches.
1. Initially I was seeing the "Valgrind's memory management: out of memory:" error. This was due to the PAGE_SIZE in valgrind being incorrect. To support an 8kB page size I used the patch from here: https://bugs.kde.org/show_bug.cgi?id=342356. After applying this 'valgrind -h' worked correctly. Then when I attempted to run valgrind with a program I would see this error "valgrind: m_coredump/coredump-elf.c:261 (fill_prstatus): Assertion 'sizeof(*regs) == sizeof(prs->pr_reg)' failed" I believe this is due to Cavium specific instructions not being supported currently by Valgrind. I applied the patch from here: https://bugs.kde.org/show_bug.cgi?id=341036 However now the error no longer occurs but it looks to me like Valgrind is just hanging, see below: ==3248== Memcheck, a memory error detector ==3248== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==3248== Using Valgrind-3.11.0.SVN and LibVEX; rerun with -h for copyright info ==3248== Command: passwd ==3248== ==3248== Invalid write of size 8 ==3248== at 0x4003028: _dl_start_user (in /lib64/ld-2.16.so) ==3248== by 0x4002FB8: __start (in /lib64/ld-2.16.so) ==3248== Address 0xfff0017e8 is on thread 1's stack ==3248== 8 bytes below stack pointer ==3248== It stays like this forever. Has anyone encountered this before? ------------------------------------------------------------------------------ _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users