What argument should I give to strace in order to get syscall args?

Yanwen

-----Original Message-----
From: Philippe Waroquiers [mailto:philippe.waroqui...@skynet.be] 
Sent: Friday, April 10, 2015 5:33 PM
To: Zhu, Yanwen
Cc: valgrind-users@lists.sourceforge.net
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


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to