• 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
Re: Crash in CFReadStreamOpen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in CFReadStreamOpen


  • Subject: Re: Crash in CFReadStreamOpen
  • From: Christian Weykopf <email@hidden>
  • Date: Thu, 28 May 2009 17:04:00 +0200


Am 26.05.2009 um 22:42 schrieb Benoit Foucher:

Hi,

Hi,

I'm getting an EXC_BAD_ACCESS crash in CFReadSreamOpen and I don't understand why. The code only fails with OS X 10.5.7. It works fine on 10.5.6. I wonder if this is perhaps because I add the stream to another thread's run loop from the main thread. However, I didn't see any mention of this not being thread safe -- on the contrary the documentation seems to indicate that CF run loop functions are thread safe... (http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html#/ /apple_ref/doc/uid/10000057i-CH16-SW26)

Am I doing something wrong here?

Here's the crash:

0 libSystem.B.dylib 0xffff0269 __spin_lock + 9 (cpu_capabilities.h:234)
1 com.apple.CFNetwork 0x9396893a CacheEntry::_runLoopSchedule(void*, __CFRunLoop*, __CFString const*) + 38
2 com.apple.CoreFoundation 0x940967b4 CFRunLoopAddSource + 532
3 com.apple.CFNetwork 0x938de974 _CFTypeScheduleOnRunLoop + 388
4 com.apple.CFNetwork 0x9395b1b0 Host::scheduleWithRunLoop(__CFRunLoop*, __CFString const*) + 86
5 com.apple.CFNetwork 0x93944805 Schedulables::_SchedulablesScheduleApplierFunction(void const*, void*) + 33
6 com.apple.CoreFoundation 0x94028846 CFArrayApplyFunction + 198
7 com.apple.CFNetwork 0x939448e3 Schedulables::schedule(__CFRunLoop*, __CFString const*) + 77
8 com.apple.CFNetwork 0x9393e33b SocketStream::schedule_NoLock(void const*, __CFRunLoop*, __CFString const*) + 211
9 com.apple.CFNetwork 0x93940472 SocketStream::open(void const*, CFStreamError*, unsigned char*) + 338
10 com.apple.CFNetwork 0x939436dc ReadStreamCallbacks::_open(__CFReadStream*, CFStreamError*, unsigned char*, void*) + 52
11 com.apple.CoreFoundation 0x940adb5c _CFStreamOpen + 316
12 com.apple.CoreFoundation 0x940add58 CFReadStreamOpen + 152
13 a.out 0x00001eaf main + 427
14 a.out 0x00001bbe start + 54




The same crash here, too.
I'm using CFReadStreamCreateWithFTPURL (). Unfortunately only on customers machines.



Mit freundlichen Grüßen Christian Weykopf

--

Meilenstein Mac OS Software

Neue Strasse 5
D-31582 Nienburg
Fax: +49 (0) 5021 91 24 45
<http://www.meilenstein.de/>

Geschäftsführer:
Georg Hennig, Dirk Musfeldt, Christian Weykopf

Amtsgericht Walsrode, 8 HRB 31265

_______________________________________________
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


References: 
 >Crash in CFReadStreamOpen (From: Benoit Foucher <email@hidden>)

  • Prev by Date: Re: Crash in CFReadStreamOpen
  • Next by Date: SCNetworkReachabilityCreateWithAddress() & Callback?
  • Previous by thread: Re: Crash in CFReadStreamOpen
  • Next by thread: IPFW
  • Index(es):
    • Date
    • Thread