Skip to content

dontlink.app crash with EntryPointNotFoundException: xamarin_release_managed_ref #11151

Description

@spouliot

Steps to Reproduce

  1. Build dontlink.csproj for device (arm64)
  2. Run on device

Expected Behavior

Should run the tests

Actual Behavior

2021-04-07 10:40:24.537 dont link[3286:3879143] 
Unhandled Exception:
System.EntryPointNotFoundException: xamarin_release_managed_ref
  at Foundation.NSObject.ReleaseManagedRef () [0x0001f] in /Users/poupou/git/xamarin/xamarin-macios/src/Foundation/NSObject2.cs:285 
  at Foundation.NSObject.Dispose (System.Boolean disposing) [0x00025] in /Users/poupou/git/xamarin/xamarin-macios/src/Foundation/NSObject2.cs:772 
  at Foundation.NSObject.Dispose () [0x00000] in /Users/poupou/git/xamarin/xamarin-macios/src/Foundation/NSObject2.cs:155 
  at ObjCRuntime.Runtime.ThreadPoolDispatcher (System.Func`1[TResult] callback) [0x0000f] in /Users/poupou/git/xamarin/xamarin-macios/src/ObjCRuntime/Runtime.cs:303 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00009] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs:1258 
2021-04-07 10:40:24.539 dont link[3286:3879143] Unhandled managed exception: xamarin_release_managed_ref (System.EntryPointNotFoundException)
  at Foundation.NSObject.ReleaseManagedRef () [0x0001f] in /Users/poupou/git/xamarin/xamarin-macios/src/Foundation/NSObject2.cs:285 
  at Foundation.NSObject.Dispose (System.Boolean disposing) [0x00025] in /Users/poupou/git/xamarin/xamarin-macios/src/Foundation/NSObject2.cs:772 
  at Foundation.NSObject.Dispose () [0x00000] in /Users/poupou/git/xamarin/xamarin-macios/src/Foundation/NSObject2.cs:155 
  at ObjCRuntime.Runtime.ThreadPoolDispatcher (System.Func`1[TResult] callback) [0x0000f] in /Users/poupou/git/xamarin/xamarin-macios/src/ObjCRuntime/Runtime.cs:303 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00009] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs:1258 

=================================================================
	Native Crash Reporting
=================================================================
Got a abrt while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
	Native stacktrace:
=================================================================
	0x105daf554 - /private/var/containers/Bundle/Application/08E86444-779F-4F89-BA69-0BF4ABDE7BA6/dont link.app/dont link : 
	0x105da6170 - /private/var/containers/Bundle/Application/08E86444-779F-4F89-BA69-0BF4ABDE7BA6/dont link.app/dont link : 
	0x105daea9c - /private/var/containers/Bundle/Application/08E86444-779F-4F89-BA69-0BF4ABDE7BA6/dont link.app/dont link : 
	0x1f54d7298 - /usr/lib/system/libsystem_platform.dylib : <redacted>
	0x1f54dcb50 - /usr/lib/system/libsystem_pthread.dylib : pthread_kill
	0x1b2e5bb74 - /usr/lib/system/libsystem_c.dylib : abort
	0x105f22134 - /private/var/containers/Bundle/Application/08E86444-779F-4F89-BA69-0BF4ABDE7BA6/dont link.app/dont link : 
	0x105e06164 - /private/var/containers/Bundle/Application/08E86444-779F-4F89-BA69-0BF4ABDE7BA6/dont link.app/dont link : 
	0x105e8d940 - /private/var/containers/Bundle/Application/08E86444-779F-4F89-BA69-0BF4ABDE7BA6/dont link.app/dont link : 
	0x105e857dc - /private/var/containers/Bundle/Application/08E86444-779F-4F89-BA69-0BF4ABDE7BA6/dont link.app/dont link : 
	0x105e82fe8 - /private/var/containers/Bundle/Application/08E86444-779F-4F89-BA69-0BF4ABDE7BA6/dont link.app/dont link : 
	0x105e8df48 - /private/var/containers/Bundle/Application/08E86444-779F-4F89-BA69-0BF4ABDE7BA6/dont link.app/dont link : 
	0x105e8ddcc - /private/var/containers/Bundle/Application/08E86444-779F-4F89-BA69-0BF4ABDE7BA6/dont link.app/dont link : 
	0x1f54dbcb0 - /usr/lib/system/libsystem_pthread.dylib : _pthread_start
	0x1f54e4778 - /usr/lib/system/libsystem_pthread.dylib : thread_start

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x1d7982414):0x1d7982404  ff 0f 5f d6 c0 03 5f d6 10 29 80 d2 01 10 00 d4  .._..._..)......
0x1d7982414  03 01 00 54 7f 23 03 d5 fd 7b bf a9 fd 03 00 91  ...T.#...{......
0x1d7982424  ff 71 ff 97 bf 03 00 91 fd 7b c1 a8 ff 0f 5f d6  .q.......{...._.
0x1d7982434  c0 03 5f d6 90 29 80 d2 01 10 00 d4 03 01 00 54  .._..).........T

=================================================================
	Managed Stacktrace:
=================================================================
=================================================================

Environment

main

Example Project (If Possible)

in repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixiOSIssues affecting iOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions