|
From: Vikram C. <vik...@gm...> - 2017-10-03 20:53:29
|
Thanks a lot. This looks promising. I will try and get back to you. Vikram On Tue, Oct 3, 2017 at 4:01 AM, Maran Pakkirisamy < mpa...@ca...> wrote: > Probably your application is accessing xkphys address space on cavium > processor. > > Try this branch which has support for applications accessing xkphys > address space specifically on octeon processors. > https://github.com/valgrindocteon/valgrind/commits/devel/octeon3 > > You would have to add following command line switch when invoking valgrind > (to instruct valgrind to ignore xkphys address space) > > --ignore-ranges=0x8000000000000000-0xbfffffffffffffff > > > > On Wednesday 20 September 2017 03:20 AM, Vikram Chhibber wrote: > > 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 > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Valgrind-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/valgrind-users > > > -- > Maran Pakkirisamy > > |