Skip to content

Segfaults in periodic boundary processing #2518

@bmunguia

Description

@bmunguia

Describe the bug
I frequently get a segfault when running a simple problem with periodic boundaries (inviscid vortex on square mesh). It only happens with some meshes (e.g. the attached TriAdapt1.su2, but not TriInit.su2). CPhysicalGeometry::MatchPeriodic() seems to give the correct number of matches, but then the segfault occurs in CGeometry::PreprocessPeriodicComms():

==99060== Invalid write of size 8
==99060== at 0xD26DC8: CGeometry::PreprocessPeriodicComms(CGeometry*, CConfig*) (CGeometry.cpp:973)
...

(and in 3 other locations). It only occurs when running in parallel.

I've attached the full valgrind outputs (serial and parallel), as well as the meshes and config I used.

Bug report checklist

Desktop (please complete the following information):

  • OS: Linux (Fedora 42 and Ubuntu 22.04)
  • C++ compiler and version: GCC 15.1.1 and 11.4.0
  • MPI implementation and version: MPICH 4.2.2 and 4.0
  • SU2 Version: 8.2.0 (develop)

config.zip
meshes.zip
valgrind_out.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions