-
Notifications
You must be signed in to change notification settings - Fork 241
CfgAllPathValidator AreAllSuccessorsValid Stack Overflow on Windows and error MSB6006 in Linux Codespaces #8977
Description
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 22631P.S. possibly related?
-
Known issue of the working set in Open-XML-SDK on .NET Core? => see https://github.com/dotnet/Open-XML-SDK/tree/maintab=readme-ov-file#known-issues and System.IO.Compression: ZipArchiveEntry always stores uncompressed data in memory dotnet/runtime#1544
-
Stack overflow in Rosyln CodeAnalysis? => see Stack overflow in Rosyln CodeAnalysis when ambiguous name is used dotnet/roslyn#71039