Re: [Valgrind-users] Is it possible to suppress ??? (in /lib/ld-2.10.1.so) in a valgrind output?

2010-02-01 Thread Alexander Potapenko
You should use Memcheck:Cond rather than Memceck:ValueX. Try looking at valgrind --gen-suppressions=all ./test On Sun, Jan 31, 2010 at 7:32 PM, jody jody@gmail.com wrote: Hi I am using g++ (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4 and valgrind-3.5.0 When i compile this trivial program

Re: [Valgrind-users] Is it possible to suppress ??? (in /lib/ld-2.10.1.so) in a valgrind output?

2010-02-01 Thread jody
Thank You! On Mon, Feb 1, 2010 at 9:44 AM, Alexander Potapenko gli...@google.com wrote: You should use Memcheck:Cond rather than Memceck:ValueX. Try looking at valgrind --gen-suppressions=all ./test On Sun, Jan 31, 2010 at 7:32 PM, jody jody@gmail.com wrote: Hi I am using g++ (Gentoo

[Valgrind-users] variable goes uninitialized after 'return' of method

2010-02-01 Thread jody
Hi In a static method of class a i have the lines 605: if (pLocation != NULL) { 606: printf(Location ok\n); 607: } 608: if (iSpecies == 0) { 609: printf(Species = 0\n); 610: } 611: Agent *pAgent = pLocation-getVegAgent(iSpecies); 612: // next line

Re: [Valgrind-users] variable goes uninitialized after 'return' of method

2010-02-01 Thread Dan Kegel
Maybe the array is uninitialised. Try printing it out. Print any value you don't trust. On Feb 1, 2010 5:22 AM, jody jody@gmail.com wrote: Hi In a static method of class a i have the lines 605: if (pLocation != NULL) { 606: printf(Location ok\n); 607: } 608: if

[Valgrind-users] Fwd: variable goes uninitialized after 'return' of method

2010-02-01 Thread jody
I accidentally replied tpo Julian only. Here it is for the list. Sorry, jody -- Forwarded message -- From: jody jody@gmail.com Date: Mon, Feb 1, 2010 at 3:21 PM Subject: Re: [Valgrind-users] variable goes uninitialized after 'return' of method To: Julian Seward

Re: [Valgrind-users] MPI_Init(0, 0) gives Conditional jump or move depends on uninitialised value(s) error

2010-02-01 Thread Dave Goodell
On Jan 31, 2010, at 1:00 AM, tom fogal wrote: This is the wrong forum to ask for available suppression files, for the most part. In this case, you want to go bother your MPI library vendor. Matt, If you are using valgrind with MPICH2 then you should make sure that you configure MPICH2

Re: [Valgrind-users] variable goes uninitialized after 'return' of method

2010-02-01 Thread Julian Seward
The method used in line 611 is in a different class: 267:Agent *Cell::getVegAgent(spcid id) const { 268: Agent *pAgent = NULL; 269: if (id NUM_VEG) { 270: pAgent = m_apVegetation[id]; 271: } 272: // this is to check for uninitialized 273: if (pAgent

Re: [Valgrind-users] Fwd: variable goes uninitialized after 'return' of method

2010-02-01 Thread Konstantin Serebryany
On Mon, Feb 1, 2010 at 5:22 PM, jody jody@gmail.com wrote: I accidentally replied tpo Julian only. Here it is for the list. Sorry, jody -- Forwarded message -- From: jody jody@gmail.com Date: Mon, Feb 1, 2010 at 3:21 PM Subject: Re: [Valgrind-users] variable goes