• 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
CFURLCreateDataAndPropertiesFromResource crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFURLCreateDataAndPropertiesFromResource crash


  • Subject: CFURLCreateDataAndPropertiesFromResource crash
  • From: Mark Mieczkowski <email@hidden>
  • Date: Tue, 8 Feb 2005 12:57:52 -0500

I've been beating my head for a few weeks now trying to figure out how to stop CFURLCreateDataAndPropertiesFromResource from crashing.
I'm calling it from a CFM plugin to a CFM application which was written in powerplant.


I get an access fault. Here's the call stack.

0 com.apple.CoreFoundation 0x90190f94 CFRetain + 0x20
1 com.apple.CFNetwork 0x91ace828 _CFNetConnectionGetState + 0x2c
2 com.apple.CFNetwork 0x91acf55c httpRequestRead + 0x7c
3 com.apple.CoreFoundation 0x901c38cc CFReadStreamRead + 0x180
4 com.apple.CFNetwork 0x91ae2de8 _CFHTTPMessageSendRequest + 0xd8
5 com.apple.CFNetwork 0x91ae394c _CFHTTPURLCreateDataAndPropertiesFromResource + 0xc4
6 com.apple.CFNetwork 0x91ae6898 _CFURLCreateDataAndPropertiesFromResource + 0xc0
7 com.apple.CoreFoundation 0x902239b0 __CFURLCreateDataAndPropertiesFromResource + 0x8c
8 com.apple.CoreFoundation 0x901c1524 CFURLCreateDataAndPropertiesFromResource + 0xc4


I am positive that all arguments to CFURLCreateDataAndPropertiesFromResource are valid and retained.
I think that the autorelease pool may be getting releasing from another thread in the host application which causes the object returned from _CFNetConnectionGetState to get released.


here's the exact same call stack from a cocoa based host application

0 libobjc.A.dylib 0x908311f4 objc_msgSend + 0x14
1 com.apple.CFNetwork 0x9274b85c _CFNetConnectionResponseIsComplete + 0x28
2 com.apple.CFNetwork 0x9274b81c readFromConnection + 0x174
3 com.apple.CFNetwork 0x92742604 httpRequestRead + 0x124
4 com.apple.CoreFoundation 0x901c38cc CFReadStreamRead + 0x180
5 com.apple.CFNetwork 0x92755de8 _CFHTTPMessageSendRequest + 0xd8
6 com.apple.CFNetwork 0x9275694c _CFHTTPURLCreateDataAndPropertiesFromResource + 0xc4
7 com.apple.CFNetwork 0x92759898 _CFURLCreateDataAndPropertiesFromResource + 0xc0
8 com.apple.CoreFoundation 0x902239b0 __CFURLCreateDataAndPropertiesFromResource + 0x8c
9 com.apple.CoreFoundation 0x901c1524 CFURLCreateDataAndPropertiesFromResource + 0xc4


_______________________________________________
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


  • Follow-Ups:
    • Re: CFURLCreateDataAndPropertiesFromResource crash
      • From: Quinn <email@hidden>
  • Prev by Date: Re: Substituting low level BSD stuff with spiffy Cocoa calls
  • Next by Date: Re: CFURLCreateDataAndPropertiesFromResource crash
  • Previous by thread: Re: CFSocket in a library
  • Next by thread: Re: CFURLCreateDataAndPropertiesFromResource crash
  • Index(es):
    • Date
    • Thread