<div dir="ltr"><div dir="ltr">On Sat, Dec 7, 2019 at 4:04 PM Patrick Sanan <<a href="mailto:patrick.sanan@gmail.com">patrick.sanan@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">I was actually wondering about this, as in some cases valgrind errors appear and sometimes they don't, but I didn't dig into it too deeply.<div><br></div><div><div>Here's my workaround, FWIW, which shows some output for that test on master.</div><div><br></div><div>I don't see any output when I just run the tests like this:</div><div><br></div><div> VALGRIND=1 make -f gmakefile.test test globsearch="dm_impls_plex_tests-ex1_fluent_2"</div><div><br></div><div>But I do see something if I do this to find any non-empty .err files:</div><div><br></div><div> find $PETSC_ARCH/tests -name *.err ! -size 0</div><div><br></div><div>And then I see these valgrind warnings after copy-pasting the path:</div></div></div></blockquote><div><br></div><div>Thats the one. I ran valgrind directly and cannot get this.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><div>$ cat arch-master-extra-opt/tests/dm/impls/plex/examples/tests/runex1_fluent_2/runex1_fluent_2.err</div><div>==4990== Conditional jump or move depends on uninitialised value(s)</div><div>==4990== at 0x4C3705A: rawmemchr (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)</div><div>==4990== by 0x7687351: _IO_str_init_static_internal (strops.c:41)</div><div>==4990== by 0x767878C: vsscanf (iovsscanf.c:40)</div><div>==4990== by 0x76721A3: sscanf (sscanf.c:32)</div><div>==4990== by 0x588147D: DMPlexCreateFluent_ReadSection (plexfluent.c:105)</div><div>==4990== by 0x5882E3A: DMPlexCreateFluent (plexfluent.c:246)</div><div>==4990== by 0x588492F: DMPlexCreateFluentFromFile (plexfluent.c:30)</div><div>==4990== by 0x577E2B7: DMPlexCreateFromFile (plexcreate.c:3254)</div><div>==4990== by 0x10BEDF: CreateMesh (ex1.c:170)</div><div>==4990== by 0x10A20B: main (ex1.c:430)</div><div>==4990== Uninitialised value was created by a stack allocation</div><div>==4990== at 0x5881313: DMPlexCreateFluent_ReadSection (plexfluent.c:96)</div><div>==4990==</div><div>==4990== Use of uninitialised value of size 8</div><div>==4990== at 0x766276F: _IO_vfscanf (vfscanf.c:633)</div><div>==4990== by 0x767879C: vsscanf (iovsscanf.c:41)</div><div>==4990== by 0x76721A3: sscanf (sscanf.c:32)</div><div>==4990== by 0x588147D: DMPlexCreateFluent_ReadSection (plexfluent.c:105)</div><div>==4990== by 0x5882E3A: DMPlexCreateFluent (plexfluent.c:246)</div><div>==4990== by 0x588492F: DMPlexCreateFluentFromFile (plexfluent.c:30)</div><div>==4990== by 0x577E2B7: DMPlexCreateFromFile (plexcreate.c:3254)</div><div>==4990== by 0x10BEDF: CreateMesh (ex1.c:170)</div><div>==4990== by 0x10A20B: main (ex1.c:430)</div><div>==4990== Uninitialised value was created by a stack allocation</div><div>==4990== at 0x5881313: DMPlexCreateFluent_ReadSection (plexfluent.c:96)</div><div>==4990==</div><div>==4990== Conditional jump or move depends on uninitialised value(s)</div><div>==4990== at 0x766277B: _IO_vfscanf (vfscanf.c:630)</div><div>==4990== by 0x767879C: vsscanf (iovsscanf.c:41)</div><div>==4990== by 0x76721A3: sscanf (sscanf.c:32)</div><div>==4990== by 0x588147D: DMPlexCreateFluent_ReadSection (plexfluent.c:105)</div><div>==4990== by 0x5882E3A: DMPlexCreateFluent (plexfluent.c:246)</div><div>==4990== by 0x588492F: DMPlexCreateFluentFromFile (plexfluent.c:30)</div><div>==4990== by 0x577E2B7: DMPlexCreateFromFile (plexcreate.c:3254)</div><div>==4990== by 0x10BEDF: CreateMesh (ex1.c:170)</div><div>==4990== by 0x10A20B: main (ex1.c:430)</div><div>==4990== Uninitialised value was created by a stack allocation</div><div>==4990== at 0x5881313: DMPlexCreateFluent_ReadSection (plexfluent.c:96)</div><div>==4990==</div><blockquote type="cite"><div>Am 07.12.2019 um 21:45 schrieb Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>>:</div><br><div><div dir="ltr">I am trying to clean up valgrind errors. However this one<div><br></div><div> dm_impls_plex_tests-ex1_fluent_2<br><div><br></div><div>is valgrind clean on my machine. Does anyone get it to output something?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>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</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div></div>
</div></blockquote></div><br></div></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>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</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>