• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Crash closing bound stream pair, in _CFWriteStreamCopyRunLoopsAndModes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash closing bound stream pair, in _CFWriteStreamCopyRunLoopsAndModes


  • Subject: Crash closing bound stream pair, in _CFWriteStreamCopyRunLoopsAndModes
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 20 Aug 2014 15:13:11 -0700

I just got alerted to what looks like an iOS (and Mac OS?) bug that leads to crashes while closing a bound-stream pair. The crash was first reported as a bug[1] against the AFNetworking library, and the conclusion was that it looked like a thread-safety issue in the _CFStreamCopyRunLoopsAndModes function. More recently a developer has been getting this crash in an app using the Couchbase Lite library I work on. (Which does not use AFNetworking, just NSURLConnection.)

Unfortunately there's no record of anyone reporting the bug to Apple or asking DTS about it. I'll file a Radar, but first I wanted to ask here in case the bug's known to have been fixed already.

Here's the backtrace:

 1 CoreFoundation __CFTypeCollectionRetain + 101
 2 CoreFoundation __CFArrayCreateCopy0 + 380
 3 CoreFoundation _CFWriteStreamCopyRunLoopsAndModes + 48
 4 CoreFoundation boundPairReadClose + 40
 5 CoreFoundation _CFStreamClose + 76
 6 CFNetwork CoreStreamBase::_streamInterface_Close() + 52
 7 CFNetwork HTTPNetStreamInfo::closeRequestResources() + 82
 8 CFNetwork HTTPNetConnection::transmitRequest(HTTPNetStreamInfo*, __CoreWriteStream*, CFStreamError*, unsigned char) + 1370
 9 CFNetwork HTTPNetStreamInfo::_httpRequestPayloadCallBack(__CoreReadStream*, unsigned long, void*) + 122
10 CFNetwork CoreReadStreamClient::coreStreamEventsAvailable(unsigned long) + 36
11 CFNetwork CoreStreamBase::_callClientNow(CoreStreamClient*) + 42
12 CFNetwork CoreStreamBase::_streamSetEventAndScheduleDelivery(unsigned long, unsigned char) + 122
13 CFNetwork CoreStreamBase::_streamInterface_SignalEvent(unsigned long, CFStreamError const*) + 34
14 CFNetwork CoreReadStreamFromCFReadStream::_readStreamClientCallBack(__CFReadStream*, unsigned long, void*) + 76
15 CoreFoundation _signalEventSync + 118
16 CoreFoundation _cfstream_shared_signalEventSync + 334

—Jens

[1] https://github.com/AFNetworking/AFNetworking/issues/907
[2] https://github.com/AFNetworking/AFNetworking/issues/907#issuecomment-16719680
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: kCFSocketWriteCallBack
  • Next by Date: Debugging UDP Multicast communication
  • Previous by thread: Re: kCFSocketWriteCallBack
  • Next by thread: Debugging UDP Multicast communication
  • Index(es):
    • Date
    • Thread