|
From: Vikram C. <vik...@gm...> - 2017-09-19 21:50:44
|
Hi All, I am trying to run valgrind on our mips 64 bit platform. I have compiled valgrind 3.13 with following configure arguments: ./configure --host=mips64-poky-linux --prefix=... --build=x86_64-linux CC=... CXX=... My code access memory-address range starting from 0x8001180000000000. This is ligitimate access. We have added following valgrind macro in the code before this access as: VALGRIND_MALLOCLIKE_BLOCK(CVMX_ADD_IO_SEG(0x8001180000000000ull), 0x0000000000f00000ull, 0, 1); But when the code tries accessing the memory region, it simply terminates with SIGBUS: ==1492== Process terminating with default action of signal 10 (SIGBUS) If we remove the above valgrind macro, the program still terminates with SIGBUS with additional error message. ==890== Address 0x8001180000001500 is not stack'd, malloc'd or (recently) free' ==890== Process terminating with default action of signal 10 (SIGBUS) I have tried valgrind 3.12 with same issue. If I run any other application under valgrind that does not access this memory region, it works fine. Also, this application runs fine without valgrind. Please let me know what can we do to get around this issue. Thanks |