[petsc-dev] valgrind now a point of failure?

Barry Smith bsmith at petsc.dev
Mon Feb 22 21:37:44 CST 2021


  I knew they hate Macs but now Linux? Any trustworthy machines to run valgrind?


$ petscmpiexec -valgrind -n 1 ./ex238 -mat_block_size 12
==14144== 
==14144== Process terminating with default action of signal 4 (SIGILL)
==14144==  Illegal opcode at address 0x4F808A9
==14144==    at 0x4F808A9: PetscSetDisplay (in /scratch/bsmith/petsc/arch-add-baij-12/lib/libpetsc.so.3.014.4)
==14144==    by 0x4F086BD: PetscOptionsCheckInitial_Private (in /scratch/bsmith/petsc/arch-add-baij-12/lib/libpetsc.so.3.014.4)
==14144==    by 0x4F0D5BC: PetscInitialize (in /scratch/bsmith/petsc/arch-add-baij-12/lib/libpetsc.so.3.014.4)
==14144==    by 0x108D0E: main (in /scratch/bsmith/petsc/src/mat/tests/ex238)
Illegal instruction (core dumped)
/scratch/bsmith/petsc/src/mat/tests (barry/2021-02-12/add-baij-12=) arch-add-baij-12
$ echo $PETSC_OPTIONS

/scratch/bsmith/petsc/src/mat/tests (barry/2021-02-12/add-baij-12=) arch-add-baij-12
$ hostname 
petsc-02
/scratch/bsmith/petsc/src/mat/tests (barry/2021-02-12/add-baij-12=) arch-add-baij-12
$ uname -a
Linux petsc-02 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
/scratch/bsmith/petsc/src/mat/tests (barry/2021-02-12/add-baij-12=) arch-add-baij-12
$ which valgrind
/usr/bin/valgrind

$ make ex237
gcc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -march=native -O3  -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -march=native -O3    -I/scratch/bsmith/petsc/include -I/scratch/bsmith/petsc/arch-add-baij-12/include     ex237.c  -Wl,-rpath,/scratch/bsmith/petsc/arch-add-baij-12/lib -L/scratch/bsmith/petsc/arch-add-baij-12/lib -lpetsc -llapack -lblas -lpthread -lm -lX11 -lquadmath -ldl -o ex237
/scratch/bsmith/petsc/src/mat/tests (barry/2021-02-12/add-baij-12=) arch-add-baij-12
$ petscmpiexec -valgrind -n 1 ./ex237
==14841== 
==14841== Process terminating with default action of signal 4 (SIGILL)
==14841==  Illegal opcode at address 0x4F808A9
==14841==    at 0x4F808A9: PetscSetDisplay (in /scratch/bsmith/petsc/arch-add-baij-12/lib/libpetsc.so.3.014.4)
==14841==    by 0x4F086BD: PetscOptionsCheckInitial_Private (in /scratch/bsmith/petsc/arch-add-baij-12/lib/libpetsc.so.3.014.4)
==14841==    by 0x4F0D5BC: PetscInitialize (in /scratch/bsmith/petsc/arch-add-baij-12/lib/libpetsc.so.3.014.4)
==14841==    by 0x109DE0: main (in /scratch/bsmith/petsc/src/mat/tests/ex237)
Illegal instruction (core dumped)
/scratch/bsmith/petsc/src/mat/tests (barry/2021-02-12/add-baij-12=) arch-add-baij-12

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20210222/10296591/attachment.html>


More information about the petsc-dev mailing list