Re: [Valgrind-users] Strange warning for invalid read of size 8 in memcpy

2012-07-06 Thread John Reiser
I'm getting an invalid read of size 8 warning with the code (check.c) below. Everything seems to be fine, and the warning about reading beyond the allocated source pointer comes only when I'm copying the source to a particular index of the destination. Please copy+paste the exact error

Re: [Valgrind-users] Strange warning for invalid read of size 8 in memcpy

2012-07-06 Thread Tanmay Mohapatra
Thanks John! The libc shared library does not seem to mention any version number. I'm on MacOs 10.6.8 on Intel. How do I get the version of libc?Here's what I get from valgrind -v: -==57528== Memcheck, a memory error detector==57528==

[Valgrind-users] outboard symbol file support!

2012-07-06 Thread viju...@gmail.com
hi all,i just wanted know if valgrindd supported reading an outboard symbol file like gdb ? i have a stripped executable and a corresponding symtab file. if yes pls let me know the options for the same.ThanksSent from Samsung Mobile

Re: [Valgrind-users] Strange warning for invalid read of size 8 in memcpy

2012-07-06 Thread John Reiser
(Note no REDIR of memcpy. Alas.) sizeof(mvk_lruc_kv_t)=152, 0x1002772f0, 0x100277388, 0x100277420, 0x1002770e0 at index 0 end at index 0 at index 1 ==57528== Invalid read of size 8 ==57528==at 0x7FE00BAC: ??? ==57528==by 0x10E4D: __inline_memcpy_chk (in ./check) ==57528==

Re: [Valgrind-users] Strange warning for invalid read of size 8 in memcpy

2012-07-06 Thread Patrick J. LoPresti
On Fri, Jul 6, 2012 at 11:45 AM, John Reiser jrei...@bitwagon.com wrote: The compiler has decided to generate inline code for memcpy. This is hard for memcheck to recognize as memcpy. But memcheck does not have to recognize it at all if you use --partial-loads-ok=yes. The problem is that the

Re: [Valgrind-users] Stop running the application upon first error valgrind finds

2012-07-06 Thread Zvi Vered
Dear Philippe, You help is highly appreciated. Best regards, Zvika. On 7/7/12, Philippe Waroquiers philippe.waroqui...@skynet.be wrote: On Fri, 2012-07-06 at 13:50 +0300, Zvi Vered wrote: Hello, Is it

[Valgrind-users] Compiling valgrind with non-default gcc

2012-07-06 Thread Zvi Vered
Hello, Using crosstool-ng I created a gcc for Pentium-M running vanlilla 2.6.27.35 I used this compiler to build the kernel, busy box and a device driver I wrote. Now I want to use this toolchain to compile valgrind 3.7.0 (last release). So I ran export

Re: [Valgrind-users] Strange warning for invalid read of size 8 in memcpy

2012-07-06 Thread John Reiser
On 07/06/2012 03:37 PM, Patrick J. LoPresti wrote: On Fri, Jul 6, 2012 at 11:45 AM, John Reiser jrei...@bitwagon.com wrote: The compiler has decided to generate inline code for memcpy. This is hard for memcheck to recognize as memcpy. But memcheck does not have to recognize it at all if you

Re: [Valgrind-users] Compiling valgrind with non-default gcc

2012-07-06 Thread Philippe Waroquiers
On Sat, 2012-07-07 at 03:19 +0300, Zvi Vered wrote: If I run gcc --version (on my gcc) I get: .i686-nptl-linux-gnu-gcc (crosstool-NG-1.5.2) 4.3.2 Copyright (C) 2008 Free Software Foundation, Inc. If I run gcc --version on the default gcc installed on my Centos 5.3 I get: gcc (GCC) 4.1.2

Re: [Valgrind-users] Compiling valgrind with non-default gcc

2012-07-06 Thread John Reiser
Now I want to use this toolchain to compile valgrind 3.7.0 (last release). So I ran export CC=/home/zvivered/gnu/toolchain/release/bin/i686-nptl-linux-gnu-gcc before running ./configure configure: error: please use gcc = 3.0 or clang = 2.9 If I run gcc --version (on my gcc) I get: