Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in CFReadStreamOpen()



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:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >Crash in CFReadStreamOpen() (From: Rich Siegel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.