[petsc-users] valgrind errors.

(Rebecca) Xuefei YUAN xy2102 at columbia.edu
Mon Jan 18 14:12:18 CST 2010


Hi,

I got some errors from valgrind showing some errors from PETSc defined  
functions, but at the end of the valgrind report, it seems fine except  
the first two that valgrind always has for PETSc.

Is this really fine or not?

--------------------------------------------------------------
THERE ARE LOTS OF SIMILAR ONES BEFORE....
==9537== Conditional jump or move depends on uninitialised value(s)
==9537==    at 0x858CE93: VecMaxPointwiseDivide_Seq (dvec2.c:903)
==9537==    by 0x856DB50: VecMaxPointwiseDivide (rvector.c:47)
==9537==    by 0x80BFB09: SNESLineSearchCubic (ls.c:550)
==9537==    by 0x80BD9F4: SNESSolve_LS (ls.c:219)
==9537==    by 0x809E77F: SNESSolve (snes.c:2221)
==9537==    by 0x80B7280: DMMGSolveSNES (damgsnes.c:510)
==9537==    by 0x80B0ABF: DMMGSolve (damg.c:372)
==9537==    by 0x8050EE0: Solve (twgcqt2unffnidgp.c:579)
==9537==    by 0x804DC7F: main (twgcqt2unffnidgp.c:287)
==9537==
==9537== Conditional jump or move depends on uninitialised value(s)
==9537==    at 0x80A2B4E: SNESKSPEW_PreSolve (snes.c:2854)
==9537==    by 0x80A330F: SNES_KSPSolve (snes.c:2898)
==9537==    by 0x80BD598: SNESSolve_LS (ls.c:191)
==9537==    by 0x809E77F: SNESSolve (snes.c:2221)
==9537==    by 0x80B7280: DMMGSolveSNES (damgsnes.c:510)
==9537==    by 0x80B0ABF: DMMGSolve (damg.c:372)
==9537==    by 0x8050EE0: Solve (twgcqt2unffnidgp.c:579)
==9537==    by 0x804DC7F: main (twgcqt2unffnidgp.c:287)
==9537==
==9537== Conditional jump or move depends on uninitialised value(s)
==9537==    at 0x816A0A5: KSPSetTolerances (itfunc.c:816)
==9537==    by 0x80A2B96: SNESKSPEW_PreSolve (snes.c:2855)
==9537==    by 0x80A330F: SNES_KSPSolve (snes.c:2898)
==9537==    by 0x80BD598: SNESSolve_LS (ls.c:191)
==9537==    by 0x809E77F: SNESSolve (snes.c:2221)
==9537==    by 0x80B7280: DMMGSolveSNES (damgsnes.c:510)
==9537==    by 0x80B0ABF: DMMGSolve (damg.c:372)
==9537==    by 0x8050EE0: Solve (twgcqt2unffnidgp.c:579)
==9537==    by 0x804DC7F: main (twgcqt2unffnidgp.c:287)
==9537==
==9537== Conditional jump or move depends on uninitialised value(s)
==9537==    at 0x816A0C9: KSPSetTolerances (itfunc.c:817)
==9537==    by 0x80A2B96: SNESKSPEW_PreSolve (snes.c:2855)
==9537==    by 0x80A330F: SNES_KSPSolve (snes.c:2898)
==9537==    by 0x80BD598: SNESSolve_LS (ls.c:191)
==9537==    by 0x809E77F: SNESSolve (snes.c:2221)
==9537==    by 0x80B7280: DMMGSolveSNES (damgsnes.c:510)
==9537==    by 0x80B0ABF: DMMGSolve (damg.c:372)
==9537==    by 0x8050EE0: Solve (twgcqt2unffnidgp.c:579)
==9537==    by 0x804DC7F: main (twgcqt2unffnidgp.c:287)
==9537==
==9537== Conditional jump or move depends on uninitialised value(s)
==9537==    at 0x817C76E: KSPDefaultConverged (iterativ.c:669)
==9537==    by 0x81B5432: FGMREScycle (fgmres.c:294)
==9537==    by 0x81B5AB4: KSPSolve_FGMRES (fgmres.c:370)
==9537==    by 0x816554A: KSPSolve (itfunc.c:385)
==9537==    by 0x80A3374: SNES_KSPSolve (snes.c:2899)
==9537==    by 0x80BD598: SNESSolve_LS (ls.c:191)
==9537==    by 0x809E77F: SNESSolve (snes.c:2221)
==9537==    by 0x80B7280: DMMGSolveSNES (damgsnes.c:510)
==9537==    by 0x80B0ABF: DMMGSolve (damg.c:372)
==9537==    by 0x8050EE0: Solve (twgcqt2unffnidgp.c:579)
==9537==    by 0x804DC7F: main (twgcqt2unffnidgp.c:287)
==9537==
==9537== ERROR SUMMARY: 220920 errors from 280 contexts (suppressed:  
41 from 1)
==9537== malloc/free: in use at exit: 156 bytes in 11 blocks.
==9537== malloc/free: 5,714 allocs, 5,703 frees, 21,737,471 bytes allocated.
==9537== For counts of detected errors, rerun with: -v
==9537== searching for pointers to 11 not-freed blocks.
==9537== checked 1,068,204 bytes.
==9537==
==9537== LEAK SUMMARY:
==9537==    definitely lost: 156 bytes in 11 blocks.
==9537==      possibly lost: 0 bytes in 0 blocks.
==9537==    still reachable: 0 bytes in 0 blocks.
==9537==         suppressed: 0 bytes in 0 blocks.
==9537== Rerun with --leak-check=full to see details of leaked memory.


Thanks,

-- 
(Rebecca) Xuefei YUAN
Department of Applied Physics and Applied Mathematics
Columbia University
Tel:917-399-8032
www.columbia.edu/~xy2102



More information about the petsc-users mailing list