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

[Libraries][iOSSimulator] System.IO.MemoryMappedFiles.Tests ValidAccessLevelCombinations UnauthorizedAccessException thrown #58367

Closed
mdh1418 opened this issue Aug 30, 2021 · 5 comments
Labels
Milestone

Comments

@mdh1418
Copy link
Member

mdh1418 commented Aug 30, 2021

iOSSimulator arm64 hits an UnauthorizedAccessException

System.IO.MemoryMappedFiles.Tests.MemoryMappedViewStreamTests.ValidAccessLevelCombinations(mapAccess: ReadWriteExecute, viewAccess: ReadWriteExecute)
    System.UnauthorizedAccessException : Access to the path is denied.\n---- System.IO.IOException : Permission denied
System.IO.MemoryMappedFiles.Tests.MemoryMappedViewAccessorTests.ValidAccessLevelCombinations(mapAccess: ReadWriteExecute, viewAccess: ReadWriteExecute)
    System.UnauthorizedAccessException : Access to the path is denied.\n---- System.IO.IOException : Permission denied

Possibly related to #53601?

It seems that the test case does not fail on iOSSimulator x64 or tvOSSimulator x64.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Aug 30, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@mdh1418 mdh1418 changed the title [Libraries][iOSSimulator] [Libraries][iOSSimulator] System.IO.MemoryMappedFiles.Tests ValidAccessLevelCombinations UnauthorizedAccessException thrown Aug 30, 2021
@mdh1418 mdh1418 removed the untriaged New issue has not been triaged by the area owner label Aug 30, 2021
@mdh1418 mdh1418 added this to the 7.0.0 milestone Aug 30, 2021
@ghost
Copy link

ghost commented Aug 30, 2021

Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer
See info in area-owners.md if you want to be subscribed.

Issue Details

iOSSimulator arm64 hits an UnauthorizedAccessException

System.IO.MemoryMappedFiles.Tests.MemoryMappedViewStreamTests.ValidAccessLevelCombinations(mapAccess: ReadWriteExecute, viewAccess: ReadWriteExecute)
    System.UnauthorizedAccessException : Access to the path is denied.\n---- System.IO.IOException : Permission denied
System.IO.MemoryMappedFiles.Tests.MemoryMappedViewAccessorTests.ValidAccessLevelCombinations(mapAccess: ReadWriteExecute, viewAccess: ReadWriteExecute)
    System.UnauthorizedAccessException : Access to the path is denied.\n---- System.IO.IOException : Permission denied

Possibly related to #53601?

Author: mdh1418
Assignees: -
Labels:

area-Infrastructure-libraries, os-ios

Milestone: 7.0.0

steveisok pushed a commit that referenced this issue Sep 13, 2021
…t and test fixes for Android (#58841)

Manual backport of #57208, #58519, #58562, #58210, #57732, #58428, #58586, #58745, #57687 to release/6.0

Numerous test suites have been failing for iOS/tvOS/MacCatalyst consistently on CI without useful logs as to why. Moreover, some of these suites pass locally.

This PR looks to reduce the failures on CI by skipping the problematic suites
Skips test suites logged in #53624

ActiveIssues
#58440
#58418
#58367
#58584

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Co-authored-by: Jo Shields <directhex@apebox.org>
@ghost
Copy link

ghost commented Jul 6, 2022

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

Issue Details

iOSSimulator arm64 hits an UnauthorizedAccessException

System.IO.MemoryMappedFiles.Tests.MemoryMappedViewStreamTests.ValidAccessLevelCombinations(mapAccess: ReadWriteExecute, viewAccess: ReadWriteExecute)
    System.UnauthorizedAccessException : Access to the path is denied.\n---- System.IO.IOException : Permission denied
System.IO.MemoryMappedFiles.Tests.MemoryMappedViewAccessorTests.ValidAccessLevelCombinations(mapAccess: ReadWriteExecute, viewAccess: ReadWriteExecute)
    System.UnauthorizedAccessException : Access to the path is denied.\n---- System.IO.IOException : Permission denied

Possibly related to #53601?

It seems that the test case does not fail on iOSSimulator x64 or tvOSSimulator x64.

Author: mdh1418
Assignees: -
Labels:

area-System.IO, os-ios

Milestone: 7.0.0

@carlossanlop carlossanlop added the os-tvos Apple tvOS label Jul 6, 2022
@ghost
Copy link

ghost commented Jul 6, 2022

Tagging subscribers to 'os-tvos': @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Issue Details

iOSSimulator arm64 hits an UnauthorizedAccessException

System.IO.MemoryMappedFiles.Tests.MemoryMappedViewStreamTests.ValidAccessLevelCombinations(mapAccess: ReadWriteExecute, viewAccess: ReadWriteExecute)
    System.UnauthorizedAccessException : Access to the path is denied.\n---- System.IO.IOException : Permission denied
System.IO.MemoryMappedFiles.Tests.MemoryMappedViewAccessorTests.ValidAccessLevelCombinations(mapAccess: ReadWriteExecute, viewAccess: ReadWriteExecute)
    System.UnauthorizedAccessException : Access to the path is denied.\n---- System.IO.IOException : Permission denied

Possibly related to #53601?

It seems that the test case does not fail on iOSSimulator x64 or tvOSSimulator x64.

Author: mdh1418
Assignees: -
Labels:

area-System.IO, os-ios, os-tvos

Milestone: 7.0.0

@carlossanlop carlossanlop added the untriaged New issue has not been triaged by the area owner label Jul 6, 2022
@jeffschwMSFT jeffschwMSFT removed the untriaged New issue has not been triaged by the area owner label Jul 7, 2022
@akoeplinger
Copy link
Member

The test failure was fixed by changes in the test to catch these UnauthorizedAccessException on iOS/tvOS.
The arm64 iOS simulator behaves closer to devices which is why we're seeing the exception there.

@ghost ghost locked as resolved and limited conversation to collaborators Sep 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants