title: EXC_GUARD exception
body: <p>A OSX app crashes when I try to close a socket handle, it worked fine in all the previous platforms, but it appears to crash in Yosemite.</p>
  
  <p>The line where is crashes is</p>
  
  <pre><code>-(void)stopPacketReceiver
  {
     close(sd);
  }
  </code></pre>
  
  <p>In Xcode it pauses all the threads and show EXC_GUARD exception, what kind of exception is this, any ideas ?</p>
  
  <p>Thanks,
  Ahmed</p>
  
  <p>EDIT:</p>
  
  <p>Here r the exception codes that I get</p>
  
  <p>Exception Type:        EXC_GUARD
  Exception Codes:       0x4000000100000000, 0x08fd4dbfade2dead</p>