[Valgrind-users] Conditional jump or move depends on uninitialised value(s)

2008-12-11 Thread Burlen Loring
td::endl; 4 5 int fun(int d) 6 { 7 return d+1; 8 } 9 10 int main(int argc, char **argv) 11 { 12int r,q,j; 13 14q=j; 15r=fun(q); 16if (r) { ++k; } 17cerr << k << endl; 18 19return 0; 20 } -- Burlen Loring Kitware, Inc. R&D Engineer 28 Corpora

[Valgrind-users] 0 bytes inside a block of size 30,121

2016-03-26 Thread Burlen Loring
Hi All, I like to understand better the following reports. I have a buffer that I allocated and that gets filled by MPI recv. However, for every access to the buffer valgrind produce a report similar to the following first report shown here: Invalid read of size 4 Address 0x1788a6d0 is

Re: [Valgrind-users] 0 bytes inside a block of size 30,121

2016-03-27 Thread Burlen Loring
On 03/27/2016 03:08 AM, Tom Hughes wrote: On 26/03/16 19:15, Burlen Loring wrote: I like to understand better the following reports. I have a buffer that I allocated and that gets filled by MPI recv. However, for every access to the buffer valgrind produce a report similar to the following