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

UnixSearchPatternFileValidChar test failing #54594

Closed
ViktorHofer opened this issue Jun 23, 2021 · 3 comments
Closed

UnixSearchPatternFileValidChar test failing #54594

ViktorHofer opened this issue Jun 23, 2021 · 3 comments
Assignees

Comments

@ViktorHofer
Copy link
Member

System.IO.Tests.DirectoryInfo_GetFileSystemInfos_str.UnixSearchPatternFileValidChar(valid: \">\")

System.UnauthorizedAccessException : Access to the path '/var/folders/6f/5yk_94p53cg_ltnfts0_9cmc0000gq/T/DirectoryInfo_GetFileSystemInfos_str_jspyhvh5.lqb/UnixSearchPatternFileValidChar_757_0e6c5d1a/>' is denied.
---- System.IO.IOException : Bad file descriptor
at System.IO.Strategies.Net5CompatFileStreamStrategy.Dispose(Boolean disposing) in /_/src/libraries/System.Private.CoreLib/src/System/IO/Strategies/Net5CompatFileStreamStrategy.Unix.cs:line 121
   at System.IO.Strategies.Net5CompatFileStreamStrategy.DisposeInternal(Boolean disposing) in /_/src/libraries/System.Private.CoreLib/src/System/IO/Strategies/Net5CompatFileStreamStrategy.cs:line 110
   at System.IO.FileStream.Dispose(Boolean disposing) in /_/src/libraries/System.Private.CoreLib/src/System/IO/FileStream.cs:line 476
   at System.IO.Stream.Close() in /_/src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs:line 165
   at System.IO.Stream.Dispose() in /_/src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs:line 158
   at System.IO.Tests.Directory_GetFileSystemEntries_str_str.UnixSearchPatternFileValidChar(String valid) in /_/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs:line 758
   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 370
----- Inner Stack Trace -----

https://dev.azure.com/dnceng/public/_build/results?buildId=1200703&view=ms.vss-test-web.build-test-results-tab&runId=35966190&resultId=120781&paneView=debug

Configuration: net6.0-OSX-Debug-x64-Mono_release-OSX.1015.Amd64.Open

@ghost
Copy link

ghost commented Jun 23, 2021

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

Issue Details
System.IO.Tests.DirectoryInfo_GetFileSystemInfos_str.UnixSearchPatternFileValidChar(valid: \">\")

System.UnauthorizedAccessException : Access to the path '/var/folders/6f/5yk_94p53cg_ltnfts0_9cmc0000gq/T/DirectoryInfo_GetFileSystemInfos_str_jspyhvh5.lqb/UnixSearchPatternFileValidChar_757_0e6c5d1a/>' is denied.
---- System.IO.IOException : Bad file descriptor
at System.IO.Strategies.Net5CompatFileStreamStrategy.Dispose(Boolean disposing) in /_/src/libraries/System.Private.CoreLib/src/System/IO/Strategies/Net5CompatFileStreamStrategy.Unix.cs:line 121
   at System.IO.Strategies.Net5CompatFileStreamStrategy.DisposeInternal(Boolean disposing) in /_/src/libraries/System.Private.CoreLib/src/System/IO/Strategies/Net5CompatFileStreamStrategy.cs:line 110
   at System.IO.FileStream.Dispose(Boolean disposing) in /_/src/libraries/System.Private.CoreLib/src/System/IO/FileStream.cs:line 476
   at System.IO.Stream.Close() in /_/src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs:line 165
   at System.IO.Stream.Dispose() in /_/src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs:line 158
   at System.IO.Tests.Directory_GetFileSystemEntries_str_str.UnixSearchPatternFileValidChar(String valid) in /_/src/libraries/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs:line 758
   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 370
----- Inner Stack Trace -----

https://dev.azure.com/dnceng/public/_build/results?buildId=1200703&view=ms.vss-test-web.build-test-results-tab&runId=35966190&resultId=120781&paneView=debug

Configuration: net6.0-OSX-Debug-x64-Mono_release-OSX.1015.Amd64.Open

Author: ViktorHofer
Assignees: -
Labels:

area-System.IO

Milestone: -

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jun 23, 2021
@stephentoub
Copy link
Member

Another case of #54589

@adamsitnik adamsitnik self-assigned this Jun 23, 2021
@adamsitnik
Copy link
Member

Fixed by @danmoseley in #54660

@adamsitnik adamsitnik removed the untriaged New issue has not been triaged by the area owner label Jun 24, 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.
Projects
None yet
Development

No branches or pull requests

3 participants