[petsc-users] valgrind complains about string functions

Alexander Grayver agrayver at gfz-potsdam.de
Mon Dec 3 06:37:30 CST 2012


Hello,

I'm using PETSc-3.3-p4 compiled with ICC 12.0 + IntelMPI 4.0.3 and 
getting a bunch of the errors related to the string functions:

==22020== Conditional jump or move depends on uninitialised value(s)
==22020==    at 0x4D3109: __intel_sse2_strcpy (in /home/main)
==22020==    by 0xE87D51D: PetscStrcpy (in 
/home/lib/petsc-3.3-p4/intelmpi-intel12-double-release-c-shared/lib/libpetsc.so)
==22020==    by 0xE87B6A4: PetscStrallocpy (in 
/home/lib/petsc-3.3-p4/intelmpi-intel12-double-release-c-shared/lib/libpetsc.so)
==22020==    by 0xE796769: PetscFListGetPathAndFunction (in 
/home/lib/petsc-3.3-p4/intelmpi-intel12-double-release-c-shared/lib/libpetsc.so)
==22020==    by 0xE79652A: PetscFListAdd (in 
/home/lib/petsc-3.3-p4/intelmpi-intel12-double-release-c-shared/lib/libpetsc.so)
==22020==    by 0xE64ACB8: MatMFFDRegister (in 
/home/lib/petsc-3.3-p4/intelmpi-intel12-double-release-c-shared/lib/libpetsc.so)
==22020==    by 0xE64FA7D: MatMFFDRegisterAll (in 
/home/lib/petsc-3.3-p4/intelmpi-intel12-double-release-c-shared/lib/libpetsc.so)
==22020==    by 0xE64F65B: MatMFFDInitializePackage (in 
/home/lib/petsc-3.3-p4/intelmpi-intel12-double-release-c-shared/lib/libpetsc.so)
==22020==    by 0xE48D8C2: MatInitializePackage (in 
/home/lib/petsc-3.3-p4/intelmpi-intel12-double-release-c-shared/lib/libpetsc.so)
==22020==    by 0xE5157DB: MatCreate (in 
/home/lib/petsc-3.3-p4/intelmpi-intel12-double-release-c-shared/lib/libpetsc.so)
==22020==    by 0xE29A74C: MatCreateSeqAIJ (in 
/home/lib/petsc-3.3-p4/intelmpi-intel12-double-release-c-shared/lib/libpetsc.so)

Same thing for PetscStrncat etc.

There was similar question two years ago in this mailing list and advice 
was to use a different compiler. It is not an option for me.
Thus, my question is can those errors potentially cause any serious 
troubles? I came across with time trying to debug a weird segmentation 
fault.

Thanks.

-- 
Regards,
Alexander



More information about the petsc-users mailing list