|
From: Zhu, Y. <Yan...@vi...> - 2015-04-10 21:39:50
|
What argument should I give to strace in order to get syscall args? Yanwen -----Original Message----- From: Philippe Waroquiers [mailto:phi...@sk...] Sent: Friday, April 10, 2015 5:33 PM To: Zhu, Yanwen Cc: val...@li... Subject: RE: [Valgrind-users] valgrind out of memory error On Fri, 2015-04-10 at 21:24 +0000, Zhu, Yanwen wrote: > Philippe, > > Please see the attached file for > strace -f valgrind -v -v -v -d -d -d > output The trace confirms that the mmap syscall is failing: n64_write(--1953:1:main Starting the dynamic memory manager ) = 54 n64_mmap() = -1 EINVAL (Invalid argument) But we do not see the syscall args. Maybe you need to give an argument to strace to have them ? A possible cause could be the page size: as I understand, mips have different page size setup. If your valgrind has been compiled with a pagesize not matching your kernel/setup, then maybe Valgrind might ask wrongly aligned mmap requests, giving then this EINVAL You could then configure/compile valgrind, specifying the correct page size e.g. use the below configure option: --with-pagesize= override detected page size (4, 16 or 64) Philippe |