Re: [Valgrind-users] valgrind out of memory error

2015-04-13 Thread Tom Hughes
On 13/04/15 21:57, Zhu, Yanwen wrote: > Can you please confirm if mabi=n32 is currently supported by valgrind or not > in MIPS64 platform? My Linux kernel is 64-bits, but our applications have to > be built for 32-bits. So I need to get valgrind with mabi=n32 to work in our > platform. No, t

Re: [Valgrind-users] valgrind out of memory error

2015-04-13 Thread Zhu, Yanwen
Message- From: Zhu, Yanwen Sent: Monday, April 13, 2015 9:35 AM To: 'jsew...@acm.org'; Philippe Waroquiers Cc: valgrind-users@lists.sourceforge.net Subject: RE: [Valgrind-users] valgrind out of memory error Even if I build valgrind with page size of 4 which matches my kernel page

Re: [Valgrind-users] valgrind out of memory error

2015-04-13 Thread Zhu, Yanwen
bject: Re: [Valgrind-users] valgrind out of memory error > 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 wro

Re: [Valgrind-users] valgrind out of memory error

2015-04-13 Thread Julian Seward
> 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 Yes, that would be my

Re: [Valgrind-users] valgrind out of memory error

2015-04-10 Thread Philippe Waroquiers
On Fri, 2015-04-10 at 21:39 +, Zhu, Yanwen wrote: > What argument should I give to strace in order to get syscall args? No idea. On my linux box, a normal strace gives the mmap args. Try to look at strace --help or man strace Philippe --

Re: [Valgrind-users] valgrind out of memory error

2015-04-10 Thread Zhu, Yanwen
] valgrind out of memory error On Fri, 2015-04-10 at 21:24 +, 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

Re: [Valgrind-users] valgrind out of memory error

2015-04-10 Thread Philippe Waroquiers
On Fri, 2015-04-10 at 21:24 +, 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 )

Re: [Valgrind-users] valgrind out of memory error

2015-04-10 Thread Zhu, Yanwen
Subject: RE: [Valgrind-users] valgrind out of memory error On Fri, 2015-04-10 at 20:27 +, Zhu, Yanwen wrote: > Also, I just looked at online: > https://urldefense.proofpoint.com/v2/url?u=https-3A__www.mail-2Darchiv > e.com_valgrind-2Dusers-40lists.sourceforge.net_msg02027.html&

Re: [Valgrind-users] valgrind out of memory error

2015-04-10 Thread Maurice van Swaaij
aaij, Blue Sky Studios ][ - Original Message - | From: "Yanwen Zhu" | To: "Philippe Waroquiers" | Cc: valgrind-users@lists.sourceforge.net | Sent: Friday, April 10, 2015 4:27:39 PM | Subject: Re: [Valgrind-users] valgrind out of memory error | Also, I just looked

Re: [Valgrind-users] valgrind out of memory error

2015-04-10 Thread Philippe Waroquiers
On Fri, 2015-04-10 at 20:48 +, Zhu, Yanwen wrote: > From: Maurice van Swaaij [mailto:maur...@blueskystudios.com] > Sent: Friday, April 10, 2015 4:45 PM > To: Zhu, Yanwen > Cc: valgrind-users@lists.sourceforge.net; Philippe Waroquiers > Subject: Re: [Valgrind-users] valgrin

Re: [Valgrind-users] valgrind out of memory error

2015-04-10 Thread Philippe Waroquiers
On Fri, 2015-04-10 at 20:27 +, Zhu, Yanwen wrote: > Also, I just looked at online: > https://www.mail-archive.com/valgrind-users@lists.sourceforge.net/msg02027.html > > Is it a permission problem? It does not look like. But in any case, it looks like you are running Valgrind as root. This is v

Re: [Valgrind-users] valgrind out of memory error

2015-04-10 Thread Zhu, Yanwen
eforge.net Subject: RE: [Valgrind-users] valgrind out of memory error Philippe, Thanks for your prompt reply, see below for the output when running with -v -v -v -d -d -d and --sanity-level=4 # valgrind -v -v -v -d -d -d --1955:1:debuglog DebugLog system started by Stage 1, level 3 logging

Re: [Valgrind-users] valgrind out of memory error

2015-04-10 Thread Zhu, Yanwen
to 4GB if that's how you have your ==1956== kernel configured. Most 32-bit Linux setups allow a maximum of ==1956== 3GB per process. ==1956== ==1956== Whatever the reason, Valgrind cannot continue. Sorry. -Original Message- From: Philippe Waroquiers [mailto:phi

Re: [Valgrind-users] valgrind out of memory error

2015-04-10 Thread Philippe Waroquiers
On Fri, 2015-04-10 at 20:04 +, Zhu, Yanwen wrote: > Has anyone seen this error when running valgrind 3.10.1 in a MIPS64 > platform? > > > > ==1769== Valgrind's memory management: out of memory: > > ==1769==newSuperblock's request for 4194304 bytes failed. > > ==1769==2

[Valgrind-users] valgrind out of memory error

2015-04-10 Thread Zhu, Yanwen
Has anyone seen this error when running valgrind 3.10.1 in a MIPS64 platform? ==1769== Valgrind's memory management: out of memory: ==1769==newSuperblock's request for 4194304 bytes failed. ==1769==22536192 bytes have already been allocated. ==1769== Valgrind cannot continu