precice / fenics-adapter

preCICE-adapter for the open source computing platform FEniCS
GNU Lesser General Public License v3.0
29 stars 15 forks source link

Error at any run: "Illegal instruction (core dumped)" on Ubuntu 21.10 #148

Open MakisH opened 2 years ago

MakisH commented 2 years ago

When trying to run any FEniCS-preCICE tutorial, I immediately get a segmentation fault (no other output):

~/tutorials/partitioned-heat-conduction/fenics [develop]$ ./run.sh -d
Segmentation fault (core dumped)

I managed to narrow this down to a simple import and exit.

On Ubuntu 21.10 (error at the end):

~$ python3
Python 3.9.7 (default, Sep 10 2021, 14:59:43) 
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fenicsprecice
>>> fenicsprecice.__version__
'v1.2.0'
>>> exit()
Illegal instruction (core dumped)

On Ubuntu 20.04 (fine):

~$ python3
Python 3.8.10 (default, Nov 26 2021, 20:14:08) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fenicsprecice
>>> fenicsprecice.__version__
'v1.2.0'
>>> exit()

Doing the same for FEniCS (import fenics and then exit()) seems to be ok. I have not tried to run any stand-alone FEniCS program.

I installed FEniCS and the FEniCS adapter, following the installation instructions on our website.

I don't know if this is related to the Ubuntu version, the Python version, or just my system. But it woud be good if anyone could reproduce it.