su2code/SU2

Segmentation fault

albenstein opened this issue · 6 comments

Discussed in #2101

Originally posted by albenstein July 26, 2023
If this is a general question or difficulty building/using the code, please open a "Discussion" instead.

Describe the bug
Give a clear and concise description of what the bug is and what you expect the behavior to be instead. Please provide enough instructions and data for a developer to reproduce the problem (config, mesh, commands, etc.). Please provide the smallest working example that reproduces the problem.

Bug report checklist
Please make sure that you have followed the checklist below, many common problems can be solved by:

Desktop (please complete the following information):

  • OS: [e.g., Linux (Redhat 7.9)]
  • C++ compiler and version: [e.g., g++ (GCC) 8.5.0]
  • MPI implementation and version: [e.g., OpenMPI 4.0.3]
  • SU2 Version: [e.g., v7.5.1]

When I use SU2 with QuickStart config file with OpenMPI, it gives error like in attached file.
Command is:
mpirun -np 8 --allow-run-as-root SU2_CFD inv_NACA0012.cfg

segmentation_fault.txt

I've also asked on OpenMPI mail-list and they said "Can you or they provide a small, simple MPI application that replicates the issue? That would be something we could dig into and investigate."

So the solver runs ok but then crashes when it get to writing the output files?
Can you try
VOLUME_OUTPUT= RESTART_ASCII
Just to isolate the problem

@pcarruscag It crashes when it get to writing the output files. Where can I try VOLUME_OUTPUT, in config file?

Yes in the config, it's OUTPUT_FILES= RESTART_ASCII sorry

I've just run with your command, output is:
SU2_restart_ascii.txt

Ok so the other parts of MPI are working fine but file operations are having some issue.
You can remove the OUTPUT_FILES line from the config.
When you run SU2, are you running in a clean directory? Does it segfault in a clean directory? Or only once the files already exist?
I also see you are running on the head node. Have you tried running SU2 on a compute node of the cluster?