On Mon, Jan 18, 2010 at 3:32 PM, (Rebecca) Xuefei YUAN <span dir="ltr"><<a href="mailto:xy2102@columbia.edu">xy2102@columbia.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear Jed,<br>
<br>
I got some origins, but I still do not understand what is going on here?<br>
<br>
Here is a piece of uninitialised value from<br>
<br>
==9725== Conditional jump or move depends on uninitialised value(s)<br>
==9725== at 0x86EFB20: dnrm2_ (dnrm2.f:46)<br>
==9725== by 0x857ECB1: VecNorm_Seq (bvec2.c:60)<br>
==9725== by 0x8556C5B: VecNormBegin (comb.c:507)<br>
==9725== by 0x80BCE2D: SNESSolve_LS (ls.c:164)<br>
==9725== by 0x809E6E3: SNESSolve (snes.c:2221)<br>
==9725== by 0x80B71E4: DMMGSolveSNES (damgsnes.c:510)<br>
==9725== by 0x80B0A23: DMMGSolve (damg.c:372)<br>
==9725== by 0x8050E41: Solve (twgcqt2unffnidgp.c:580)<br>
==9725== by 0x804DBE0: main (twgcqt2unffnidgp.c:288)<br>
==9725== Uninitialised value was created by a heap allocation<br>
==9725== at 0x4022BF3: malloc (vg_replace_malloc.c:195)<br>
==9725== by 0x8628840: PetscMallocAlign (mal.c:40)<br>
==9725== by 0x862992F: PetscTrMallocDefault (mtr.c:194)<br>
==9725== by 0x8583503: VecCreate_Seq (bvec2.c:809)<br>
==9725== by 0x8569F43: VecSetType (vecreg.c:54)<br>
==9725== by 0x858E01B: VecCreateSeq (vseqcr.c:40)<br>
==9725== by 0x821F345: DACreateLocalVector (dalocal.c:82)<br>
==9725== by 0x825E26C: DMCreateLocalVector (dm.c:115)<br>
==9725== by 0x821F7FF: DMGetLocalVector (dalocal.c:139)<br>
==9725== by 0x8055EBD: FormFunction (twgcqt2unffnidgp.c:1033)<br>
==9725== by 0x80953E8: SNESComputeFunction (snes.c:1016)<br>
==9725== by 0x80BCD06: SNESSolve_LS (ls.c:159)<br>
<br>
What would it mean by "Uninitialised value was created by a heap allocation"?<br></blockquote><div><br>Heap allocation means calling malloc(). It looks like you get a vector but do not<br>set some components.<br>
<br> Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks a lot!<br>
<br>
Rebecca<br>
<br>
Quoting Jed Brown <jed@59A2.org>:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 18 Jan 2010 15:33:21 -0500, "(Rebecca) Xuefei YUAN" <<a href="mailto:xy2102@columbia.edu" target="_blank">xy2102@columbia.edu</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear Jed,<br>
<br>
Thanks for the reply.<br>
<br>
However, there was an error message for this option:<br>
</blockquote>
<br>
It was introduced in valgrind-3.4.0 (and it's worth upgrading just for<br>
this feature).<br>
<br>
Jed<br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
-- <br>
(Rebecca) Xuefei YUAN<br>
Department of Applied Physics and Applied Mathematics<br>
Columbia University<br>
Tel:917-399-8032<br>
<a href="http://www.columbia.edu/%7Exy2102" target="_blank">www.columbia.edu/~xy2102</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <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>