- edited description
Segmentation fault 11 after call the init function from petsc4py v3.9.1
I am using python 2.7. I installed the petsc v3.9.1 and petsc4py v3.9.1 on my Mac OS High Sierra 10.13.5. After the installation, I try to run a simple test, which just call the inin function. My code is as follows:
import petsc4py as pet pet.init()
The result is that python reports the Segmentation fault: 11.
I have no idea what happens.
I have numpy v1.14.5, mpi4py v3.0.0 installed.
There might be one clue: during my installation of petsc4py, it prints out something as follows:
In file included from src/PETSc.c:4:
src/petsc4py.PETSc.c: In function 'initPETSc':
src/petsc4py.PETSc.c:270152:22: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
__Pyx_PyMODINIT_FUNC initPETSc(void)
^~~~~
can anyone give me any solutions or ideas?
I have struggled for it for 10 days.
Comments (7)
-
reporter -
I think that warning you get is not relevant. Are you using system Python (/usr/bin/python), or Homebrew Python, or Anaconda Python? Could you try with PETSc 3.9.3 and use petsc4py from the maint branch or the git repo?
-
reporter I use Anaconda Python
-
Are you aware that the conda-forge channel has petsc and petsc4py packages ready to be used? However, they do not support complex numbers yet.
-
@fangzl Any news? Can I close this issue?
-
reporter @Lisandro Dalcin yes, you can close this issue.
-
- changed status to resolved
- Log in to comment