Quantcast
Channel: Xamarin.Mac — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 1429

EXC_BAD_ACCESS during NSAutoreleasePool release

$
0
0

Hi!

We using Xamarin.Mac in our app and after we've upgraded from Classic API to Unified some of our users started complain about crashes with following stack trace:

Thread 23 Crashed:: tid_15e07
0 libsystem_kernel.dylib 0x00007fff8d633f06 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff8d3f84ec pthread_kill + 90
2 libsystem_c.dylib 0x00007fff8948d6e7 abort + 129
3 com.os33 0x0000000109700fb2 mono_handle_native_sigsegv + 578
4 com.os33 0x000000010967255a mono_arch_handle_altstack_exception + 90
5 com.os33 0x000000010970cf18 mono_sigsegv_signal_handler + 440
6 libsystem_platform.dylib 0x00007fff947dd52a _sigtramp + 26
7 ??? 000000000000000000 0 + 0
8 libobjc.A.dylib 0x00007fff914ceb3b (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 477
9 com.apple.CoreFoundation 0x00007fff9cfafc12 _CFAutoreleasePoolPop + 50
10 com.apple.Foundation 0x00007fff98be0af5 -[NSAutoreleasePool release] + 146
11 com.os33 0x000000010960ca02 xamarin_thread_finish(void*) + 146
12 com.os33 0x000000010960c7bc thread_end(_MonoProfiler*, unsigned long) + 28
13 com.os33 0x00000001097c4563 mono_profiler_thread_end + 67
14 com.os33 0x0000000109806aab thread_cleanup + 603
15 com.os33 0x000000010980d5ce start_wrapper + 670
16 com.os33 0x0000000109870397 inner_start_thread + 311
17 libsystem_pthread.dylib 0x00007fff8d3f599d _pthread_body + 131
18 libsystem_pthread.dylib 0x00007fff8d3f591a _pthread_start + 168
19 libsystem_pthread.dylib 0x00007fff8d3f3351 thread_start + 13

We using CF objects in our app and I believe error occurring due to wrong using of CFRelease making zombie objects. The problem is I can't reproduce the issue.

Could please someone provide me an example of any Xamarin.Mac code which crashes with similar error? Maybe someone could point me a direction to look on? I'm aware of NSZombie instruments but I can't use them since I can't reproduce the crash.

Thanks in advance!


Viewing all articles
Browse latest Browse all 1429

Trending Articles