dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.17k stars 4.72k forks source link

Support .NET on Apple Silicon with Rosetta 2 emulation #44897

Closed sdmaclea closed 2 years ago

sdmaclea commented 3 years ago

Apple has announced plans to transition its Mac hardware line to a new Arm64-based chip that they refer to as “Apple Silicon”.

Initial .NET support will be through .NET running on the Rosetta 2 emulator. Longer term native support for Apple Silicon is planned for .NET 6.

While it is hoped that Rosetta 2 emulation will just work, the .NET runtime is complicated and real issues will make this a non-trivial task.

Current known issues

richlander commented 3 years ago

We're intending on releasing Apple M1 support (native and R2) starting with .NET 6.0 Preview 1 (first half of February). There will almost certainly be issues and feature gaps in Preview 1. Support will get better with each preview. For example, Preview 1 will have only native SOS-style debugging support and we intend to add managed Visual Studio-style debugging with Preview 3.

Our current thinking is to backport R2 support to .NET 5.0 and .NET Core 3.1, and that native M1 support will be .NET 6.0 only. The change to support native is quite significant, and we don't see a good cost/risk/benefit tradeoff.

zwarich commented 3 years ago

I was busy with meetings yesterday, so apologies for the delay in replies. There are a few important fixes in the latest 11.2 beta, and I'm glad that it is working well for people in practice.

@richlander What .NET changes are you thinking of backporting for Rosetta 2 support? I don't think any should be required with 11.2.

richlander commented 3 years ago

@zwarich -- good question. I'm not up to date on 11.2 beta. I'll pass to the question to @janvorli. Do we need to make any changes to .NET x64 to enable correct and optimal operation in R2?

sdmaclea commented 3 years ago

@richlander Since Apple made all the changes in Rosetta 2, we think this will just work for .NET 2.1, .NET 3.1, and .NET 5 w/o any changes to the runtime/SDK.

janvorli commented 3 years ago

Agree with @sdmaclea, I believe we won't need to make any changes to make Rosetta work.

There is one last issue that we hit when running all the .NET Core pri1 tests under Rosetta 2 - the assertion failed: GPR thread_set_state is unsupported while in sa_tramp. (ThreadContextRegisterState.cpp:1250 thread_set_state_gpr_64) listed in the head of this github issue. We have seen that failing in the past, as can be seen in the discussion above. I am currently investigating it to get more details so that I can report it to Apple.

zwarich commented 3 years ago

@janvorli That issue will be fixed in a future release. I didn't see it reproduce when running the pri1 tests myself, but it makes sense that some of the tests could hit it. Please file a radar if there's an individual test that can reproduce it fairly consistently when run in a loop, but otherwise your time is probably better spent elsewhere.

janvorli commented 3 years ago

Thanks @zwarich, I will file it. It reproduces consistently and in 100% of the test launches for me in two of the tests (that were mentioned above) when running the tests in unchanged .NET runtime master branch. Here are the repro steps:

Edit: I've fixed the -coreroot option above, it was missing the =

janvorli commented 3 years ago

@zwarich I've filed it in as FB8970566

nixxholas commented 3 years ago

Not sure if this is going to help, but after extensive use of macOS 11.2 Beta 2 with me and my team, we discovered a sudden runtime failure.

We've ran the project multiple times and it only happens once every 20-30 runs.

info: System.Net.Http.HttpClient.Default.ClientHandler[100]
      Sending HTTP request GET https://localhost:6001/ApiKey/All
info: System.Net.Http.HttpClient.Default.ClientHandler[101]
      Received HTTP response headers after 365.6311ms - 200
info: System.Net.Http.HttpClient.Default.LogicalHandler[101]
      End processing HTTP request after 371.5579ms - 200
assertion failed [code_fragment->kind == CodeFragmentKind::InvalidJit]: metadata kind is not CodeFragmentKind::InvalidJit
(TranslationCacheJit.cpp:262 handle_jit_breakpoint)
``` Process: dotnet [63478] Path: /usr/local/share/dotnet/dotnet Identifier: dotnet Version: 0 Code Type: X86-64 (Translated) Parent Process: ??? [63464] Responsible: rider [62771] User ID: 501 Date/Time: 2021-01-15 12:40:23.782 +0800 OS Version: macOS 11.2 (20D5042d) Report Version: 12 Anonymous UUID: D7264532-AD3D-ECB2-508F-C92C1E642CE0 Sleep/Wake UUID: F42CA73A-AFF9-4EB1-B1EF-88D902353F17 Time Awake Since Boot: 43000 seconds Time Since Wake: 1000 seconds System Integrity Protection: enabled Crashed Thread: 1 com.apple.rosetta.exceptionserver Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: EXC_ARM_BREAKPOINT at 0x00007ffdffc0736c Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Trace/BPT trap: 5 Termination Reason: Namespace SIGNAL, Code 0x5 Terminating Process: exc handler [63478] Application Specific Information: assertion failed [code_fragment->kind == CodeFragmentKind::InvalidJit]: metadata kind is not CodeFragmentKind::InvalidJit (TranslationCacheJit.cpp:262 handle_jit_breakpoint) Thread 0:: Dispatch queue: com.apple.main-thread 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f852 WaitForMultipleObjectsEx + 82 6 libcoreclr.dylib 0x000000010944e72b Thread::DoAppropriateWaitWorker(int, void**, int, unsigned int, WaitMode) + 1163 7 libcoreclr.dylib 0x0000000109449aa0 Thread::DoAppropriateWait(int, void**, int, unsigned int, WaitMode, PendingSync*) + 48 8 libcoreclr.dylib 0x000000010956328f CLREventBase::WaitEx(unsigned int, WaitMode, PendingSync*) + 63 9 libcoreclr.dylib 0x000000010944f5bd Thread::Block(int, PendingSync*) + 29 10 libcoreclr.dylib 0x0000000109447b4f SyncBlock::Wait(int, int) + 479 11 libcoreclr.dylib 0x00000001097145c9 ObjectNative::WaitTimeout(bool, int, Object*) + 185 12 ??? 0x000000010fcfb23b ??? 13 ??? 0x000000010fd0f220 ??? 14 ??? 0x000000010fd0f0bb ??? 15 ??? 0x000000010fd78cb6 ??? 16 ??? 0x000000010fd78c69 ??? 17 ??? 0x0000000110187d01 ??? 18 libcoreclr.dylib 0x0000000109632409 CallDescrWorkerInternal + 124 19 libcoreclr.dylib 0x00000001094870ef MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519 20 libcoreclr.dylib 0x00000001093627ca RunMain(MethodDesc*, short, int*, PtrArray**) + 746 21 libcoreclr.dylib 0x0000000109362b03 Assembly::ExecuteMainMethod(PtrArray**, int) + 387 22 libcoreclr.dylib 0x000000010939f68d CorHost2::ExecuteAssembly(unsigned int, char16_t const*, int, char16_t const**, unsigned int*) + 509 23 libcoreclr.dylib 0x000000010934c032 coreclr_execute_assembly + 242 24 libhostpolicy.dylib 0x000000010922d923 run_app_for_context(hostpolicy_context_t const&, int, char const**) + 1443 25 libhostpolicy.dylib 0x000000010922ec2a corehost_main + 234 26 libhostfxr.dylib 0x000000010913d981 fx_muxer_t::handle_exec_host_command(std::__1::basic_string, std::__1::allocator > const&, host_startup_info_t const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::unordered_map, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >, known_options_hash, std::__1::equal_to, std::__1::allocator, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > > > > const&, int, char const**, int, host_mode_t, char*, int, int*) + 1281 27 libhostfxr.dylib 0x000000010913cad3 fx_muxer_t::execute(std::__1::basic_string, std::__1::allocator >, int, char const**, host_startup_info_t const&, char*, int, int*) + 611 28 libhostfxr.dylib 0x000000010913a47a hostfxr_main_startupinfo + 138 29 dotnet 0x0000000100e0abeb exe_start(int, char const**) + 1355 30 dotnet 0x0000000100e0addf main + 143 31 libdyld.dylib 0x00007fff20334621 start + 1 Thread 1 Crashed:: com.apple.rosetta.exceptionserver 0 runtime 0x00007ffdffc0736c 0x7ffdffbb4000 + 340844 1 runtime 0x00007ffdffc06da8 0x7ffdffbb4000 + 339368 2 runtime 0x00007ffdffbc0b4c 0x7ffdffbb4000 + 52044 3 runtime 0x00007ffdffbc11f8 0x7ffdffbb4000 + 53752 Thread 2: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e4e6e mach_msg_trap + 10 2 libcoreclr.dylib 0x0000000109349068 MachMessage::Receive(unsigned int) + 72 3 libcoreclr.dylib 0x00000001093482be SEHExceptionThread(void*) + 142 4 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 5 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 3: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e97d2 kevent + 10 2 libcoreclr.dylib 0x000000010933cadf CorUnix::CPalSynchronizationManager::WorkerThread(void*) + 127 3 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 4 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 5 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 4: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202eb4ee poll + 10 2 libcoreclr.dylib 0x00000001094e6f11 IpcStreamFactory::GetNextAvailableStream(void (*)(char const*, unsigned int)) + 1057 3 libcoreclr.dylib 0x00000001094ad7b8 DiagnosticServer::DiagnosticsServerThread(void*) + 280 4 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 5 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 6 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 5: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e588e read + 10 2 libcoreclr.dylib 0x000000010969a0d9 DbgTransportSession::TransportWorker() + 1897 3 libcoreclr.dylib 0x00000001096985f9 DbgTransportSession::TransportWorkerStatic(void*) + 9 4 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 5 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 6 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 6: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f852 WaitForMultipleObjectsEx + 82 6 libcoreclr.dylib 0x0000000109696daa DebuggerRCThread::MainLoop() + 186 7 libcoreclr.dylib 0x0000000109696c90 DebuggerRCThread::ThreadProc() + 240 8 libcoreclr.dylib 0x0000000109696a2d DebuggerRCThread::ThreadProcStatic(void*) + 29 9 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 10 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 11 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 7: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933ed08 WaitForSingleObject + 72 6 libcoreclr.dylib 0x0000000109697e8f HelperCanary::ThreadProc() + 31 7 libcoreclr.dylib 0x0000000109697e38 HelperCanary::ThreadProc(void*) + 56 8 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 9 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 10 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 8: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f78d WaitForSingleObjectEx + 77 6 libcoreclr.dylib 0x0000000109563318 CLREventBase::WaitEx(unsigned int, WaitMode, PendingSync*) + 200 7 libcoreclr.dylib 0x00000001095aeddf SVR::gc_heap::gc_thread_function() + 175 8 libcoreclr.dylib 0x00000001095aed26 SVR::gc_heap::gc_thread_stub(void*) + 54 9 libcoreclr.dylib 0x00000001094ce14e (anonymous namespace)::CreateNonSuspendableThread(void (*)(void*), void*, char16_t const*)::$_1::__invoke(void*) + 78 10 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 11 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 12 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 9: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f78d WaitForSingleObjectEx + 77 6 libcoreclr.dylib 0x0000000109563318 CLREventBase::WaitEx(unsigned int, WaitMode, PendingSync*) + 200 7 libcoreclr.dylib 0x00000001095aeda5 SVR::gc_heap::gc_thread_function() + 117 8 libcoreclr.dylib 0x00000001095aed26 SVR::gc_heap::gc_thread_stub(void*) + 54 9 libcoreclr.dylib 0x00000001094ce14e (anonymous namespace)::CreateNonSuspendableThread(void (*)(void*), void*, char16_t const*)::$_1::__invoke(void*) + 78 10 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 11 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 12 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 10: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f78d WaitForSingleObjectEx + 77 6 libcoreclr.dylib 0x0000000109563318 CLREventBase::WaitEx(unsigned int, WaitMode, PendingSync*) + 200 7 libcoreclr.dylib 0x00000001095aeda5 SVR::gc_heap::gc_thread_function() + 117 8 libcoreclr.dylib 0x00000001095aed26 SVR::gc_heap::gc_thread_stub(void*) + 54 9 libcoreclr.dylib 0x00000001094ce14e (anonymous namespace)::CreateNonSuspendableThread(void (*)(void*), void*, char16_t const*)::$_1::__invoke(void*) + 78 10 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 11 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 12 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 11: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f78d WaitForSingleObjectEx + 77 6 libcoreclr.dylib 0x0000000109563318 CLREventBase::WaitEx(unsigned int, WaitMode, PendingSync*) + 200 7 libcoreclr.dylib 0x00000001095aeda5 SVR::gc_heap::gc_thread_function() + 117 8 libcoreclr.dylib 0x00000001095aed26 SVR::gc_heap::gc_thread_stub(void*) + 54 9 libcoreclr.dylib 0x00000001094ce14e (anonymous namespace)::CreateNonSuspendableThread(void (*)(void*), void*, char16_t const*)::$_1::__invoke(void*) + 78 10 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 11 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 12 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 12: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f78d WaitForSingleObjectEx + 77 6 libcoreclr.dylib 0x0000000109563318 CLREventBase::WaitEx(unsigned int, WaitMode, PendingSync*) + 200 7 libcoreclr.dylib 0x00000001095aeda5 SVR::gc_heap::gc_thread_function() + 117 8 libcoreclr.dylib 0x00000001095aed26 SVR::gc_heap::gc_thread_stub(void*) + 54 9 libcoreclr.dylib 0x00000001094ce14e (anonymous namespace)::CreateNonSuspendableThread(void (*)(void*), void*, char16_t const*)::$_1::__invoke(void*) + 78 10 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 11 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 12 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 13: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f78d WaitForSingleObjectEx + 77 6 libcoreclr.dylib 0x0000000109563318 CLREventBase::WaitEx(unsigned int, WaitMode, PendingSync*) + 200 7 libcoreclr.dylib 0x00000001095aeda5 SVR::gc_heap::gc_thread_function() + 117 8 libcoreclr.dylib 0x00000001095aed26 SVR::gc_heap::gc_thread_stub(void*) + 54 9 libcoreclr.dylib 0x00000001094ce14e (anonymous namespace)::CreateNonSuspendableThread(void (*)(void*), void*, char16_t const*)::$_1::__invoke(void*) + 78 10 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 11 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 12 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 14: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f78d WaitForSingleObjectEx + 77 6 libcoreclr.dylib 0x0000000109563318 CLREventBase::WaitEx(unsigned int, WaitMode, PendingSync*) + 200 7 libcoreclr.dylib 0x00000001095aeda5 SVR::gc_heap::gc_thread_function() + 117 8 libcoreclr.dylib 0x00000001095aed26 SVR::gc_heap::gc_thread_stub(void*) + 54 9 libcoreclr.dylib 0x00000001094ce14e (anonymous namespace)::CreateNonSuspendableThread(void (*)(void*), void*, char16_t const*)::$_1::__invoke(void*) + 78 10 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 11 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 12 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 15: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f78d WaitForSingleObjectEx + 77 6 libcoreclr.dylib 0x0000000109563318 CLREventBase::WaitEx(unsigned int, WaitMode, PendingSync*) + 200 7 libcoreclr.dylib 0x00000001095aeda5 SVR::gc_heap::gc_thread_function() + 117 8 libcoreclr.dylib 0x00000001095aed26 SVR::gc_heap::gc_thread_stub(void*) + 54 9 libcoreclr.dylib 0x00000001094ce14e (anonymous namespace)::CreateNonSuspendableThread(void (*)(void*), void*, char16_t const*)::$_1::__invoke(void*) + 78 10 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 11 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 12 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 16: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f852 WaitForMultipleObjectsEx + 82 6 libcoreclr.dylib 0x00000001094cb3b1 FinalizerThread::WaitForFinalizerEvent(CLREvent*) + 161 7 libcoreclr.dylib 0x00000001094cb4a3 FinalizerThread::FinalizerThreadWorker(void*) + 99 8 libcoreclr.dylib 0x0000000109451d2b ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 315 9 libcoreclr.dylib 0x0000000109452340 ManagedThreadBase::FinalizerBase(void (*)(void*)) + 32 10 libcoreclr.dylib 0x00000001094cb618 FinalizerThread::FinalizerThreadStart(void*) + 88 11 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 12 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 13 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 17: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae46 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 246 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933fc4d SleepEx + 141 5 libcoreclr.dylib 0x0000000109470452 ThreadpoolMgr::TimerThreadFire() + 146 6 libcoreclr.dylib 0x0000000109470335 ThreadpoolMgr::TimerThreadStart(void*) + 85 7 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 8 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 9 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 18: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e4e6e mach_msg_trap + 10 2 com.apple.CoreFoundation 0x00007fff2041150d __CFRunLoopServiceMachPort + 316 3 com.apple.CoreFoundation 0x00007fff2040fbf6 __CFRunLoopRun + 1319 4 com.apple.CoreFoundation 0x00007fff2040efe2 CFRunLoopRunSpecific + 567 5 com.apple.CoreFoundation 0x00007fff2049571f CFRunLoopRun + 40 6 ??? 0x00000001101a0467 ??? 7 ??? 0x0000000111280aa0 ??? 8 ??? 0x0000000111280c04 ??? 9 ??? 0x000000010fcf9801 ??? 10 ??? 0x000000010fcf04b1 ??? 11 libcoreclr.dylib 0x0000000109632409 CallDescrWorkerInternal + 124 12 libcoreclr.dylib 0x00000001094870ef MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519 13 libcoreclr.dylib 0x0000000109497a75 ThreadNative::KickOffThread_Worker(void*) + 437 14 libcoreclr.dylib 0x0000000109451d2b ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 315 15 libcoreclr.dylib 0x00000001094522e0 ManagedThreadBase::KickOff(void (*)(void*), void*) + 32 16 libcoreclr.dylib 0x0000000109497bcf ThreadNative::KickOffThread(void*) + 191 17 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 18 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 19 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 19: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e588e read + 10 2 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 3 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 20: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae63 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 275 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f852 WaitForMultipleObjectsEx + 82 6 libcoreclr.dylib 0x000000010944e72b Thread::DoAppropriateWaitWorker(int, void**, int, unsigned int, WaitMode) + 1163 7 libcoreclr.dylib 0x0000000109449aa0 Thread::DoAppropriateWait(int, void**, int, unsigned int, WaitMode, PendingSync*) + 48 8 libcoreclr.dylib 0x000000010956328f CLREventBase::WaitEx(unsigned int, WaitMode, PendingSync*) + 63 9 libcoreclr.dylib 0x000000010944f5bd Thread::Block(int, PendingSync*) + 29 10 libcoreclr.dylib 0x0000000109447b4f SyncBlock::Wait(int, int) + 479 11 libcoreclr.dylib 0x00000001097145c9 ObjectNative::WaitTimeout(bool, int, Object*) + 185 12 ??? 0x000000010fcff067 ??? 13 ??? 0x000000010fcfedf5 ??? 14 ??? 0x00000001118a568f ??? 15 ??? 0x00000001118a4ecf ??? 16 ??? 0x000000011176d5f5 ??? 17 ??? 0x000000010fcf0402 ??? 18 ??? 0x000000010fcf9801 ??? 19 ??? 0x000000010fcf051e ??? 20 libcoreclr.dylib 0x0000000109632409 CallDescrWorkerInternal + 124 21 libcoreclr.dylib 0x00000001094870ef MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519 22 libcoreclr.dylib 0x0000000109497a54 ThreadNative::KickOffThread_Worker(void*) + 404 23 libcoreclr.dylib 0x0000000109451d2b ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 315 24 libcoreclr.dylib 0x00000001094522e0 ManagedThreadBase::KickOff(void (*)(void*), void*) + 32 25 libcoreclr.dylib 0x0000000109497bcf ThreadNative::KickOffThread(void*) + 191 26 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 27 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 28 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 21: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae46 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 246 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933fc4d SleepEx + 141 5 libcoreclr.dylib 0x000000010944fc67 Thread::UserSleep(int) + 311 6 libcoreclr.dylib 0x0000000109499c7e ThreadNative::Sleep(int) + 158 7 ??? 0x000000011591d979 ??? 8 ??? 0x000000011591d926 ??? 9 ??? 0x0000000110aa0ee9 ??? 10 ??? 0x0000000110af10a5 ??? 11 ??? 0x000000010fcf9801 ??? 12 ??? 0x000000010fcf04b1 ??? 13 libcoreclr.dylib 0x0000000109632409 CallDescrWorkerInternal + 124 14 libcoreclr.dylib 0x00000001094870ef MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519 15 libcoreclr.dylib 0x0000000109497a75 ThreadNative::KickOffThread_Worker(void*) + 437 16 libcoreclr.dylib 0x0000000109451d2b ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 315 17 libcoreclr.dylib 0x00000001094522e0 ManagedThreadBase::KickOff(void (*)(void*), void*) + 32 18 libcoreclr.dylib 0x0000000109497bcf ThreadNative::KickOffThread(void*) + 191 19 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 20 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 21 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 22: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e97d2 kevent + 10 2 ??? 0x0000000115183788 ??? 3 ??? 0x00000001155291a4 ??? 4 ??? 0x0000000115529725 ??? 5 libcoreclr.dylib 0x0000000109632409 CallDescrWorkerInternal + 124 6 libcoreclr.dylib 0x00000001094870ef MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519 7 libcoreclr.dylib 0x0000000109497a75 ThreadNative::KickOffThread_Worker(void*) + 437 8 libcoreclr.dylib 0x0000000109451d2b ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 315 9 libcoreclr.dylib 0x00000001094522e0 ManagedThreadBase::KickOff(void (*)(void*), void*) + 32 10 libcoreclr.dylib 0x0000000109497bcf ThreadNative::KickOffThread(void*) + 191 11 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 12 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 13 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 23: 0 runtime 0x00007ffdffc0e99c 0x7ffdffbb4000 + 371100 Thread 24: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e7c4a write + 10 2 libcoreclr.dylib 0x000000010934749f ResumeThread + 159 3 libcoreclr.dylib 0x000000010946c7cb ThreadpoolMgr::MaybeAddWorkingWorker() + 299 4 libcoreclr.dylib 0x0000000109449383 ManagedPerAppDomainTPCount::SetAppDomainRequestsActive() + 35 5 libcoreclr.dylib 0x000000010946d19e ThreadpoolMgr::SetAppDomainRequestsActive(int) + 62 6 libcoreclr.dylib 0x000000010949d6ac ThreadPoolNative::RequestWorkerThread() + 60 7 ??? 0x000000010fd02690 ??? 8 ??? 0x000000010fd02aab ??? 9 ??? 0x000000010fcf1e27 ??? 10 libcoreclr.dylib 0x00000001094870ef MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519 11 libcoreclr.dylib 0x000000010949d650 QueueUserWorkItemManagedCallback(void*) + 160 12 libcoreclr.dylib 0x0000000109451d2b ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 315 13 libcoreclr.dylib 0x0000000109452310 ManagedThreadBase::ThreadPool(void (*)(void*), void*) + 32 14 libcoreclr.dylib 0x0000000109449477 ManagedPerAppDomainTPCount::DispatchWorkItem(bool*, bool*) + 151 15 libcoreclr.dylib 0x000000010946da20 ThreadpoolMgr::WorkerThreadStart(void*) + 800 16 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 17 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 18 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 25: 0 0x0000000106b784d0 ??? 1 0x0000000105d8f4c8 ??? 2 ??? 0x000000010fd02b46 ??? 3 ??? 0x000000010fcf1e27 ??? 4 libcoreclr.dylib 0x00000001094870ef MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519 5 libcoreclr.dylib 0x000000010949d650 QueueUserWorkItemManagedCallback(void*) + 160 6 libcoreclr.dylib 0x0000000109451d2b ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 315 7 libcoreclr.dylib 0x0000000109452310 ManagedThreadBase::ThreadPool(void (*)(void*), void*) + 32 8 libcoreclr.dylib 0x0000000109449477 ManagedPerAppDomainTPCount::DispatchWorkItem(bool*, bool*) + 151 9 libcoreclr.dylib 0x000000010946da20 ThreadpoolMgr::WorkerThreadStart(void*) + 800 10 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 11 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 12 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 26: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae46 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 246 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933f546 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 2102 5 libcoreclr.dylib 0x000000010933f738 PAL_WaitForSingleObjectPrioritized + 72 6 libcoreclr.dylib 0x0000000109563c20 CLRLifoSemaphore::Wait(unsigned int, unsigned int, unsigned int) + 560 7 libcoreclr.dylib 0x000000010946dc67 ThreadpoolMgr::WorkerThreadStart(void*) + 1383 8 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 9 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 10 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 27: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e78d2 __psynch_cvwait + 10 2 libcoreclr.dylib 0x000000010933ae46 CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 246 3 libcoreclr.dylib 0x000000010933ab4a CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 458 4 libcoreclr.dylib 0x000000010933fc4d SleepEx + 141 5 libcoreclr.dylib 0x00000001094d395f __SwitchToThread(unsigned int, unsigned int) + 15 6 libcoreclr.dylib 0x000000010946fbbc ThreadpoolMgr::GateThreadStart(void*) + 92 7 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 8 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 9 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 28: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e4f76 swtch_pri + 10 2 libcoreclr.dylib 0x000000010933fc5d SleepEx + 157 3 libcoreclr.dylib 0x0000000109563b2c CLRLifoSemaphore::Wait(unsigned int, unsigned int, unsigned int) + 316 4 libcoreclr.dylib 0x000000010946dc67 ThreadpoolMgr::WorkerThreadStart(void*) + 1383 5 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 6 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 7 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 29: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e4f76 swtch_pri + 10 2 libcoreclr.dylib 0x000000010933fc5d SleepEx + 157 3 libcoreclr.dylib 0x0000000109563b2c CLRLifoSemaphore::Wait(unsigned int, unsigned int, unsigned int) + 316 4 libcoreclr.dylib 0x000000010946dc67 ThreadpoolMgr::WorkerThreadStart(void*) + 1383 5 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 6 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 7 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 30: 0 runtime 0x00007ffdffbb6130 0x7ffdffbb4000 + 8496 1 runtime 0x00007ffdffbd9038 0x7ffdffbb4000 + 151608 2 runtime 0x00007ffdffbceae4 0x7ffdffbb4000 + 109284 3 ??? 0x00007ffe9694613c ??? 4 libsystem_kernel.dylib 0x00007fff202e7e32 __mprotect + 10 5 libcoreclr.dylib 0x000000010966a833 DebuggerController::ApplyPatch(DebuggerControllerPatch*) + 147 6 libcoreclr.dylib 0x000000010966b0c7 DebuggerController::AddBindAndActivatePatchForMethodDesc(MethodDesc*, DebuggerJitInfo*, unsigned long, DebuggerPatchKind, FramePointer, AppDomain*) + 455 7 libcoreclr.dylib 0x000000010966ae8a DebuggerController::AddBindAndActivateILSlavePatch(DebuggerControllerPatch*, DebuggerJitInfo*) + 266 8 libcoreclr.dylib 0x000000010966b2c8 DebuggerController::AddILPatch(AppDomain*, Module*, unsigned int, MethodDesc*, unsigned long, unsigned long, int) + 424 9 libcoreclr.dylib 0x000000010966ba39 DebuggerController::PatchTrace(TraceDestination*, FramePointer, bool) + 569 10 libcoreclr.dylib 0x00000001096727b5 DebuggerThreadStarter::TriggerTraceCall(Thread*, unsigned char const*) + 101 11 libcoreclr.dylib 0x000000010966d328 DebuggerController::DispatchTraceCall(Thread*, unsigned char const*) + 536 12 libcoreclr.dylib 0x000000010967b7fb Debugger::TraceCall(unsigned char const*) + 171 13 libcoreclr.dylib 0x0000000109486b79 MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 121 14 libcoreclr.dylib 0x000000010949d650 QueueUserWorkItemManagedCallback(void*) + 160 15 libcoreclr.dylib 0x0000000109451d2b ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 315 16 libcoreclr.dylib 0x0000000109452310 ManagedThreadBase::ThreadPool(void (*)(void*), void*) + 32 17 libcoreclr.dylib 0x0000000109449477 ManagedPerAppDomainTPCount::DispatchWorkItem(bool*, bool*) + 151 18 libcoreclr.dylib 0x000000010946da20 ThreadpoolMgr::WorkerThreadStart(void*) + 800 19 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 20 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 21 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 31: 0 runtime 0x00007ffdffbb6154 0x7ffdffbb4000 + 8532 1 runtime 0x00007ffdffbd9c08 0x7ffdffbb4000 + 154632 2 runtime 0x00007ffdffbdca60 0x7ffdffbb4000 + 166496 3 runtime 0x00007ffdffbc547c 0x7ffdffbb4000 + 70780 4 Rosetta Runtime Routines 0x0000000100e4b524 0x100e4a000 + 5412 5 0x0000000105d8f4c8 ??? 6 ??? 0x000000010fd02b46 ??? 7 ??? 0x000000010fcf1e27 ??? 8 libcoreclr.dylib 0x00000001094870ef MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519 9 libcoreclr.dylib 0x000000010949d650 QueueUserWorkItemManagedCallback(void*) + 160 10 libcoreclr.dylib 0x0000000109451d2b ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 315 11 libcoreclr.dylib 0x0000000109452310 ManagedThreadBase::ThreadPool(void (*)(void*), void*) + 32 12 libcoreclr.dylib 0x0000000109449477 ManagedPerAppDomainTPCount::DispatchWorkItem(bool*, bool*) + 151 13 libcoreclr.dylib 0x000000010946da20 ThreadpoolMgr::WorkerThreadStart(void*) + 800 14 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 15 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 16 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 32: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e4f76 swtch_pri + 10 2 libcoreclr.dylib 0x000000010933fc5d SleepEx + 157 3 libcoreclr.dylib 0x0000000109563b2c CLRLifoSemaphore::Wait(unsigned int, unsigned int, unsigned int) + 316 4 libcoreclr.dylib 0x000000010946dc67 ThreadpoolMgr::WorkerThreadStart(void*) + 1383 5 libcoreclr.dylib 0x000000010934604a CorUnix::CPalThread::ThreadEntry(void*) + 426 6 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 7 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 33: 0 ??? 0x00007ffe96946ab8 ??? 1 libsystem_kernel.dylib 0x00007fff202e588e read + 10 2 libcoreclr.dylib 0x0000000109345fbc CorUnix::CPalThread::ThreadEntry(void*) + 284 3 libsystem_pthread.dylib 0x00007fff20319950 _pthread_start + 224 4 libsystem_pthread.dylib 0x00007fff2031547b thread_start + 15 Thread 1 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000003 x2: 0x000000000000003c x3: 0x000000000000002c x4: 0x0000000000004903 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000016 x8: 0x00007ffdffc32000 x9: 0x0000000000000000 x10: 0x0000000108e592cf x11: 0x00007ffdffc1e530 x12: 0x00007ffdffc1e520 x13: 0x00007ffdffc198d3 x14: 0x0000000000000020 x15: 0x00000000ffffffff x16: 0xffffffffffffffe1 x17: 0x00007ffdffc0be14 x18: 0x0000000108e5bd41 x19: 0x0000000108e59220 x20: 0x00007ffdffc15cee x21: 0x0000000000000106 x22: 0x00007ffdffc15afc x23: 0x0000000108e5a270 x24: 0x0000000106b784d0 x25: 0x0000000000000903 x26: 0x000000010fcf1e21 x27: 0x0000000198864b90 x28: 0x000000000001542b fp: 0x0000000108e5a230 lr: 0x914a7ffdffc07364 sp: 0x0000000108e59210 pc: 0x00007ffdffc0736c cpsr: 0x60000000 far: 0x000000019a3e3ff0 esr: 0x56000080 Binary Images: 0x100e00000 - 0x100e0cfff +dotnet (0) /usr/local/share/dotnet/dotnet 0x109129000 - 0x109170fff +libhostfxr.dylib (0) <873A6D05-19EC-304E-A061-DB120EBBEF00> /usr/local/share/dotnet/host/fxr/5.0.2/libhostfxr.dylib 0x10921b000 - 0x10925bfff +libhostpolicy.dylib (0) <686DE6E4-C421-3F42-8935-127E48B6CBAB> /usr/local/share/dotnet/shared/Microsoft.NETCore.App/5.0.2/libhostpolicy.dylib 0x109301000 - 0x109812fff +libcoreclr.dylib (0) <82D7075A-4D92-3DCA-B705-A4C98C386868> /usr/local/share/dotnet/shared/Microsoft.NETCore.App/5.0.2/libcoreclr.dylib 0x10a460000 - 0x10a670fff +libclrjit.dylib (0) <894E5C59-93DE-3CF9-A55B-8B5100FB4D55> /usr/local/share/dotnet/shared/Microsoft.NETCore.App/5.0.2/libclrjit.dylib 0x10ab6f000 - 0x10ab79fff +libSystem.Native.dylib (0) /usr/local/share/dotnet/shared/Microsoft.NETCore.App/5.0.2/libSystem.Native.dylib 0x10f00b000 - 0x10f011fff +libSystem.Security.Cryptography.Native.Apple.dylib (0) /usr/local/share/dotnet/shared/Microsoft.NETCore.App/5.0.2/libSystem.Security.Cryptography.Native.Apple.dylib 0x200f4e000 - 0x200fe9fff dyld (832.7.3) <6C2F2A2A-B955-32DA-B95F-AB6BEDA03990> /usr/lib/dyld 0x7ffdffbb4000 - 0x7ffdffc27fff +runtime (203.30) <8CB36F45-E79B-3F91-93A6-08E503572C86> /Library/Apple/*/runtime 0x7fff2004d000 - 0x7fff2004efff libsystem_blocks.dylib (78) /usr/lib/system/libsystem_blocks.dylib 0x7fff2004f000 - 0x7fff20084fff libxpc.dylib (2038.80.3) <8A82E3B8-B19D-3E9C-A41C-FDE96895F18A> /usr/lib/system/libxpc.dylib 0x7fff20085000 - 0x7fff2009cfff libsystem_trace.dylib (1277.80.2) /usr/lib/system/libsystem_trace.dylib 0x7fff2009d000 - 0x7fff2013cfff libcorecrypto.dylib (1000.80.5) /usr/lib/system/libcorecrypto.dylib 0x7fff2013d000 - 0x7fff20169fff libsystem_malloc.dylib (317.40.8) <29C9BF0C-B7C5-3DA8-8E6B-34C5F6236D18> /usr/lib/system/libsystem_malloc.dylib 0x7fff2016a000 - 0x7fff201aefff libdispatch.dylib (1271.40.12) /usr/lib/system/libdispatch.dylib 0x7fff201af000 - 0x7fff201e8fff libobjc.A.dylib (818.2) <559A59B6-CDA9-3D3F-B4E3-E7BEF8928C85> /usr/lib/libobjc.A.dylib 0x7fff201e9000 - 0x7fff201ebfff libsystem_featureflags.dylib (28.60.1) <99DB8038-C2CB-3731-B573-F34771F42EDF> /usr/lib/system/libsystem_featureflags.dylib 0x7fff201ec000 - 0x7fff20274fff libsystem_c.dylib (1439.40.11) <262F817C-1001-3507-8C1C-4619FF469752> /usr/lib/system/libsystem_c.dylib 0x7fff20275000 - 0x7fff202cafff libc++.1.dylib (904.4) <7F57917C-8D39-3484-9712-01EEDE7417A9> /usr/lib/libc++.1.dylib 0x7fff202cb000 - 0x7fff202e3fff libc++abi.dylib (904.4) <3E75A08F-5348-38AB-B54A-67C913650D0E> /usr/lib/libc++abi.dylib 0x7fff202e4000 - 0x7fff20312fff libsystem_kernel.dylib (7195.80.30.121.1) <2C045CD1-899D-37B1-9A0C-4C07DB79B2CB> /usr/lib/system/libsystem_kernel.dylib 0x7fff20313000 - 0x7fff2031efff libsystem_pthread.dylib (454.80.1) /usr/lib/system/libsystem_pthread.dylib 0x7fff2031f000 - 0x7fff20359fff libdyld.dylib (832.7.3) /usr/lib/system/libdyld.dylib 0x7fff2035a000 - 0x7fff20363fff libsystem_platform.dylib (254.80.2) <85ACE712-C05D-39C1-BE37-E6F41D80E30F> /usr/lib/system/libsystem_platform.dylib 0x7fff20364000 - 0x7fff2038ffff libsystem_info.dylib (542.40.3) <9A52376C-64FD-37CA-8ED1-A32C29B0E12D> /usr/lib/system/libsystem_info.dylib 0x7fff20390000 - 0x7fff2082bfff com.apple.CoreFoundation (6.9 - 1774.101) <399F90DF-2806-3374-928D-FA5B601A6118> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7fff2082c000 - 0x7fff20a5bfff com.apple.LaunchServices (1122.11 - 1122.11) <98B9931B-11E3-3397-80D4-B7A22AF99022> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 0x7fff20a5c000 - 0x7fff20b2ffff com.apple.gpusw.MetalTools (1.0 - 1) /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools 0x7fff20b30000 - 0x7fff20cc8fff libBLAS.dylib (1336.40.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x7fff20cc9000 - 0x7fff20d16fff com.apple.Lexicon-framework (1.0 - 86.1) <56AFBE27-9BB8-3AED-8D69-C730988F074F> /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon 0x7fff20d17000 - 0x7fff20d85fff libSparse.dylib (106) <3522881B-799F-3BC7-871A-1D3BC89D4999> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib 0x7fff20d86000 - 0x7fff20e03fff com.apple.SystemConfiguration (1.20 - 1.20) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x7fff20e04000 - 0x7fff20e39fff libCRFSuite.dylib (50) <3B62190E-8DAA-3F8C-9304-1A93F0EA527F> /usr/lib/libCRFSuite.dylib 0x7fff20e3a000 - 0x7fff21071fff libmecabra.dylib (929.1.1) /usr/lib/libmecabra.dylib 0x7fff21072000 - 0x7fff213d5fff com.apple.Foundation (6.9 - 1774.101) <954313D7-5848-3EA6-A3F2-40ED642858B3> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x7fff213d6000 - 0x7fff214c2fff com.apple.LanguageModeling (1.0 - 247.1) /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling 0x7fff220f9000 - 0x7fff2244afff com.apple.security (7.0 - 59754.80.3) <0F2DA35A-D17F-365E-A9C9-BD1D464C4B04> /System/Library/Frameworks/Security.framework/Versions/A/Security 0x7fff2244b000 - 0x7fff226acfff libicucore.A.dylib (66109) /usr/lib/libicucore.A.dylib 0x7fff226ad000 - 0x7fff226b6fff libsystem_darwin.dylib (1439.40.11) /usr/lib/system/libsystem_darwin.dylib 0x7fff226b7000 - 0x7fff2299efff com.apple.CoreServices.CarbonCore (1307 - 1307) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x7fff229de000 - 0x7fff22a18fff com.apple.CSStore (1122.11 - 1122.11) <36C0929C-4EED-3F1E-B2AC-559140BA09C4> /System/Library/PrivateFrameworks/CoreServicesStore.framework/Versions/A/CoreServicesStore 0x7fff22a19000 - 0x7fff22ac7fff com.apple.framework.IOKit (2.0.2 - 1845.80.4.121.1) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x7fff22ac8000 - 0x7fff22ad3fff libsystem_notify.dylib (279.40.4) <737C80C5-2512-3318-A19D-E109C2629E4E> /usr/lib/system/libsystem_notify.dylib 0x7fff23f42000 - 0x7fff24585fff libnetwork.dylib (2288.80.2) <68F54925-FB86-3C61-9CAD-495EA5AB4A32> /usr/lib/libnetwork.dylib 0x7fff24586000 - 0x7fff24a23fff com.apple.CFNetwork (1220.1 - 1220.1) <4FF543B5-6C5E-3FF7-9092-413D36172D23> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x7fff24a24000 - 0x7fff24a32fff libsystem_networkextension.dylib (1295.80.3) /usr/lib/system/libsystem_networkextension.dylib 0x7fff24a33000 - 0x7fff24a33fff libenergytrace.dylib (22) <00F45D24-F31C-375F-A0FF-32FD77FE3FB1> /usr/lib/libenergytrace.dylib 0x7fff24a34000 - 0x7fff24a8ffff libMobileGestalt.dylib (978.80.1) /usr/lib/libMobileGestalt.dylib 0x7fff24a90000 - 0x7fff24aa6fff libsystem_asl.dylib (385) <2172F99B-EF61-39FB-B109-A3C7EB843FF8> /usr/lib/system/libsystem_asl.dylib 0x7fff24aa7000 - 0x7fff24abefff com.apple.TCC (1.0 - 1) <1493890F-19D1-3AC1-AF36-845A531CED7A> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC 0x7fff25e25000 - 0x7fff25fdcfff libsqlite3.dylib (321.1) /usr/lib/libsqlite3.dylib 0x7fff26141000 - 0x7fff261b6fff com.apple.AE (918.0.1 - 918.0.1) <608885DC-D6BE-3592-928E-F9C21BB9A3D2> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE 0x7fff261b7000 - 0x7fff261bdfff libdns_services.dylib (1310.80.1) /usr/lib/libdns_services.dylib 0x7fff261be000 - 0x7fff261c5fff libsystem_symptoms.dylib (1431.40.36) <5A0A333B-8487-3C6F-AD90-D10F7D86D24F> /usr/lib/system/libsystem_symptoms.dylib 0x7fff2634b000 - 0x7fff2636ffff com.apple.analyticsd (1.0 - 1) <99437FBA-B3F5-3393-8E08-8520C70343E3> /System/Library/PrivateFrameworks/CoreAnalytics.framework/Versions/A/CoreAnalytics 0x7fff26370000 - 0x7fff26372fff libDiagnosticMessagesClient.dylib (112) /usr/lib/libDiagnosticMessagesClient.dylib 0x7fff26373000 - 0x7fff263bffff com.apple.spotlight.metadata.utilities (1.0 - 2150.7.5) <91CDA95A-DAD3-3012-92A3-F52A3058B393> /System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities 0x7fff263c0000 - 0x7fff2645afff com.apple.Metadata (10.7.0 - 2150.7.5) <53A7DA87-64E6-340A-8F2A-EEA7843AC3D3> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata 0x7fff2645b000 - 0x7fff26461fff com.apple.DiskArbitration (2.7 - 2.7) <21289670-8C6D-3732-BA09-39DAB66CAD90> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x7fff26462000 - 0x7fff26deafff com.apple.vImage (8.1 - 544.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x7fff27332000 - 0x7fff27341fff com.apple.OpenDirectory (11.2 - 230.40.1) /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory 0x7fff27342000 - 0x7fff27361fff com.apple.CFOpenDirectory (11.2 - 230.40.1) /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory 0x7fff27362000 - 0x7fff2736afff com.apple.CoreServices.FSEvents (1290.40.2 - 1290.40.2) <8C01AC74-F450-36AC-9503-A8FE7829FFEB> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents 0x7fff2736b000 - 0x7fff2738ffff com.apple.coreservices.SharedFileList (144 - 144) <4ED4172F-C165-35E4-8A50-0ACEF0885B53> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList 0x7fff27390000 - 0x7fff27392fff libapp_launch_measurement.dylib (14.1) /usr/lib/libapp_launch_measurement.dylib 0x7fff27393000 - 0x7fff273dbfff com.apple.CoreAutoLayout (1.0 - 21.10.1) /System/Library/PrivateFrameworks/CoreAutoLayout.framework/Versions/A/CoreAutoLayout 0x7fff273dc000 - 0x7fff274befff libxml2.2.dylib (34.9) <3B63D15D-D038-3509-94AC-FCE972EBA979> /usr/lib/libxml2.2.dylib 0x7fff284f0000 - 0x7fff28500fff libsystem_containermanager.dylib (318.80.2) /usr/lib/system/libsystem_containermanager.dylib 0x7fff28501000 - 0x7fff28512fff com.apple.IOSurface (289.3 - 289.3) /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface 0x7fff28513000 - 0x7fff2851bfff com.apple.IOAccelerator (439.52 - 439.52) <6C2F9FD8-8A19-30EC-A507-3F008775DDBE> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator 0x7fff2851c000 - 0x7fff28641fff com.apple.Metal (244.32.7 - 244.32.7) <328CD369-693D-3263-8A16-302790F060D6> /System/Library/Frameworks/Metal.framework/Versions/A/Metal 0x7fff29247000 - 0x7fff292a1fff com.apple.MetalPerformanceShaders.MPSCore (1.0 - 1) <96E056EA-20CE-3EA8-8370-BF91EC24BDCA> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSCore.framework/Versions/A/MPSCore 0x7fff292a2000 - 0x7fff292a5fff libsystem_configuration.dylib (1109.60.2) <95ECC616-2F1A-3130-BAE6-189486DBCDE7> /usr/lib/system/libsystem_configuration.dylib 0x7fff292a6000 - 0x7fff292aafff libsystem_sandbox.dylib (1441.60.4) <9D7CACFC-3A61-3577-ABCB-A80D4DDC4289> /usr/lib/system/libsystem_sandbox.dylib 0x7fff292ab000 - 0x7fff292acfff com.apple.AggregateDictionary (1.0 - 1) <20FE0CB1-AB24-3B93-8DB2-445DDA5050E4> /System/Library/PrivateFrameworks/AggregateDictionary.framework/Versions/A/AggregateDictionary 0x7fff292ad000 - 0x7fff292b0fff com.apple.AppleSystemInfo (3.1.5 - 3.1.5) /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo 0x7fff292b1000 - 0x7fff292b2fff liblangid.dylib (136) <3B58996B-62B0-3D5D-A9C3-9C1FEEF3C76C> /usr/lib/liblangid.dylib 0x7fff292b3000 - 0x7fff29353fff com.apple.CoreNLP (1.0 - 245.1) /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP 0x7fff29354000 - 0x7fff2935afff com.apple.LinguisticData (1.0 - 399) <414F54FC-AFBE-35D1-82F6-8A62D04446CE> /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData 0x7fff2935b000 - 0x7fff29962fff libBNNS.dylib (288.80.1) <1536CDA2-EE6B-3D25-AEB0-FF3468C3883B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib 0x7fff29963000 - 0x7fff29af3fff libvDSP.dylib (760.40.6) <9D90DE5F-72DC-3334-9010-C79BA93CADF6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x7fff29af4000 - 0x7fff29b06fff com.apple.CoreEmoji (1.0 - 128) /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji 0x7fff29b07000 - 0x7fff29b11fff com.apple.IOMobileFramebuffer (343.0.0 - 343.0.0) /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/Versions/A/IOMobileFramebuffer 0x7fff29e19000 - 0x7fff29ea5fff com.apple.securityfoundation (6.0 - 55240.40.4) <69D215A3-C518-39CB-89D2-FBB046038016> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation 0x7fff29ea6000 - 0x7fff29eaffff com.apple.coreservices.BackgroundTaskManagement (1.0 - 104) <86ED9C4E-A9BF-3842-A2B0-FB3DE2D6547D> /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement 0x7fff29eb0000 - 0x7fff29eb4fff com.apple.xpc.ServiceManagement (1.0 - 1) <972D4A9B-EFDF-322C-AC2E-827E432694CB> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement 0x7fff29eb5000 - 0x7fff29eb7fff libquarantine.dylib (119.40.2) <44B965FA-2349-34EF-8665-39A78C57B0EC> /usr/lib/system/libquarantine.dylib 0x7fff29eb8000 - 0x7fff29ec3fff libCheckFix.dylib (31) <74754677-4EB3-3DF3-BD42-981BB85F535A> /usr/lib/libCheckFix.dylib 0x7fff29ec4000 - 0x7fff29edbfff libcoretls.dylib (169) <6F2FA7D8-3EA4-37B8-B2B6-1C5FAD0932B6> /usr/lib/libcoretls.dylib 0x7fff29edc000 - 0x7fff29eecfff libbsm.0.dylib (68.40.1) /usr/lib/libbsm.0.dylib 0x7fff29eed000 - 0x7fff29f36fff libmecab.dylib (929.1.1) <2B582AFC-C8C3-3B23-9742-F41733071B25> /usr/lib/libmecab.dylib 0x7fff29f37000 - 0x7fff29f3cfff libgermantok.dylib (24) /usr/lib/libgermantok.dylib 0x7fff29f3d000 - 0x7fff29f53fff libLinearAlgebra.dylib (1336.40.1) <2B9F0828-82CD-3030-B15B-325D3034E00C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib 0x7fff29f54000 - 0x7fff2a17bfff com.apple.MetalPerformanceShaders.MPSNeuralNetwork (1.0 - 1) <73C1BAC7-3308-3128-80F5-A959CD35F6EB> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSNeuralNetwork.framework/Versions/A/MPSNeuralNetwork 0x7fff2a17c000 - 0x7fff2a1cbfff com.apple.MetalPerformanceShaders.MPSRayIntersector (1.0 - 1) <0968FCEA-1E8E-362B-AAF8-984ADE0F7A99> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSRayIntersector.framework/Versions/A/MPSRayIntersector 0x7fff2a1cc000 - 0x7fff2a313fff com.apple.MLCompute (1.0 - 1) <68BC268E-6012-3961-A0AE-4282F4C42FE6> /System/Library/Frameworks/MLCompute.framework/Versions/A/MLCompute 0x7fff2a314000 - 0x7fff2a34afff com.apple.MetalPerformanceShaders.MPSMatrix (1.0 - 1) <79650A3E-A414-34F2-A97F-A784C08BBB3C> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSMatrix.framework/Versions/A/MPSMatrix 0x7fff2a34b000 - 0x7fff2a388fff com.apple.MetalPerformanceShaders.MPSNDArray (1.0 - 1) <9FD860E6-48E6-3210-A182-9BFFC62099BE> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSNDArray.framework/Versions/A/MPSNDArray 0x7fff2a389000 - 0x7fff2a419fff com.apple.MetalPerformanceShaders.MPSImage (1.0 - 1) <31F44531-D128-3668-9065-A12504B90DF4> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSImage.framework/Versions/A/MPSImage 0x7fff2a41a000 - 0x7fff2a429fff com.apple.AppleFSCompression (125 - 1.0) <55F93CCF-7002-3E1D-9C5D-EB9A75508EE3> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression 0x7fff2a42a000 - 0x7fff2a437fff libbz2.1.0.dylib (44) <3CA285A4-30BA-361C-AD7A-F40FF908300A> /usr/lib/libbz2.1.0.dylib 0x7fff2a438000 - 0x7fff2a43cfff libsystem_coreservices.dylib (127) <77716403-46C6-3258-8AC1-0F89D637FAF0> /usr/lib/system/libsystem_coreservices.dylib 0x7fff2a43d000 - 0x7fff2a46afff com.apple.CoreServices.OSServices (1122.11 - 1122.11) <5B3072BE-8D2A-3144-929E-D909583A76B8> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices 0x7fff2a640000 - 0x7fff2a652fff libz.1.dylib (76) /usr/lib/libz.1.dylib 0x7fff2a653000 - 0x7fff2a69efff libsystem_m.dylib (3186.40.2) <56FE02B6-44E8-3C68-8B0A-C8B0D62284BC> /usr/lib/system/libsystem_m.dylib 0x7fff2a69f000 - 0x7fff2a69ffff libcharset.1.dylib (59) <9205FB5B-6877-363F-B26A-5A1C39DC25C3> /usr/lib/libcharset.1.dylib 0x7fff2a6a0000 - 0x7fff2a6a5fff libmacho.dylib (973.4) <777ECCCB-A970-35B8-9311-8671F21BA24C> /usr/lib/system/libmacho.dylib 0x7fff2a6a6000 - 0x7fff2a6c1fff libkxld.dylib (7195.80.30.121.1) <1508F910-E215-3BB2-80BD-CA81E74D264B> /usr/lib/system/libkxld.dylib 0x7fff2a6c2000 - 0x7fff2a6cdfff libcommonCrypto.dylib (60178.40.2) <82FCCB5F-5231-3995-A47B-406756710468> /usr/lib/system/libcommonCrypto.dylib 0x7fff2a6ce000 - 0x7fff2a6d8fff libunwind.dylib (200.10) <940DD62D-3AFB-37F5-A25C-8CEB2617D242> /usr/lib/system/libunwind.dylib 0x7fff2a6d9000 - 0x7fff2a6e0fff liboah.dylib (203.30) /usr/lib/liboah.dylib 0x7fff2a6e1000 - 0x7fff2a6ebfff libcopyfile.dylib (173.40.2) <34396208-0285-36FA-9043-B6A1052C036A> /usr/lib/system/libcopyfile.dylib 0x7fff2a6ec000 - 0x7fff2a6f3fff libcompiler_rt.dylib (102.2) <22A47271-A482-34ED-944F-C8F003409D11> /usr/lib/system/libcompiler_rt.dylib 0x7fff2a6f4000 - 0x7fff2a6f6fff libsystem_collections.dylib (1439.40.11) <2F2F5E9B-F9F9-3CBA-9F75-10AC74DD2F78> /usr/lib/system/libsystem_collections.dylib 0x7fff2a6f7000 - 0x7fff2a6f9fff libsystem_secinit.dylib (87.60.1) <6AE9E817-0EE6-33F6-99D1-F859EA228986> /usr/lib/system/libsystem_secinit.dylib 0x7fff2a6fa000 - 0x7fff2a6fcfff libremovefile.dylib (49.40.3) /usr/lib/system/libremovefile.dylib 0x7fff2a6fd000 - 0x7fff2a6fdfff libkeymgr.dylib (31) /usr/lib/system/libkeymgr.dylib 0x7fff2a6fe000 - 0x7fff2a705fff libsystem_dnssd.dylib (1310.80.1) <19DE0EBA-504C-358D-8A4D-D643DEA0E1B7> /usr/lib/system/libsystem_dnssd.dylib 0x7fff2a706000 - 0x7fff2a70bfff libcache.dylib (83) /usr/lib/system/libcache.dylib 0x7fff2a70c000 - 0x7fff2a70dfff libSystem.B.dylib (1292.60.1) /usr/lib/libSystem.B.dylib 0x7fff2a70e000 - 0x7fff2a711fff libfakelink.dylib (3) /usr/lib/libfakelink.dylib 0x7fff2a712000 - 0x7fff2a712fff com.apple.SoftLinking (1.0 - 1) <347BD0EA-0A3E-3DA9-8578-DEECE901F395> /System/Library/PrivateFrameworks/SoftLinking.framework/Versions/A/SoftLinking 0x7fff2a713000 - 0x7fff2a74afff libpcap.A.dylib (98.40.1) <890105B3-FC72-35F5-83BA-5B74E33C3640> /usr/lib/libpcap.A.dylib 0x7fff2a74b000 - 0x7fff2a83bfff libiconv.2.dylib (59) /usr/lib/libiconv.2.dylib 0x7fff2a83c000 - 0x7fff2a84dfff libcmph.dylib (8) <365619EF-CCAE-3711-8055-940B7E7BAF5A> /usr/lib/libcmph.dylib 0x7fff2a84e000 - 0x7fff2a8bffff libarchive.2.dylib (83.40.4) /usr/lib/libarchive.2.dylib 0x7fff2a8c0000 - 0x7fff2a927fff com.apple.SearchKit (1.4.1 - 1.4.1) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit 0x7fff2a928000 - 0x7fff2a929fff libThaiTokenizer.dylib (3) /usr/lib/libThaiTokenizer.dylib 0x7fff2a92a000 - 0x7fff2a951fff com.apple.applesauce (1.0 - 16.26) /System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce 0x7fff2a952000 - 0x7fff2a969fff libapple_nghttp2.dylib (1.41) /usr/lib/libapple_nghttp2.dylib 0x7fff2a96a000 - 0x7fff2a97cfff libSparseBLAS.dylib (1336.40.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib 0x7fff2a97d000 - 0x7fff2a97efff com.apple.MetalPerformanceShaders.MetalPerformanceShaders (1.0 - 1) /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders 0x7fff2a97f000 - 0x7fff2a983fff libpam.2.dylib (28.40.1) /usr/lib/libpam.2.dylib 0x7fff2a984000 - 0x7fff2a99cfff libcompression.dylib (96.40.6) <085C87FF-F438-363B-BCA3-F319747AEC45> /usr/lib/libcompression.dylib 0x7fff2a99d000 - 0x7fff2a9a2fff libQuadrature.dylib (7) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib 0x7fff2a9a3000 - 0x7fff2ad4dfff libLAPACK.dylib (1336.40.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x7fff2ad4e000 - 0x7fff2ad9cfff com.apple.DictionaryServices (1.2 - 341) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices 0x7fff2ad9d000 - 0x7fff2adb5fff liblzma.5.dylib (16) /usr/lib/liblzma.5.dylib 0x7fff2adb6000 - 0x7fff2adb7fff libcoretls_cfhelpers.dylib (169) <3B19F980-E215-3C97-8AB5-DF61DC450D04> /usr/lib/libcoretls_cfhelpers.dylib 0x7fff2adb8000 - 0x7fff2aeb2fff com.apple.APFS (1677.80.8 - 1677.80.8) /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS 0x7fff2aeb3000 - 0x7fff2aec0fff libxar.1.dylib (452) /usr/lib/libxar.1.dylib 0x7fff2aec1000 - 0x7fff2aec4fff libutil.dylib (58.40.2) /usr/lib/libutil.dylib 0x7fff2aec5000 - 0x7fff2aeedfff libxslt.1.dylib (17.3) /usr/lib/libxslt.1.dylib 0x7fff2aeee000 - 0x7fff2aef8fff libChineseTokenizer.dylib (37) /usr/lib/libChineseTokenizer.dylib 0x7fff2aef9000 - 0x7fff2b071fff libvMisc.dylib (760.40.6) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x7fff2e0e0000 - 0x7fff2e0e0fff liblaunch.dylib (2038.80.3) <67A6DFFC-8BB4-3D1B-8A5B-7B3EDA332CA5> /usr/lib/system/liblaunch.dylib 0x7fff30594000 - 0x7fff30594fff libsystem_product_info_filter.dylib (8.40.1) /usr/lib/system/libsystem_product_info_filter.dylib 0x7fff3066f000 - 0x7fff3066ffff com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) <7A6BDD87-91EE-3D5C-8FA4-6861B12EBA29> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x7fff30696000 - 0x7fff30696fff com.apple.CoreServices (1122.11 - 1122.11) <547F7EBE-C8E8-385B-801D-53CE01124CE9> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x7fff30964000 - 0x7fff30964fff com.apple.Accelerate (1.11 - Accelerate 1.11) <40317321-FF2B-38B7-B584-7CC4C5F5A889> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x7fff6d07f000 - 0x7fff6d085fff libCoreFSCache.dylib (177.22) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 1 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 87815 thread_create: 0 thread_set_state: 0 VM Region Summary: ReadOnly portion of Libraries: Total=600.3M resident=0K(0%) swapped_out_or_unallocated=600.3M(100%) Writable regions: Total=1.4G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.4G(100%) VIRTUAL REGION REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 256K 1 Dispatch continuations 64.0M 1 Kernel Alloc Once 8K 1 MALLOC 158.1M 38 MALLOC guard page 96K 4 MALLOC_MEDIUM (reserved) 944.0M 8 reserved VM address space (unallocated) Rosetta Arena 2048K 1 Rosetta Generic 12.1M 3100 Rosetta JIT 128.0M 1 Rosetta Return Stack 480K 48 Rosetta Thread Context 480K 48 STACK GUARD 4K 1 Stack 23.7M 33 Stack Guard 56.1M 32 VM_ALLOCATE 21.8G 8265 VM_ALLOCATE (reserved) 256K 3 reserved VM address space (unallocated) __DATA 3040K 153 __DATA_CONST 6342K 94 __DATA_DIRTY 289K 59 __LINKEDIT 508.8M 12 __OBJC_RO 60.4M 1 __OBJC_RW 2450K 2 __TEXT 91.5M 153 __UNICODE 588K 1 mapped file 4.1G 839 shared memory 64K 4 unshared pmap 3072K 2 =========== ======= ======= TOTAL 27.9G 12905 TOTAL, minus reserved VM space 27.0G 12905 Model: MacBookPro17,1, BootROM 6723.80.17, proc 8:4:4 processors, 16 GB, SMC Graphics: kHW_AppleM1Item, Apple M1, spdisplays_builtin Memory Module: lp_ddr4 AirPort: spairport_wireless_card_type_airport_extreme, wl0: Dec 31 2020 21:39:03 version 18.20.222.20.7.8.104 FWID 01-1b2645bc Bluetooth: Version 8.0.3d8, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 USB Device: USB 3.1 Bus USB Device: USB 3.1 Bus USB Device: 4-Port USB 3.0 Hub USB Device: USB3.0 Card Reader USB Device: 4-Port USB 2.0 Hub USB Device: USB 2.0 Hub USB Device: USB 2.0 BILLBOARD Thunderbolt Bus: MacBook Pro, Apple Inc. Thunderbolt Bus: MacBook Pro, Apple Inc. ```
ilushka85 commented 3 years ago

@richlander this means about another year of slowness of .net for m1 when competing platforms like Java have already had native support for weeks. What is the issue of trying to move native in 5.0. Can someone try to apply the changes to 5.0 and see how far off it is for native ?

Kind regards, Ilya Beyrak | Founder & CEO Resultly LLC. (p) 312.273.9401 (m) 847.912.1212 (w) www.result.ly ( http://www.result.ly/ )

Sent via Superhuman iOS ( https://sprh.mn/?vip=ilya@resultly.com )

On Thu, Jan 14 2021 at 10:54 AM, Rich Lander < notifications@github.com > wrote:

@zwarich ( https://github.com/zwarich ) -- good question. I'm not up to date on 11.2 beta. I'll pass to the question to @janvorli ( https://github.com/janvorli ). Do we need to make any changes to .NET x64 to enable correct and optimal operation in R2?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub ( https://github.com/dotnet/runtime/issues/44897#issuecomment-760323940 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AASG62LBT6L6ULTL7KL6K7LSZ4OVJANCNFSM4T2RPPWQ ).

lemonmojo commented 3 years ago

@ilushka85 100% this! I'm kind of stunned by this decision and still in disbelieve that there won't be official native support by MS for a long time while the rest of the world has either already completed the transition or is close to doing so. Just to make this very clear: You're not hurting Apple or it's platforms with your decision but your own developers and users of their apps. Users don't care which development framework an app uses, they care very much about an app being native and fast though. So I sincerely hope that you can escape your bubble ASAP and realize that reality has moved on since you last checked.

DruSatori commented 3 years ago

For what it is worth, as a Windows on ARM user as well ( Surface Pro X ), even there, .NET support is relatively weak. VS is not native. There is little to no .NET ARM64 debugger support on Windows on ARM. So while it is an annoying situation, I think we need to maintain a bit of perspective. As of right now, it looks like the Apple Silicon support will arrive before fully Windows on ARM support really does. ( only sort of tongue in cheek )

GiorgioG commented 3 years ago

As the owner of a new M1 MacBook Air this is pretty disappointing. I do my day to day work on a desktop PC, but my laptop for everything else.

I've recommended .NET Core to friends who run a startup and been running happily on Intel Macs (no PCs at all in this shop) for 2+ years with no problems. Fast forward to today, with most of their MacBooks exhibiting the butterfly keyboard problems, they upgraded to M1 MacBook Pros. I should have just recommended they used Elixir. Come on Microsoft - this can't wait till November/6.0.

zwarich commented 3 years ago

@nixxholas I haven't seen any reports of problems like that before. Is it possible for you to file an issue with Feedback Assistant that includes all of the the binaries required to reproduce that issue? If so, it would be greatly appreciated and would accelerate a fix.

ilushka85 commented 3 years ago

For what it is worth, as a Windows on ARM user as well ( Surface Pro X ), even there, .NET support is relatively weak. VS is not native. There is little to no .NET ARM64 debugger support on Windows on ARM. So while it is an annoying situation, I think we need to maintain a bit of perspective. As of right now, it looks like the Apple Silicon support will arrive before fully Windows on ARM support really does. ( only sort of tongue in cheek )

I dont think its acceptable that there is no support on Windows on Arm for the debugger. But visual studio has proven to be junk in recent years while staying windows only and 32 bit... This is where rider truly shines. But the fact that the .net platform itself is going to take a year to even consider launching on native apple silicon is troubling when every other platform has done it.

The fact that the m1 support is there in 6.0 and its just a decision of we dont want to back port to 5.0... considering the changes are not even that great.

richlander commented 3 years ago

I understand that people want Apple M1 support now/yesterday. We're working as quickly as we can. I'm hoping that the experience is fully functional and stable by about .NET 6.0 Preview 4. Some of the Apple M1 chip characteristics have required us to make significant changes, above and beyond our existing quite functional Arm64 support. It's possible that other development platforms had fewer changes to make. We'll likely do a blog post on this to help contextualize our project.

Some of the comments suggested company politics are the cause of the delay. That is absolutely untrue. On the .NET Team, we have a great relationship with Apple and very much want .NET running natively on M1 chips ASAP. We have been working directly with Apple engineers to that end. They are very talented and have offered us significant help. I can assure you the only Microsoft company direction we are getting is to "go faster".

Windows Arm64 -- also raised in the comments -- is another similar project. The two projects have different needs, and so are largely not bottlenecked on the same people. The only place were we do have some (human) resource contention is the Visual Studio debugger. We're working on that.

The first big description of where we are at will be 6.0 Preview 1. That's targeted for somewhere around 2/9.

GiorgioG commented 3 years ago

@richlander We all appreciate the effort and difficulty in getting .NET Core fully supported on M1, but waiting until November is completely unrealistic for folks who need to ship code.

.NET has a big perception problem in the open source / startup community where it's seen as a framework/system for large enterprises. With .NET Core Microsoft has made huge inroads in changing that perception, but decisions like this just flat out hurt new .NET adoption.

Folks aren't going to wait around for 10 months before they can ship code on a non beta/preview release. Especially as Apple starts shipping more and more Apple Silicon machines. .NET 5.X on Apple Silicon should be a priority.

This decision gives an already reluctant community (startups, open source projects, etc.) less reason to even consider .NET Core. Go released a beta with native M1 support in December Rust is also making significant inroads to supporting Apple Silicon. Meanwhile Microsoft is going to take it's sweet time and I guess those of us with these amazing new machines are supposed to just wait around for 10 months. No, we don't want to be your 6.0 alpha/beta testers.

ilushka85 commented 3 years ago

@richlander why not attempt to prioritize even a beta 5.0 version with support for m1? I think @GiorgioG comments highlight some of the recent issues with inroads and backwardness in .net with the move to 5.0 and even azure alignment.

.Net 5 was released in December and yet there is still no support in Azure Functions for it. You would think that the alignment of .net / functions / Microsoft / azure would mean these things are coordinated together but the fact that we are here months after a release with no solution for azure functions is troubling.

Now the position of we won't try to get native support out til the next framework version a year away is just crazy.... When will azure functions support 6.0 by the way?

Realistically speaking what would it take to attempt to move the changes for m1 to the 5.0 branch? What can we do to help ?

sandreenko commented 3 years ago

What can we do to help?

Build your apps with the master branch and ship them as self-contained? Btw why do you need native support if apple's emulator is great?

ilushka85 commented 3 years ago

What can we do to help?

Build your apps with the master branch and ship them as self-contained? Btw why do you need native support if apple's emulator is great?

Is this a real response? Most of us are developers and trying to use these machines for development. Apples great emulator until beta 2 a couple of days ago didn't even work with .net for starters. Second of all while rosetta two works "great" its still not anywhere near native speed especially for jit apps like .net / java. The performance is staggering and makes working as a developer in .net on these machines unnecessarily hard.

And your suggestion of even using the latest nightlies of .net 6 is flawed... have you tried .net 6? Do you think it works well ? I want to spend my time developing and debugging my app not figuring out why .net 6 doesnt work(it shouldn't its not done)

GiorgioG commented 3 years ago

Btw why do you need native support if apple's emulator is great?

I'd be happy if .NET Core worked in any fashion in the short term. But I do need .NET Core to work for development on M1 machines.

richlander commented 3 years ago

@richlander We all appreciate the effort and difficulty in getting .NET Core fully supported on M1, but waiting until November is completely unrealistic for folks who need to ship code

Let's test an assumption I have. My assumption is that the vast majority of people using .NET on macOS are building web sites, as opposed to client apps. If folks are building web sites, then .NET 5.0 as-is seems perfectly satisfactory. I agree that it is not awesome, but it hasn't made .NET worse. In fact, if you believe Apple's marketing, it will run better than on x64 machines. If folks have performance metrics that demonstrate emulated .NET running worse on M1 machines, that would be super helpful.

For folks building client apps, that's different. I'd like to learn more about people using .NET (not Xamarin) to build macOS client apps. That information would help.

merken commented 3 years ago

@richlander @GiorgioG Just my opinion, .NET 5 (and even Core 3.1) on Rosetta seems to be an acceptable mitigation in the wait for native support.

About those metrics, please provide some test scenario's/instructions and I'm happy to benchmark between a MBP16 i7 and an MBA M1

mcoolidge commented 3 years ago

FWIW, I was able to debug my asp.net core 3.1 app on M1, but the performance seems to be about 10% as fast as a native x86 system. This is purely from a development perspective and not release performance.

Some observations:

If I can help/test anything just let me know.

UPDATE: migrating to .net 5.0 demonstrates the same behavior.

richlander commented 3 years ago

About those metrics, please provide some test scenario's/instructions

Thanks for the offer. That said, I'm more interested in people's real-world experiences as opposed to synthetic benchmarks.

@mcoolidge -- thanks for the report. We'll see if we can repro that. Do you mean that you are running an ASP.NET Core service, and that when you call it (say with curl) that it is very slow or unresponsive?

mcoolidge commented 3 years ago

I am debugging an asp.net core web api + SPA. The services called from the JS side are much slower and I can see some of the dotnet debug logging running much slower. It's not really practical to use for development. Also, the SPA proxy stops working sporadically but works after restarting.

For now, my workaround is to use remote debug with a windows box and accessing the page on the mac.

If needed, I can do some profiling on the m1 (if someone can point me in the right direction).

richlander commented 3 years ago

Thanks @mcoolidge. That's enough for now. I'll talk with folks tomorrow (today is a holiday).

GiorgioG commented 3 years ago

@richlander, like @mcoolidge I'm also working on an asp.net core web api project + SPA. Being unable to debug is a showstopper.

janvorli commented 3 years ago

@GiorgioG what does it mean "being unable to debug" in your case? Do you experience similar issues as @mcoolidge or some other problems? And are you running on the macOS 11.2 beta 2?

GiorgioG commented 3 years ago

@janvorli - Apologies for the late response - I was running macOS 11.1. Upgrading to the 11.2 beta appears to have resolved the issue of being unable to debug (in VS for Mac as well as JetBrains Rider.)

janvorli commented 3 years ago

@GiorgioG thank you for confirming that it works for you with the latest macOS beta.

mcoolidge commented 3 years ago

A quick update: Running the new macOS Beta does seem to help with crashes, but performance is still pretty bad. Even when using dotnet run, the API responses are rather sluggish and I often see:

Heartbeat took longer than "00:00:01" at "01/27/2021 16:06:30 +00:00". This could be caused by thread pool starvation.`

janvorli commented 3 years ago

@mcoolidge if you run your application without a debugger, do you get the same performance issues? We've had some problems with app being sluggish on x64 mac when running under a debugger in the past and I wonder if this could be related.

mcoolidge commented 3 years ago

I see the same from doing debug or just "dotnet run".

Do you mean using a different configuration? I don't think running the command attaches a debugger, but I might be wrong.

janvorli commented 3 years ago

No, I meant just "dotnet run".

peterprice commented 3 years ago

@janvorli - my observation is that dotnet applications have good performance on M1 without the debugger attached, but they're quite slow with the debugger attached.

danwalmsley commented 3 years ago

Im often randomly getting:

this is with latest OSX 11.2 update. .net 5

assertion failed [code_fragment->kind == CodeFragmentKind::InvalidJit]: metadata kind is not CodeFragmentKind::InvalidJit (TranslationCacheJit.cpp:262 handle_jit_breakpoint)

matthewbluezyoncom commented 3 years ago

I've come up with a workaround for the Apple Silicon M1 debugging problems on BigSur 11.1 and using dotnet 3.1. For work I can't use the 11.2 beta on my M1.

I build and run my dotnet code in Docker (Apple Silicon version) using an ARM64 dotnet 3.1 SDK and installed vsdgb separately in the container base image.

I can then use VSCode (insiders) to attach to the running docker container and debug the code. So far breakpoints, stepping through code and stepping into code are working !! Happy Days 👍

merken commented 3 years ago

I'm on Big Sur 11.2 RC3 20D64 Nothing shocking here, it just works, performance is similar to the previous builds of macOS Big Sur 11.2

I must say that, compared to my Angular workflow, .NET is slow (mostly due to Rosetta).

My workflow contains of an Angular FE, .NET Core 3.1 BE with an API, WEB and medium sized solution (about 15 projects).

Have not encountered any issues yet, except the performance

wocar commented 3 years ago

@janvorli - my observation is that dotnet applications have good performance on M1 without the debugger attached, but they're quite slow with the debugger attached.

Same here, is there a ticket for this somewhere?

danwalmsley commented 3 years ago

Im often randomly getting:

this is with latest OSX 11.2 update. .net 5

assertion failed [code_fragment->kind == CodeFragmentKind::InvalidJit]: metadata kind is not CodeFragmentKind::InvalidJit (TranslationCacheJit.cpp:262 handle_jit_breakpoint)

@sdmaclea is this a known issue?

danwalmsley commented 3 years ago

@sdmaclea I have a feeling this might be happening sometimes when there are exceptions... but difficult to tell because it terminates everything.

I think this because I had a coding error which caused a NRE everytime... and I was not seeing any exceptions but the invalidjit error.

I ran on intel processor and saw it was reliably causing an exception.

Although I have had other exceptions work without issue.... I think! (nothing is for certain)

danwalmsley commented 3 years ago

Other information... happens under debugger using jetbrains rider.

sdmaclea commented 3 years ago

@danwalmsley Apple has been driving the Rosetta 2 fixes. It would help if you provide feedback to them via the developer feedback tool. That helps them track issues people are seeing in the wild and prioritize them.

/cc @zwarich

danwalmsley commented 3 years ago

@sdmaclea shall do :) thanks

janvorli commented 3 years ago

@danwalmsley if you have already reported the issue via Apple feedback tool, could you please share the feedback number?

danwalmsley commented 3 years ago

@janvorli FB8989324

janvorli commented 3 years ago

@danwalmsley thank you!

richlander commented 3 years ago

I installed the .tar.gz option for 5.0.3 @ https://dotnet.microsoft.com/download/dotnet/5.0. Is that build unsigned? It is behaving as if it were (tons of malicious software warnings). If I use the .pkg option, I get expected behavior. I see the same behavior with the nightly 6.0 P1 build. I would like to use the .tar.gz option so that I can play with any .NET version privately (no global install).

Actual download: https://download.visualstudio.microsoft.com/download/pr/3de2d949-fcb5-4586-a217-2c33854d295f/943f0d92252338e11fd11b002a3a3861/dotnet-sdk-5.0.103-osx-x64.tar.gz

richlander commented 3 years ago

I cannot get .NET 5 ASP.NET amd64 container images to work on M1. It is apparently supposed to work.

An Arm64 image works:

rich@MacBook-Air ~ % docker run --rm -p 8080:80  mcr.microsoft.com/dotnet/samples:aspnetapp

A small sample works with amd64:

docker run --platform linux/amd64 --rm -p 8080:80  mcr.microsoft.com/dotnet/samples

My experience with the aspnetapp sample as amd64:

rich@MacBook-Air ~ % docker run --platform linux/amd64 --rm -p 8080:80  mcr.microsoft.com/dotnet/samples:aspnetapp
Unhandled exception. System.IO.IOException: Function not implemented
   at System.IO.FileSystemWatcher.StartRaisingEvents()
   at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
   at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
   at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.TryEnableFileSystemWatcher()
   at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(String filter)
   at Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(String filter)
   at Microsoft.Extensions.Configuration.FileConfigurationProvider.<.ctor>b__1_0()
   at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)
   at Microsoft.Extensions.Configuration.FileConfigurationProvider..ctor(FileConfigurationSource source)
   at Microsoft.Extensions.Configuration.Json.JsonConfigurationSource.Build(IConfigurationBuilder builder)
   at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
   at Microsoft.Extensions.Hosting.HostBuilder.BuildAppConfiguration()
   at Microsoft.Extensions.Hosting.HostBuilder.Build()
   at aspnetapp.Program.Main(String[] args) in /source/aspnetapp/Program.cs:line 16
qemu: uncaught target signal 6 (Aborted) - core dumped