• 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: 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


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

  • Prev by Date: Re: CFNetwork and SSL Certificate Exceptions
  • Next by Date: Re: CFNetwork and SSL Certificate Exceptions
  • Previous by thread: Re: Crash in CFReadStreamOpen()
  • Next by thread: Port scanning
  • Index(es):
    • Date
    • Thread