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

[iOS/tvOS] System.IO.FileSystem.DriveInfoTests.DriveInfoUnixTests.TestGetDrives fails on devices #60586

Closed
Tracked by #64596
steveisok opened this issue Oct 18, 2021 · 1 comment · Fixed by #87162
Closed
Tracked by #64596
Assignees
Labels
area-System.IO disabled-test The test is disabled in source code against the issue os-ios Apple iOS os-tvos Apple tvOS
Milestone

Comments

@steveisok
Copy link
Member

The test fails with:

System.ExecutionEngineException : Attempting to JIT compile method '(wrapper native-to-managed) void Interop/Sys/<>c__DisplayClass13_0:<GetAllMountPoints>b__0 (byte*)' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.
Stack trace
   at Interop.Sys.GetAllMountPoints()
   at System.IO.DriveInfo.GetDrives()
   at System.IO.FileSystem.DriveInfoTests.DriveInfoUnixTests.TestGetDrives()
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
@dotnet-issue-labeler dotnet-issue-labeler bot added area-System.IO untriaged New issue has not been triaged by the area owner labels Oct 18, 2021
@steveisok steveisok added os-ios Apple iOS os-tvos Apple tvOS labels Oct 18, 2021
@steveisok steveisok added this to the 7.0.0 milestone Oct 18, 2021
@jeffschwMSFT jeffschwMSFT removed the untriaged New issue has not been triaged by the area owner label Oct 19, 2021
@steveisok
Copy link
Member Author

The issue manifests itself when calling Array.Resize from GetAllMountPoints

@vargaz it looks like Buffer.memmove might be the culprit, but I don't have a good explanation.

Buffer.Memmove<T>(
ref MemoryMarshal.GetArrayDataReference(newArray),
ref MemoryMarshal.GetArrayDataReference(larray),
(uint)Math.Min(newSize, larray.Length));

@steveisok steveisok modified the milestones: 7.0.0, 8.0.0 Jul 31, 2022
@kotlarmilos kotlarmilos self-assigned this May 19, 2023
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jun 6, 2023
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jun 10, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 11, 2023
@kotlarmilos kotlarmilos added the disabled-test The test is disabled in source code against the issue label Jul 13, 2023
@kotlarmilos kotlarmilos modified the milestones: 8.0.0, 9.0.0 Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.IO disabled-test The test is disabled in source code against the issue os-ios Apple iOS os-tvos Apple tvOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants