Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure System.IO.Tests.DirectoryInfo_GetFileSystemInfos_str.PatternTests_DosDotTrailingDot(pattern: \"foo.?\", sourceFiles: [\"foo\", \"foo.\", \"foo.t\", \"foo.tx\", \"foo.txt\", ...], expected: [\"foo\", \"foo.\", \"foo.t\"]) #54258

Closed
VincentBu opened this issue Jun 16, 2021 · 2 comments
Assignees
Labels
arch-arm64 area-System.IO os-linux Linux OS (any supported distro)
Milestone

Comments

@VincentBu
Copy link
Contributor

Run: runtime 20210615.86

Failed test:

net6.0-Linux-Release-arm64-Mono_release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-helix-arm64v8-20210106155927-56c6673

- System.IO.Tests.DirectoryInfo_GetFileSystemInfos_str.PatternTests_DosDotTrailingDot(pattern: \"foo.?\", sourceFiles: [\"foo\", \"foo.\", \"foo.t\", \"foo.tx\", \"foo.txt\", ...], expected: [\"foo\", \"foo.\", \"foo.t\"])

Error message:

System.UnauthorizedAccessException : Access to the path '/tmp/DirectoryInfo_GetFileSystemInfos_str_jqnpwbzw.etr/PrepareDirectory_539_777b29c6' is denied.
---- System.IO.IOException : Bad file descriptor


Stack trace
   at System.IO.Enumeration.FileSystemEnumerator`1[[System.IO.FileSystemInfo, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].FindNextEntry(Byte* entryBufferPtr, Int32 bufferLength) in /_/src/libraries/System.Private.CoreLib/src/System/IO/Enumeration/FileSystemEnumerator.Unix.cs:line 197
   at System.IO.Enumeration.FileSystemEnumerator`1[[System.IO.FileSystemInfo, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() in /_/src/libraries/System.Private.CoreLib/src/System/IO/Enumeration/FileSystemEnumerator.Unix.cs:line 110
   at System.Collections.Generic.List`1[[System.IO.FileSystemInfo, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..ctor(IEnumerable`1 collection) in /_/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/List.cs:line 85
   at System.IO.DirectoryInfo.GetFileSystemInfos(String searchPattern, EnumerationOptions enumerationOptions) in /_/src/libraries/System.Private.CoreLib/src/System/IO/DirectoryInfo.cs:line 124
   at System.IO.DirectoryInfo.GetFileSystemInfos(String searchPattern) in /_/src/libraries/System.Private.CoreLib/src/System/IO/DirectoryInfo.cs:line 118
   at System.IO.Tests.DirectoryInfo_GetFileSystemInfos_str.GetEntries(String path, String searchPattern) in /_/src/libraries/System.IO.FileSystem/tests/DirectoryInfo/GetFileSystemInfos.cs:line 26
   at System.IO.Tests.Directory_GetFileSystemEntries_str_str.PatternTests_DosDotTrailingDot(String pattern, String[] sourceFiles, String[] expected) in /_/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs:line 343
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/mono/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 378
----- Inner Stack Trace -----
@VincentBu VincentBu added arch-arm64 area-System.IO os-linux Linux OS (any supported distro) labels Jun 16, 2021
@ghost
Copy link

ghost commented Jun 16, 2021

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

Issue Details

Run: runtime 20210615.86

Failed test:

net6.0-Linux-Release-arm64-Mono_release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-helix-arm64v8-20210106155927-56c6673

- System.IO.Tests.DirectoryInfo_GetFileSystemInfos_str.PatternTests_DosDotTrailingDot(pattern: \"foo.?\", sourceFiles: [\"foo\", \"foo.\", \"foo.t\", \"foo.tx\", \"foo.txt\", ...], expected: [\"foo\", \"foo.\", \"foo.t\"])

Error message:

System.UnauthorizedAccessException : Access to the path '/tmp/DirectoryInfo_GetFileSystemInfos_str_jqnpwbzw.etr/PrepareDirectory_539_777b29c6' is denied.
---- System.IO.IOException : Bad file descriptor


Stack trace
   at System.IO.Enumeration.FileSystemEnumerator`1[[System.IO.FileSystemInfo, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].FindNextEntry(Byte* entryBufferPtr, Int32 bufferLength) in /_/src/libraries/System.Private.CoreLib/src/System/IO/Enumeration/FileSystemEnumerator.Unix.cs:line 197
   at System.IO.Enumeration.FileSystemEnumerator`1[[System.IO.FileSystemInfo, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() in /_/src/libraries/System.Private.CoreLib/src/System/IO/Enumeration/FileSystemEnumerator.Unix.cs:line 110
   at System.Collections.Generic.List`1[[System.IO.FileSystemInfo, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..ctor(IEnumerable`1 collection) in /_/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/List.cs:line 85
   at System.IO.DirectoryInfo.GetFileSystemInfos(String searchPattern, EnumerationOptions enumerationOptions) in /_/src/libraries/System.Private.CoreLib/src/System/IO/DirectoryInfo.cs:line 124
   at System.IO.DirectoryInfo.GetFileSystemInfos(String searchPattern) in /_/src/libraries/System.Private.CoreLib/src/System/IO/DirectoryInfo.cs:line 118
   at System.IO.Tests.DirectoryInfo_GetFileSystemInfos_str.GetEntries(String path, String searchPattern) in /_/src/libraries/System.IO.FileSystem/tests/DirectoryInfo/GetFileSystemInfos.cs:line 26
   at System.IO.Tests.Directory_GetFileSystemEntries_str_str.PatternTests_DosDotTrailingDot(String pattern, String[] sourceFiles, String[] expected) in /_/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs:line 343
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/mono/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 378
----- Inner Stack Trace -----
Author: VincentBu
Assignees: -
Labels:

arch-arm64, area-System.IO, os-linux

Milestone: -

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jun 16, 2021
@jozkee jozkee removed the untriaged New issue has not been triaged by the area owner label Jun 16, 2021
@jozkee jozkee added this to the 6.0.0 milestone Jun 16, 2021
@danmoseley
Copy link
Member

I'll dupe against #54589 since I put the query in there.

@adamsitnik adamsitnik self-assigned this Jun 23, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jul 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-arm64 area-System.IO os-linux Linux OS (any supported distro)
Projects
None yet
Development

No branches or pull requests

4 participants