pkyeck / socket.IO-objc

socket.io v0.7.2 — 0.9.x for iOS and OS X
MIT License
1.97k stars 439 forks source link

problem in receiving a message #211

Open chadbag opened 9 years ago

chadbag commented 9 years ago

Using the francoisp fork (but I don't think there are a lot of differences in this part?), I occasionally get this crash in my app. It does not happen all that often and I am not sure where to start as it looks like problems in the system malloc which could point to some sort of memory issue somewhere else?

0   MyApp   0x002b6928  testflight_backtrace
1   MyApp   0x002b6164  TFSignalHandler
2   libsystem_platform.dylib    0x3b152722  _sigtramp
3   libsystem_pthread.dylib 0x3b157a52  pthread_kill
4   libsystem_c.dylib   0x3b0a102c  abort
5   libsystem_malloc.dylib  0x3b11e75c  purgeable_ptr_in_use_enumerator
6   libsystem_malloc.dylib  0x3b11e9d8  free_list_checksum_botch
7   libsystem_malloc.dylib  0x3b116bc0  tiny_malloc_from_free_list
8   libsystem_malloc.dylib  0x3b1159e8  szone_malloc_should_clear
9   libsystem_malloc.dylib  0x3b1158d2  malloc_zone_malloc
10  libsystem_malloc.dylib  0x3b118d16  malloc
11  CoreFoundation  0x3071d274  -[__NSArrayM insertObject:atIndex:]
12  MyApp   0x00162802  -[SocketIO getMatchesFrom:with:] in SocketIO.m on Line 513
13  MyApp   0x00162a10  -[SocketIO onData:] in SocketIO.m on Line 541
14  MyApp   0x0026fdc8  -[SocketIOTransportWebsocket webSocket:didReceiveMessage:] in SocketIOTransportWebsocket.m on Line 110
15  MyApp   0x000f109a  __30-[SRWebSocket _handleMessage:]_block_invoke in SRWebSocket.m on Line 741
16  libdispatch.dylib   0x3b0250c2  _dispatch_call_block_and_release
17  libdispatch.dylib   0x3b0250ae  _dispatch_client_callout
18  libdispatch.dylib   0x3b0279a8  _dispatch_main_queue_callback_4CF
19  CoreFoundation  0x307ae5b0  __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
20  CoreFoundation  0x307ace7c  __CFRunLoopRun
21  CoreFoundation  0x30717470  CFRunLoopRunSpecific
22  CoreFoundation  0x30717252  CFRunLoopRunInMode
23  GraphicsServices    0x354512ea  GSEventRunModal
24  UIKit   0x32fcc844  UIApplicationMain
25  MyApp   0x000a9a42  main in main.m on Line 17
26  libdyld.dylib   0x3b039ab6  start