SonarScan in GitHub workflow is failing with reproducer file created

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    • SonarQube Enterprise 9.7.1
    • SonarScanner for linux
    • Cpp-build-wrapper for linux downloaded from SonarQube instance
    • Environment: Github workflow on ubuntu
  • what are you trying to achieve
    • Run scan for C++ code in a Github Workflow
  • what have you tried so far to achieve this
    • Following the instructions to setup Github Actions for C++ with build-wrapper

When running the Sonar scanner for C++ with the build-wrapper the scanner failed for a specific file and a “” was generated with the advice to contact SonarSource support.

Using the hint from this thread excluding the file with sonar.exclusions resolved the problem for now.

How can I provide the file privately? Execution Logs are also still available

Welcome to the community @bwiethof!
I will send you a private message that will allow you to send it privately.

I have investigated the issue and successfully reproduced the issue. The crash happens during the parsing of the code using C++20 concepts with clang (which we also use for that purpose).
I have created CPP-3972 ticket, which you can use to check more details and track its status.
In the meantime, please continue using sonar.exclusions to analyzer rest of your project.