Re: Crash in CFReadStreamOpen()
Re: Crash in CFReadStreamOpen()
- Subject: Re: Crash in CFReadStreamOpen()
- From: Quinn <email@hidden>
- Date: Fri, 16 Sep 2005 13:54:16 +0100
At 16:10 -0400 13/9/05, Rich Siegel wrote:
Would it be possible for anyone in the know to speculate as to what
would cause _ExpireCacheEntries to operate on a NULL CFArray, and
how it might have become so?
_ExpireCacheEntries takes no parameters, so it can't be a bad parameter (-:
_ExpireCacheEntries only calls CFArrayGetValueAtIndex in one place.
CFNetwork maintain a global dictionary called _HostCache. When it
wants to expire host cache entries, it gets all of the keys and
values in that dictionary and looks at each. The crash you're seeing
implies that one of the values is NULL.
I have no idea how it got that way.
If you see this again and can attach with GDB, you can use the
following to dump out the host cache.
(gdb) call (void)CFShow((void *)_HostCache)
Also, as Fred pointed out, you can look at the source yourself.
<http://www.opensource.apple.com/darwinsource/10.4.2/CFNetwork-128.2/Host/CFHost.c>
[This link requires an APSL <http://www.opensource.apple.com/apsl/>
account.]
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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