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: Crashes when implicitly accessing the Keychain from NSURL



Am 10.01.2008 um 13:25 schrieb Hamish Allan:

On Jan 10, 2008 12:14 PM, Mike Fischer <email@hidden> wrote:

Like the header of the crash log says: 10.5.1 (9B18)

Ah yes.

Should I report this as a bug on BugReporter?

I would *always* report bugs in Apple's frameworks, even if you have a workaround, or you know it's already been reported by someone else.

It took me a while but I have finally decided to report this as a bug:

<rdar://5702001>


At first I thought my code was somehow at fault. But after completely rewriting the code to use the lower level NSUrlConnection instead of NSURL resourceDataUsingCache: I am still seeing exactly the same type of crashes. I'm usually not seeing them right away. In fact often it takes a couple of hours and several thousand downloads to trigger the bug. But I am now pretty sure that it's not my fault.


To me it looks like a multi-threading/multi-access bug in the Apple Keychain access code. My app querying the Keychain very often only increases the likelyhood of triggering the bug I believe.


BTW: There is one workaround: Including the name and password in the url (http://<name>:<password>@<host><path>) will prevent the Url loading system from asking the Keychain, thus avoiding the bug.



Thanks for you comments! Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this list in digest mode! Send me a private copy for faster responses.

_______________________________________________
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: 
 >Crashes when implicitly accessing the Keychain from NSURL (From: Mike Fischer <email@hidden>)
 >Re: Crashes when implicitly accessing the Keychain from NSURL (From: Mike Fischer <email@hidden>)
 >Re: Crashes when implicitly accessing the Keychain from NSURL (From: "Hamish Allan" <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.