On Jul 15, 2008, at 5:00 PM, Nick Zitzmann wrote:
In addition to what everyone else has suggested, have you tried running your application under Guard Malloc to make sure memory is not being corrupted? I've caught all sorts of weird behavior in applications before by using Guard Malloc.
Thanks for the suggestion, I just tried this and now it crashes in initialization of NSXMLDocument (see call stack below). My (unfounded) suspicion was that the XMLDocument somehow was responsible for all the trouble.
The call stack tells me something strange is going on when opening the URL. So I changed the NSXMLDocument initialization to use a NSData instance that I load from the file manually and viola, the random crashing is gone. So apparently there is a big difference between loading an XMLDocument using URL and loading from NSData. Which I don't know, the documentation doesn't indicate special behaviour. Apparently it didn't like the XML URL but it does work with the data in it.
Thanks everyone for your suggestions, this issue gave me quite a number of sleepless nights.
Thanks again! Regards Markus #0 0x00332556 in _mach_msg_trap at syscall_sw.h:83 #1 0x0033c8ad in mach_msg #2 0x00360861 in vm_protect #3 0x0009a034 in GMmalloc_zone_malloc #4 0x940eb451 in _CFRuntimeCreateInstance #5 0x940795a8 in __CFArrayInit #6 0x940e0ebf in parseXMLElement #7 0x940e27ea in parseDictTag #8 0x940e0e95 in parseXMLElement #9 0x940e27ea in parseDictTag #10 0x940e0e95 in parseXMLElement #11 0x940e0ad0 in parseXMLElement #12 0x940e2082 in _CFPropertyListCreateFromXMLData #13 0x940e262b in CFPropertyListCreateFromXMLData #14 0x96e62075 in loadPolicyFromFile #15 0x96e61faa in initializePolicy #16 0x003588a9 in pthread_once #17 0x96e6071e in _LSCopyDownloadAssessmentDictionaryInternal #18 0x96e6038a in _LSCopyDownloadAssessmentDictionary #19 0x93e3ccfd in _initDownloadAssessment #20 0x93e50f20 in _CFURLResponseGuessMIMEType #21 0x93e8122b in sniffForContentTypeWithData #22 0x93e3d608 in sendDidReceiveDataCallback #23 0x93e3ac22 in _CFURLConnectionSendCallbacks #24 0x93e3a573 in muxerSourcePerform #25 0x940e9615 in CFRunLoopRunSpecific #26 0x940e9cf8 in CFRunLoopRunInMode #27 0x93e5db42 in CFURLConnectionSendSynchronousRequest#28 0x9545680b in +[NSURLConnection sendSynchronousRequest:returningResponse:error:]
#29 0x9554fe56 in -[NSXMLDocument initWithContentsOfURL:options:error:]#30 0x0003d601 in -[RubiData(Import) importFromFile:] at RubiData +Import.m:257
-- __________________________________________ Markus Spoettl
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]