<div class="gmail_quote">On Mon, Jul 9, 2012 at 12:02 AM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Looks like there are a couple of these uninitialized or improperly initialized cases in valgrind ./exX -help. I'll look at them and patch petsc-3.3. Thanks.</blockquote><div><br></div><div><a href="http://petsc.cs.iit.edu/petsc/releases/petsc-3.3/rev/2189e73a0652">http://petsc.cs.iit.edu/petsc/releases/petsc-3.3/rev/2189e73a0652</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Sun, Jul 8, 2012 at 4:23 PM, Chetan Jhurani <span dir="ltr"><<a href="mailto:chetan.jhurani@gmail.com" target="_blank">chetan.jhurani@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
PetscVFPrintfDefault crashes on using -help on command line<br>
due to bad function arguments.<br>
<br>
Tried this using src/snes/examples/tutorials/ex19, and<br>
petsc-dev nightly and petsc-3.3-p1. The stack is given below<br>
and the code is not valgrind clean. The debugger told<br>
me that in src/ksp/ksp/interface/itcl.c and on this line<br>
ksp->pc_side is -1.<br>
<br>
ierr = PetscOptionsEList("-ksp_pc_side","KSP preconditioner side",<br>
"KSPSetPCSide",PCSides,3,PCSides[ksp->pc_side],&indx,&flg);CHKERRQ(ierr);<br>
<br>
Stack:<br>
<br>
..... [help skipped]<br>
<br>
-ksp_monitor_draw_true_residual: <FALSE> Monitor graphically true residual norm (KSPMonitorSet)<br>
-ksp_monitor_range_draw: <FALSE> Monitor graphically range of preconditioned residual norm (KSPMonitorSet)<br>
-ksp_monitor_ams: <FALSE> Publish KSP progress using AMS (KSPMonitorSet)<br>
[0]PETSC ERROR: ------------------------------------------------------------------------<br>
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range<br>
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger<br>
[0]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind[0]PETSC" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind[0]PETSC</a> ERROR: or try <a href="http://valgrind.org" target="_blank">http://valgrind.org</a> on<br>
GNU/linux and Apple Mac OS X to find memory corruption errors<br>
[0]PETSC ERROR: likely location of problem given in stack below<br>
[0]PETSC ERROR: --------------------- Stack Frames ------------------------------------<br>
[0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,<br>
[0]PETSC ERROR: INSTEAD the line number of the start of the function<br>
[0]PETSC ERROR: is given.<br>
[0]PETSC ERROR: [0] PetscVFPrintfDefault line 197 src/sys/fileio/mprint.c<br>
[0]PETSC ERROR: [0] PetscHelpPrintfDefault line 607 src/sys/fileio/mprint.c<br>
[0]PETSC ERROR: [0] PetscOptionsEList line 967 src/sys/objects/aoptions.c<br>
[0]PETSC ERROR: [0] KSPSetFromOptions line 382 src/ksp/ksp/interface/itcl.c<br>
[0]PETSC ERROR: [0] SNESSetFromOptions line 540 src/snes/interface/snes.c<br>
[0]PETSC ERROR: --------------------- Error Message ------------------------------------<br>
[0]PETSC ERROR: Signal received!<br>
[0]PETSC ERROR: ------------------------------------------------------------------------<br>
[0]PETSC ERROR: Petsc Development HG revision: 13f423daabbd83291cd7dca6481f7cffb49b7019 HG Date: Sat Jul 07 21:50:45 2012 -0500<br>
[0]PETSC ERROR: See docs/changes/index.html for recent updates.<br>
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.<br>
[0]PETSC ERROR: See docs/index.html for manual pages.<br>
[0]PETSC ERROR: ------------------------------------------------------------------------<br>
[0]PETSC ERROR: ./ex19 on a test_cras named <a href="http://mg1.txcorp.com" target="_blank">mg1.txcorp.com</a> by jhurani Sun Jul 8 18:15:50 2012<br>
[0]PETSC ERROR: Libraries linked from /scr_0/jhurani/builds/crash/petsc-dev/test_crash/lib<br>
[0]PETSC ERROR: Configure run at Sun Jul 8 18:12:46 2012<br>
[0]PETSC ERROR: Configure options --with-clanguage=C++ --with-c-support=1 --with-fortran=0 --with-debugging=yes<br>
[0]PETSC ERROR: ------------------------------------------------------------------------<br>
[0]PETSC ERROR: User provided function() line 0 in unknown directory unknown file<br>
--------------------------------------------------------------------------<br>
<br>
Chetan<br>
<br>
<br>
</blockquote></div><br>
</div></div></blockquote></div><br>