Skip to content

CfgAllPathValidator AreAllSuccessorsValid Stack Overflow on Windows and error MSB6006 in Linux Codespaces #8977

@giuliohome

Description

@giuliohome

Description

Stack Overflow on Windows
Tested on Windows 10 Enterprise and also on Windows 11 Enterprise 4vcpu 16BG ram

C:\Program Files\dotnet\sdk\8.0.200\Roslyn\Microsoft.CSharp.Core.targets(84,5): error : at SonarAnalyzer.CFG.Roslyn.
CfgAllPathValidator.b__7_0(SonarAnalyzer.CFG.Roslyn.BasicBlock)

Repro steps

Some code like https://github.com/dotnet/Open-XML-SDK/blob/main/test/DocumentFormat.OpenXml.Tests/ConformanceTest/WorkbookPr/GeneratedDocument.cs,
then

dotnet-sonarscanner begin ...
dotnet build 

Known workarounds

Deactivating from Warning to None the rules related to CfgAllPathValidator, found searching https://github.com/search?q=repo%3ASonarSource%2Fsonar-dotnet+CfgAllPathValidator&type=pullrequests

So S3604 and S2190 set to Action None in .sonar\conf\Sonar-cs.ruleset after dotnet-sonarscanner begin

The stack overflow is does not occur on Linux (e.g. Fedora 38). Of course this is related only to the client side, not to the openjava-17 server side.

Related information

  • C#/VB.NET Plugins version latest
  • Visual Studio version latest
  • MSBuild / dotnet version latest
  • SonarScanner for .NET version (if used) latest
  • Operating System Win 11 Enterprise
dotnet --version
8.0.203

dotnet tool list -g
Package Id               Version      Commands
---------------------------------------------------------
dotnet-sonarscanner      6.2.0        dotnet-sonarscanner

java -version
java version "17.0.10" 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 17.0.10+11-LTS-240)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.10+11-LTS-240, mixed mode, sharing)

systeminfo | findstr /B /C:"OS Name" /B /C:"OS Version"
OS Name:                   Microsoft Windows 11 Enterprise
OS Version:                10.0.22631 N/A Build 22631

P.S. possibly related?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugExceptions and blocking issues during analysis.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions