[petsc-users] ex19: Segmentation Violation when run with MUMPS on MacOS (arm64)

zeyu xia xiazeyu01 at gmail.com
Fri Mar 29 10:28:39 CDT 2024


Dear PETSc team:

        Recently I installed firedrake on MacOS (arm64) with the latest
Xcode, and there seems some error with mumps. I ran two times of the
command `make check`. The first time it just output wrong results, and the
second time it raised an error with Segmentation Violation. Please see the
files “make check.txt” and “configure.log” in the attachment.

        I will certainly be happy and grateful if you can take some time to
deal with this problem. Thanks for your patience.

Best wishes,
Zeyu Xia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240329/eaf488b4/attachment-0001.html>
-------------- next part --------------
xiazeyu at 192 petsc % make check
Running PETSc check examples to verify correct installation
Using PETSC_DIR=/Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc and PETSC_ARCH=default
C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process
C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes
C/C++ example src/snes/tutorials/ex19 run successfully with HYPRE
3c3
<     0 KSP Residual norm 0.235858
---
>     0 KSP Residual norm 0.0348072
5,6c5,6
<   1 SNES Function norm 6.81968e-05
<     0 KSP Residual norm 2.30906e-05
---
>   1 SNES Function norm 0.211774
>     0 KSP Residual norm 1.45097e-06
8,9c8,33
<   2 SNES Function norm < 1.e-11
< Number of SNES iterations = 2
---
>   2 SNES Function norm 0.211774
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
> [0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
> [0]PETSC ERROR: or see https://petsc.org/release/faq/#valgrind and https://petsc.org/release/faq/
> [0]PETSC ERROR: ---------------------  Stack Frames ------------------------------------
> [0]PETSC ERROR: The line numbers in the error traceback are not always exact.
> [0]PETSC ERROR: #1 dmumps_c()
> [0]PETSC ERROR: #2 MatFactorNumeric_MUMPS() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/mat/impls/aij/mpi/mumps/mumps.c:2012
> [0]PETSC ERROR: #3 MatLUFactorNumeric() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/mat/interface/matrix.c:3253
> [0]PETSC ERROR: #4 PCSetUp_LU() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/ksp/pc/impls/factor/lu/lu.c:121
> [0]PETSC ERROR: #5 PCSetUp() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/ksp/pc/interface/precon.c:1079
> [0]PETSC ERROR: #6 KSPSetUp() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/ksp/ksp/interface/itfunc.c:415
> [0]PETSC ERROR: #7 KSPSolve_Private() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/ksp/ksp/interface/itfunc.c:831
> [0]PETSC ERROR: #8 KSPSolve() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/ksp/ksp/interface/itfunc.c:1078
> [0]PETSC ERROR: #9 PCApply_FieldSplit_Schur() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/ksp/pc/impls/fieldsplit/fieldsplit.c:1187
> [0]PETSC ERROR: #10 PCApply() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/ksp/pc/interface/precon.c:497
> [0]PETSC ERROR: #11 KSP_PCApply() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/include/petsc/private/kspimpl.h:409
> [0]PETSC ERROR: #12 KSPInitialResidual() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/ksp/ksp/interface/itres.c:64
> [0]PETSC ERROR: #13 KSPSolve_GMRES() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/ksp/ksp/impls/gmres/gmres.c:226
> [0]PETSC ERROR: #14 KSPSolve_Private() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/ksp/ksp/interface/itfunc.c:905
> [0]PETSC ERROR: #15 KSPSolve() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/ksp/ksp/interface/itfunc.c:1078
> [0]PETSC ERROR: #16 SNESSolve_NEWTONLS() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/snes/impls/ls/ls.c:220
> [0]PETSC ERROR: #17 SNESSolve() at /Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/snes/interface/snes.c:4738
> [0]PETSC ERROR: #18 main() at ex19.c:152
> application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0
/Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/snes/tutorials
Possible problem with ex19 running with MUMPS, diffs above
=========================================
C/C++ example src/snes/tutorials/ex19 run successfully with SuiteSparse
C/C++ example src/snes/tutorials/ex19 run successfully with SuperLU_DIST
C/C++ example src/vec/vec/tests/ex47 run successfully with HDF5
Running SLEPc check examples to verify correct installation
Using SLEPC_DIR=/Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/default/externalpackages/git.slepc, PETSC_DIR=/Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc, and PETSC_ARCH=default
C/C++ example src/eps/tests/test10 run successfully with 1 MPI process
C/C++ example src/eps/tests/test10 run successfully with 2 MPI processes
Completed SLEPc check examples
Completed PETSc check examples
Error while running make check
make[1]: *** [check] Error 1
make: *** [check] Error 2



xiazeyu at 192 petsc % make check
Running PETSc check examples to verify correct installation
Using PETSC_DIR=/Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc and PETSC_ARCH=default
C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process
C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes
C/C++ example src/snes/tutorials/ex19 run successfully with HYPRE
3c3
<     0 KSP Residual norm 0.235858
---
>     0 KSP Residual norm 0.0348072
5,9c5,16
<   1 SNES Function norm 6.81968e-05
<     0 KSP Residual norm 2.30906e-05
<     1 KSP Residual norm < 1.e-11
<   2 SNES Function norm < 1.e-11
< Number of SNES iterations = 2
---
>   1 SNES Function norm 0.211774
> 
> ===================================================================================
> =   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
> =   PID 46194 RUNNING AT 192.168.1.6
> =   EXIT CODE: 6
> =   CLEANING UP REMAINING PROCESSES
> =   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
> ===================================================================================
> YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Terminated: 15 (signal 15)
> This typically refers to a problem with your application.
> Please see the FAQ page for debugging suggestions
/Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/src/snes/tutorials
Possible problem with ex19 running with MUMPS, diffs above
=========================================
C/C++ example src/snes/tutorials/ex19 run successfully with SuiteSparse
C/C++ example src/snes/tutorials/ex19 run successfully with SuperLU_DIST
C/C++ example src/vec/vec/tests/ex47 run successfully with HDF5
Running SLEPc check examples to verify correct installation
Using SLEPC_DIR=/Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc/default/externalpackages/git.slepc, PETSC_DIR=/Users/xiazeyu/opt/firedrake/firedrake-real-int32-debug/src/petsc, and PETSC_ARCH=default
C/C++ example src/eps/tests/test10 run successfully with 1 MPI process
C/C++ example src/eps/tests/test10 run successfully with 2 MPI processes
Completed SLEPc check examples
Completed PETSc check examples
Error while running make check
make[1]: *** [check] Error 1
make: *** [check] Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.tar.gz
Type: application/x-gzip
Size: 2626877 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240329/eaf488b4/attachment-0001.gz>


More information about the petsc-users mailing list