make check errors with MUMPS for MacOS
Issue Description:
I encountered errors during Petsc testing on MacOS M2 with Xcode version 15.3.
Steps to Reproduce:
- Clone the Petsc repository:
git clone https://gitlab.com/petsc/petsc.git petsc_main
- Configure Petsc with the following command:
python3.11 ./configure PETSC_ARCH="test" \ --with-shared-libraries=1 \ --with-x=0 \ --with-c2html=0 \ --LDFLAGS=-Wl,-ld_classic \ --download-mpich \ --with-debugging=0 \ --download-mumps \ --download-scalapack \ --download-mpich-configure-arguments=--disable-opencl \ --with-fortran-bindings=0
- Build Petsc:
make PETSC_DIR=petsc_main PETSC_ARCH=test all
- Run Petsc tests:
make PETSC_DIR=petsc_main PETSC_ARCH=arch-darwin-c-opt check
Error Messages:
The following error messages were encountered:
Running PETSc check examples to verify correct installation
Using PETSC_DIR=/Users/ddolci/tes_fire_install/petsc_main and PETSC_ARCH=arch-darwin-c-opt
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
3c3
< 0 KSP Residual norm 0.235858
---
> 0 KSP Residual norm 0.0348072
5,9c5,13
< 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
> [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: configure using --with-debugging=yes, recompile, link, and run
> [0]PETSC ERROR: to get more information on the crash.
> [0]PETSC ERROR: Run with -malloc_debug to check if memory corruption is causing the crash.
> application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0
/Users/ddolci/tes_fire_install/petsc_main/src/snes/tutorials
Possible problem with ex19 running with MUMPS, diffs above
=========================================
Fortran example src/snes/tutorials/ex5f run successfully with 1 MPI process
Completed PETSc check examples
Error while running make check
make[1]: *** [check] Error 1
make: *** [check] Error 2
Please refer to the attached configure.log
file: configure.log