[petsc-users] valgrind error messages with PETSc V3.5.1
Randall Mackie
rlmackie862 at gmail.com
Sat Aug 2 14:20:44 CDT 2014
The attached small program, basically a call to PetscPrintf, gives the following valgrind errors:
[rmackie ~/tst_petsc_problem] ./cmd_test
==24812== Invalid read of size 1
==24812== at 0x4C2E500: __GI_strncpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24812== by 0x4EF5B4D: PetscStrncpy (str.c:335)
==24812== by 0x4F334E0: petscprintf_ (zmprintf.c:54)
==24812== by 0x400F28: MAIN__ (test.F90:11)
==24812== by 0x400F9A: main (test.F90:16)
==24812== Address 0x8cef9bb is 0 bytes after a block of size 11 alloc'd
==24812== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==24812== by 0x6828BB4: ??? (in /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0)
==24812== by 0x68FBC97: _gfortran_string_trim (in /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0)
==24812== by 0x400EFD: MAIN__ (test.F90:11)
==24812== by 0x400F9A: main (test.F90:16)
==24812==
The program was compiled with PETSc V3.5.1 and --download-mpich.
The same program compiled with V3.4.4 and --download-mpich does not give these errors.
It seems like an innocuous error, and I can certainly create a suppression file for it, but I thought I'd report it anyway.
I get the same error on 2 different systems and I've tried 3 different gfortran versions, all with the same result.
Program, configure commands, etc, attached.
Randy M.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile
Type: application/octet-stream
Size: 350 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140802/0357e75c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.F90
Type: application/octet-stream
Size: 274 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140802/0357e75c/attachment-0001.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: valgrind_out.txt
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140802/0357e75c/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmd_configure
Type: application/octet-stream
Size: 202 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140802/0357e75c/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmd_test
Type: application/octet-stream
Size: 176 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140802/0357e75c/attachment-0003.obj>
More information about the petsc-users
mailing list