title: AFNetworking crash analysis for EXC_BAD_ACCESS KERN_INVALID_ADDRESS
body: <p>I'm getting crash reports of AFNetworking throwing an <strong>EXC_BAD_ACCESS KERN_INVALID_ADDRESS</strong>:</p>
  
  <pre><code>Thread : Crashed: com.apple.root.default-priority
  0  libobjc.A.dylib                0x39e237fa objc_release + 9
  1  MY_APP                         0x0015ba63 __64-[AFHTTPRequestOperation setCompletionBlockWithSuccess:failure:]_block_invoke (AFHTTPRequestOperation.m:266)
  2  MY_APP                         0x00163bf7 __47-[AFURLConnectionOperation setCompletionBlock:]_block_invoke (AFURLConnectionOperation.m:301)
  3  Foundation                     0x3049a2a9 __103+[__NSOperationInternal _observeValueForKeyPath:ofObject:changeKind:oldValue:newValue:indexes:context:]_block_invoke96 + 12
  4  libdispatch.dylib              0x3a30b0c3 _dispatch_call_block_and_release + 10
  5  libdispatch.dylib              0x3a3107d9 _dispatch_root_queue_drain + 224
  6  libdispatch.dylib              0x3a3109c5 _dispatch_worker_thread2 + 56
  7  libsystem_pthread.dylib        0x3a43adff _pthread_wqthread + 298
  </code></pre>
  
  <p>I need help to understand the possible bug. This is something that happens sometimes, actually is very rare and it could be related to a timeout issue when user is using 3G (network can be disconnected while loading data).</p>
  
  <p>I don't post my code because I can't find on the crash log in which file or class this crash happened and I use AFNetworking in a lot of files.</p>