- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.2k
Closed
Labels
arch-arm64area-System.Threadingos-linuxLinux OS (any supported distro)Linux OS (any supported distro)
Description
Reported by @carlossanlop offline. Carlos has hit this issue on Debian 11 arm64 with WSL2.
Repro:
git clone https://github.com/dotnet/performance.git
python3 ./performance/scripts/benchmarks_ci.py --architecture arm64 -f net7.0 --filter '*Perf_FileStream.FlushAsync*'using (FileStream fileStream = new FileStream("repro.txt", FileMode.Create, FileAccess.Write, FileShare.Read, 4096, FileOptions.None))
{
    for (int i = 0; i < 1024; i++)
    {
        fileStream.WriteByte(default);
        await fileStream.FlushAsync();
    }
}
In theory it could be an IO issue, but we have not touched FileStream for a few months and I suspect that it's a runtime bug similar to #64980.
@janvorli @jkotas what would be the best way to determine the reason of the hang on Linux?
Metadata
Metadata
Assignees
Labels
arch-arm64area-System.Threadingos-linuxLinux OS (any supported distro)Linux OS (any supported distro)