Description
I've been getting some seg faults from the code when running with numpy 1.26.4. Behavior goes away when using numpy 1.22.4. If reproducible on your end, you could simply limit the numpy version in the setup.py.
Steps to reproduce issue
- pip install numpy==1.26.4
- cd /path/to/pysurf
- pip install .
- find yourself a nice cgns file
- run the python script:
from pysurf import tsurf_tools
from mpi4py import MPI
nodes, sectionDict = tsurf_tools.getCGNSsections("path/to/file.cgns")
Current behavior
Seg fault, seems to be occuring on line 33 of tsurf_tools.py: arraySizes = cgnsAPI.cgnsapi.readcgns(inputFile, comm.py2f())
I put a print statement at the beginning of cgnsAPI.F90::readCGNS (line 70) in the Fortran code, but the code seg faults before getting there.
MPT ERROR: Rank 0(g:0) received signal SIGSEGV(11)
Expected behavior
No seg fault.
Code versions
- Operating System: TOSS 4
- Python: Python 3.9.5 and 3.12
- MPI: HPE MPT 2.28 04/24/23 12:22:36-mraymond
- CGNS: 4.3.0
- PETSc: N/A
- Compiler: ifort (IFORT) 19.1.3.304 20200925
- This repository:
Description
I've been getting some seg faults from the code when running with numpy 1.26.4. Behavior goes away when using numpy 1.22.4. If reproducible on your end, you could simply limit the numpy version in the setup.py.
Steps to reproduce issue
from pysurf import tsurf_tools
from mpi4py import MPI
nodes, sectionDict = tsurf_tools.getCGNSsections("path/to/file.cgns")
Current behavior
Seg fault, seems to be occuring on line 33 of tsurf_tools.py:
arraySizes = cgnsAPI.cgnsapi.readcgns(inputFile, comm.py2f())I put a print statement at the beginning of cgnsAPI.F90::readCGNS (line 70) in the Fortran code, but the code seg faults before getting there.
MPT ERROR: Rank 0(g:0) received signal SIGSEGV(11)
Expected behavior
No seg fault.
Code versions