Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@akoeplinger
Copy link
Member

As of XCode 11 beta6 the MacOSX SDK defines the MAP_32BIT symbol.

This causes the mono_valloc() function to try to use the MAP_32BIT flag for mmap().

However as mentioned in the comment for the symbol in mman.h it seems to require a special entitlement which isn't available/documented anywhere yet.
This in turn causes the mmap call to fail presumably because we're missing that entitlement.

Instead we now skip setting this flag on Apple platforms to make mmap() behave like it did before.

Backport of #16441

…e 11 beta6

As of XCode 11 beta6 the MacOSX SDK defines the MAP_32BIT symbol.

This causes the `mono_valloc()` function to try to use the `MAP_32BIT` flag for `mmap()`.

However as mentioned in the comment for the symbol in mman.h it seems to require a special entitlement which isn't available/documented anywhere yet.
This in turn causes the mmap call to fail presumably because we're missing that entitlement.

Instead we now skip setting this flag on Apple platforms to make `mmap()` behave like it did before.

Backport of mono#16441
@akoeplinger
Copy link
Member Author

@monojenkins backport 2019-06
@monojenkins backport 2019-02

@akoeplinger akoeplinger added this to the 2019-08 (6.6.xx) milestone Aug 26, 2019
@akoeplinger akoeplinger changed the title [utils] Don't use MAP_32BIT on Apple platforms, fixes crash with XCode 11 beta6 [2019-08] [utils] Don't use MAP_32BIT on Apple platforms, fixes crash with XCode 11 beta6 Aug 26, 2019
@akoeplinger akoeplinger merged commit 13bc35f into mono:2019-08 Aug 26, 2019
@akoeplinger akoeplinger deleted the backport-16441-to-2019-08 branch August 26, 2019 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants