On Thu, Feb 2, 2012 at 11:20 PM, Max Rudolph <span dir="ltr">&lt;<a href="mailto:rudolph@berkeley.edu">rudolph@berkeley.edu</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am trying to track down a memory corruption bug using valgrind, but I am having to wade through lots and lots of error messages similar to this one, which I believe are either spurious or related to some problem in Petsc and not in my code (please correct me if I&#39;m wrong!)<br>
</blockquote><div><br></div><div>Are you using ---download-mpich? It should be valgrind clean. These are a pain, but you can make a supressions</div><div>file as well.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

==18162== Conditional jump or move depends on uninitialised value(s)<br>
==18162==    at 0x7258D73: MPIDI_CH3U_Handle_recv_req (ch3u_handle_recv_req.c:99)<br>
==18162==    by 0x724F2E1: MPIDI_CH3I_SMP_read_progress (ch3_smp_progress.c:656)<br>
==18162==    by 0x72462D4: MPIDI_CH3I_Progress (ch3_progress.c:185)<br>
==18162==    by 0x72AC52B: MPIC_Wait (helper_fns.c:518)<br>
==18162==    by 0x72AC314: MPIC_Sendrecv (helper_fns.c:163)<br>
==18162==    by 0x7218E18: MPIR_Allgather_OSU (allgather_osu.c:524)<br>
==18162==    by 0x7217099: PMPI_Allgather (allgather.c:840)<br>
==18162==    by 0x649FFD: PetscLayoutSetUp (in /work/01038/max/gk_0.1mm/gk_conv_50_vg/iso-convect-p)<br>
==18162==    by 0x631C32: VecCreate_MPI_Private (in /work/01038/max/gk_0.1mm/gk_conv_50_vg/iso-convect-p)<br>
==18162==    by 0x63253E: VecCreate_MPI (in /work/01038/max/gk_0.1mm/gk_conv_50_vg/iso-convect-p)<br>
==18162==    by 0x5E3279: VecSetType (in /work/01038/max/gk_0.1mm/gk_conv_50_vg/iso-convect-p)<br>
==18162==    by 0x6329CC: VecCreate_Standard (in /work/01038/max/gk_0.1mm/gk_conv_50_vg/iso-convect-p)<br>
==18162==    by 0x5E3279: VecSetType (in /work/01038/max/gk_0.1mm/gk_conv_50_vg/iso-convect-p)<br>
==18162==    by 0x93BFE7: DMCreateGlobalVector_DA (in /work/01038/max/gk_0.1mm/gk_conv_50_vg/iso-convect-p)<br>
==18162==    by 0x8C7F68: DMCreateGlobalVector (in /work/01038/max/gk_0.1mm/gk_conv_50_vg/iso-convect-p)<br>
==18162==    by 0x93B6DA: VecDuplicate_MPI_DA (in /work/01038/max/gk_0.1mm/gk_conv_50_vg/iso-convect-p)<br>
==18162==    by 0x5CF419: VecDuplicate (in /work/01038/max/gk_0.1mm/gk_conv_50_vg/iso-convect-p)<br>
==18162==    by 0x438F04: initializeNodalFields (nodalFields.c:35)<br>
==18162==    by 0x434730: main (main_isotropic_convection.c:123)<br>
<br>
The relevant line of code is:<br>
33:  ierr = DMCreateGlobalVector(grid-&gt;da, &amp;nodalFields-&gt;lastT); CHKERRQ(ierr);<br>
34:  ierr = PetscObjectSetName((PetscObject) nodalFields-&gt;lastT, &quot;lastT&quot;);CHKERRQ(ierr);<br>
35:  ierr = VecDuplicate( nodalFields-&gt;lastT, &amp;nodalFields-&gt;thisT);CHKERRQ(ierr);<br>
<br>
I am using icc with petsc-3.2 on the Intel Westmere cluster at TACC. Petsc was compiled with debugging enabled. Thanks for your help.<br>
<span class="HOEnZb"><font color="#888888"><br>
Max</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>