Skip to content

Conversation

@grendello
Copy link
Contributor

Android 11 / API 30 made the memfd_create(2) Linux-specific API
fail whenever the MFD_CLOEXEC | MFD_ALLOW_SEALING combination of flags
is passed to it:

Xamarin.Android.Bcl_Tests, MonoTests.Mono.Unix.Native.MemfdTest.TestMemfd / Release

System.ArgumentOutOfRangeException : Current platform doesn't support this value.
Parameter name: value
Actual value was MFD_CLOEXEC, MFD_ALLOW_SEALING.

Disable the test altogether, since this API isn't used by
Xamarin.Android and any applications using it will/should check the
errno variable for the ENOSYS value to see if the API is supported
or not. This will unblock us, allowing update of our Android emulator
system image to API 30.

`Android 11` / `API 30` made the `memfd_create(2)` Linux-specific API
fail whenever the `MFD_CLOEXEC | MFD_ALLOW_SEALING` combination of flags
is passed to it:

    Xamarin.Android.Bcl_Tests, MonoTests.Mono.Unix.Native.MemfdTest.TestMemfd / Release

    System.ArgumentOutOfRangeException : Current platform doesn't support this value.
    Parameter name: value
    Actual value was MFD_CLOEXEC, MFD_ALLOW_SEALING.

Disable the test altogether, since this API isn't used by
`Xamarin.Android` and any applications using it will/should check the
`errno` variable for the `ENOSYS` value to see if the API is supported
or not.  This will unblock us, allowing update of our Android emulator
system image to API 30.
Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonpryor jonpryor merged commit 09218b5 into dotnet:master Jun 25, 2020
@grendello grendello deleted the disable-posix-test-for-30 branch June 25, 2020 21:16
jonpryor pushed a commit that referenced this pull request Jun 26, 2020
…4869)

Android 11/API-30 made the [**memfd_create**(2)][0] Linux-specific API
fail whenever the `MFD_CLOEXEC | MFD_ALLOW_SEALING` combination of flags
is passed to it, resulting in "BCL" unit test failures:

	Xamarin.Android.Bcl_Tests, MonoTests.Mono.Unix.Native.MemfdTest.TestMemfd / Release

	System.ArgumentOutOfRangeException : Current platform doesn't support this value.
	Parameter name: value
	Actual value was MFD_CLOEXEC, MFD_ALLOW_SEALING.

Disable the test altogether, since this API isn't used by
`Xamarin.Android` and any applications using it will/should check the
`errno` variable for the `ENOSYS` value to see if the API is supported
or not.  This will unblock us, allowing update of our Android emulator
system image to API 30.

[0]: https://man7.org/linux/man-pages/man2/memfd_create.2.html
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants