[petsc-dev] Error in PetscMallocValidate

Jed Brown jedbrown at mcs.anl.gov
Tue Sep 24 09:58:29 CDT 2013


John Mousel <john.mousel at gmail.com> writes:

> I cloned a fresh repo and built from scratch. I'm seeing the same error I
> previously reported with both intel and gnu compilers. 

Can you reproduce with a PETSc example or create a test case so that we
can reproduce?

> Also, I get warnings in MatSOR_SeqAIJ_Inode during the build.
>
> src/mat/impls/aij/seq/inode.c: In function ‘MatSOR_SeqAIJ_Inode’:
> src/mat/impls/aij/seq/inode.c:2758: warning: ‘sum2’ may be used
> uninitialized in this function
> src/mat/impls/aij/seq/inode.c:2758: warning: ‘sum3’ may be used
> uninitialized in this function
> src/mat/impls/aij/seq/inode.c:2758: warning: ‘sum4’ may be used
> uninitialized in this function
> src/mat/impls/aij/seq/inode.c:2758: warning: ‘sum5’ may be used
> uninitialized in this function
> src/mat/impls/aij/seq/inode.c:2761: warning: ‘v2’ may be used uninitialized
> in this function
> src/mat/impls/aij/seq/inode.c:2761: warning: ‘v3’ may be used uninitialized
> in this function
> src/mat/impls/aij/seq/inode.c:2761: warning: ‘v4’ may be used uninitialized
> in this function
> src/mat/impls/aij/seq/inode.c:2761: warning: ‘v5’ may be used uninitialized
> in this function
> src/mat/impls/aij/seq/inode.c:2758: warning: ‘sum1’ may be used
> uninitialized in this function
> src/mat/impls/aij/seq/inode.c:2761: warning: ‘v1’ may be used uninitialized
> in this function

I don't think these warnings are correct, but I've seen them too when
building in optimized mode with gcc-4.8, so they should be eliminated.
As we occasionally do elsewhere, we should work around such warnings.
Mark?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130924/e2bfbdb1/attachment.sig>


More information about the petsc-dev mailing list