Skip to content

Added AppDomainSetup.set_ShadowCopyDirectories to preserves list #803

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

Merged
merged 1 commit into from
Aug 31, 2017

Conversation

BretJohnson
Copy link

Needed to fix https://bugzilla.xamarin.com/show_bug.cgi?id=59115
since monodroid_create_appdomain sets this property, expecting
it to always be there

Needed to fix https://bugzilla.xamarin.com/show_bug.cgi?id=59115
since monodroid_create_appdomain sets this property, expecting
it to always be there
@BretJohnson BretJohnson requested a review from garuma August 31, 2017 14:59
@dnfclas
Copy link

dnfclas commented Aug 31, 2017

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@jonpryor
Copy link
Contributor

build

@jonpryor jonpryor merged commit 32ddcb8 into master Aug 31, 2017
jonpryor pushed a commit to jonpryor/xamarin-android that referenced this pull request Sep 1, 2017
…net#803)

Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=59115

`monodroid_create_appdomain()` requires that the
`AppDomainSetup.set_ShadowCopyDirectories` property exist, so that
it can be called.

Unfortunately, the linker may remove this property, which results in
a SIGSEGV if it's been removed:

	C  [libmonosgen-2.0.dylib+0x20bc9c]  mono_property_set_value+0xc
	C  [libmono-android.debug.dylib+0x154fe]  monodroid_property_set+0xbe
	C  [libmono-android.debug.dylib+0x15268]  monodroid_create_appdomain+0x248
	C  [libmono-android.debug.dylib+0xf159]  create_domain+0x149
	C  [libmono-android.debug.dylib+0xe439]  create_and_initialize_domain+0x69
	C  [libmono-android.debug.dylib+0xe89d]  Java_mono_android_Runtime_createNewContext+0x7d

Add `AppDomainSetup.set_ShadowCopyDirectories` to the linker's
preserve list, so that the Android Designer can work as intended.
cobey added a commit that referenced this pull request Sep 1, 2017
[Xamarin.Android.Build.Tasks] Preserve set_ShadowCopyDirectories (#803)
@jonpryor jonpryor deleted the preserve-ShadowCopyDirectories branch June 11, 2019 21:42
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 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