Open rolfbjarne opened 8 months ago
I'm also seeing this crash in my app:
EXC_BAD_ACCESS
cancel > class > isEqual: >
KERN_INVALID_ADDRESS at 0x15326c8b184f08.
0 libobjc.A.dylib 0x31e64bc20 objc_msgSend
1 MyApp12 0x2048c8bf4 xamarin_get_frame_length (trampolines.m:570)
2 MyApp12 0x2048cfe50 xamarin_dyn_objc_msgSend
3 MyApp12 0x204ca0560 _Microsoft_iOS_ObjCRuntime_Messaging__CallVariadicFunction (Messaging.cs:164)
4 MyApp12 0x204c3cd24 _Microsoft_iOS_Foundation_NSUrlSessionTask__Cancel (NSUrlSessionTask.g.cs:156)
5 MyApp12 0x204c4b15c _Microsoft_iOS_System_Net_Http_NSUrlSessionHandler__RemoveInflightData (NSUrlSessionHandler.cs:234)
6 MyApp12 0x204c4f598 _Microsoft_iOS_System_Net_Http_NSUrlSessionHandler___c__DisplayClass58_0___SendAsync_b__0 (NSUrlSessionHandler.cs:543)
7 MyApp12 0x204e1f380 _Microsoft_iOS_ObjCRuntime_Trampolines_NIDUIDeferredMenuElementCompletionHandler__Invoke (Trampolines.g.cs:51484)
8 MyApp12 0x204e1fa08 _Microsoft_iOS_ObjCRuntime_Trampolines_NIDUIDeferredMenuElementCompletionHandler__Invoke (Trampolines.g.cs:51484)
9 MyApp12 0x204e1eff8 _Microsoft_iOS_ObjCRuntime_Trampolines_NIDUIDeferredMenuElementCompletionHandler__Invoke (Trampolines.g.cs:51484)
10 MyApp12 0x204e27c08 _Microsoft_iOS_ObjCRuntime_Trampolines_NIDUIDeferredMenuElementCompletionHandler__Invoke (Trampolines.g.cs:51484)
11 MyApp12 0x204e26c68 _Microsoft_iOS_ObjCRuntime_Trampolines_NIDUIDeferredMenuElementCompletionHandler__Invoke (Trampolines.g.cs:51484)
12 MyApp12 0x204e262b4 _Microsoft_iOS_ObjCRuntime_Trampolines_NIDUIDeferredMenuElementCompletionHandler__Invoke (Trampolines.g.cs:51484)
13 MyApp12 0x204e25f84 _Microsoft_iOS_ObjCRuntime_Trampolines_NIDUIDeferredMenuElementCompletionHandler__Invoke (Trampolines.g.cs:51484)
14 MyApp12 0x204ea97ec _Microsoft_iOS_ObjCRuntime_Trampolines_NIDUIDeferredMenuElementCompletionHandler__Invoke (Trampolines.g.cs:51484)
15 MyApp12 0x204e1d1ac _Microsoft_iOS_ObjCRuntime_Trampolines_NIDUIDeferredMenuElementCompletionHandler__Invoke (Trampolines.g.cs:51484)
16 MyApp12 0x204e1d71c _Microsoft_iOS_ObjCRuntime_Trampolines_NIDUIDeferredMenuElementCompletionHandler__Invoke (Trampolines.g.cs:51484)
17 libsystem_pthread.dylib 0x432744378 _pthread_start
If this should be tracked as a separate issue, I can open one
@tipa yes, please file a new issue, that looks like something different.
Use this test project: https://github.com/xamarin/xamarin-macios/issues/11799#issuecomment-1988244584
Run the project for a while (typically hours, sometimes overnight - at one point it crashed after 16 hours / just over 1.5M network requests), and it eventually crashes.
lldb shows this stack trace:
manually symbolicating the stack using
backtrace
in lldb shows:Some investigation in lldb revelead:
___lldb_unnamed_symbol2909
:[__NSCFURLSessionConnection dealloc]
___lldb_unnamed_symbol2903
:[__NSCFURLLocalSessionConnection dealloc]
___lldb_unnamed_symbol5273
: a block dispose methodSome more lldb info: