Skip to content

Segmentation fault caused by std::regex in preCICE library when using with Ansys Fluent v251 #35

Open
@BenjaminRodenberg

Description

@BenjaminRodenberg

The following line triggers a segmentation fault when I try to run the lid-driven cavity example with flexible bottom (from ae4e136).

I'm trying to run the example on CoolMUC-4 Cluster and I built preCICE from source. To run the example I execute the following command from the directory containing the example:

$ ~/fluent-adapter/examples/Cavity2D> LD_PRELOAD=/dss/lrzsys/sys/spack/release/23.1.0/opt/x86_64/gcc/12.2.0-gcc-4diiov7/lib64/libstdc++.so.6 fluent 2ddp -g < steer-fluent.txt

I'm suspecting that the use of LD_PRELOAD is somehow messing with std::regex. However, I could not reproduce the issue with the solverdummies and LD_PRELOAD. So maybe there is a problem when calling the preCICE library from Fluent on this specific system?

Workaround bypass the check in precice/src/utils/String.cpp

bool isKebabStyle(std::string_view sv)
{
  // std::regex kebabCaseRegex("^[a-z0-9]+(-[a-z0-9]+)*$");
  // return sv.empty() || std::regex_match(sv.begin(), sv.end(), kebabCaseRegex);
  return true;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions