[petsc-users] valgrind complains about string functions

Jed Brown jedbrown at mcs.anl.gov
Mon Dec 3 09:51:26 CST 2012


Specifically, Intel's vectorized string routines are reading partway into
uninitialized memory, branching on the result, but doing so in a way that
makes the result independent of what was there (assuming null-terminated
string). You can make a Valgrind suppression for it.


On Mon, Dec 3, 2012 at 5:47 AM, Tim Gallagher <tim.gallagher at gatech.edu>wrote:

> This is a known bug in Valgrind and aside from being annoying and making
> it darn near impossible to find real problems, there's nothing that can be
> done about it.
>
> Tim
>
> ----- Original Message -----
> From: "Alexander Grayver" <agrayver at gfz-potsdam.de>
> To: "PETSc users list" <petsc-users at mcs.anl.gov>
> Sent: Monday, December 3, 2012 7:37:30 AM
> Subject: [petsc-users] valgrind complains about string functions
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20121203/8c710d98/attachment.html>


More information about the petsc-users mailing list