Build and run the following code on **Linux + .net core 2.1 or 2.2** SDK. ``` using System; class Program { static void Main(string[] args) { "abc".Replace("\0", "", StringComparison.InvariantCulture); } } ``` The code results an infinity loop (high cpu usage) and never returns. **Remark:** The code works fine on windows. The code works fine on .net core 3.1.
Build and run the following code on Linux + .net core 2.1 or 2.2 SDK.
The code results an infinity loop (high cpu usage) and never returns.
Remark:
The code works fine on windows.
The code works fine on .net core 3.1.