loadResourceDataNotifyingClient Bug? (was Tips & Tricks for debugging difficult crashes?)
loadResourceDataNotifyingClient Bug? (was Tips & Tricks for debugging difficult crashes?)
- Subject: loadResourceDataNotifyingClient Bug? (was Tips & Tricks for debugging difficult crashes?)
- From: Adam Iser <email@hidden>
- Date: Wed, 13 Feb 2002 23:14:03 -0500
I was able to narrow a crash I've been having down to NSURL's method
loadResourceDataNotifyingClient, and produce a simple test application
that exhibits the crash.
This only seems to crash users that have some sort of proxy configured.
This simple code will cause an EXC_BAD_ACCESS
- (void)awakeFromNib //(or suitable init call)
{
NSLog(@"Hello, I'm loading
http://www.aim.com/community/chats.adp");
[[NSURL URLWithString:@"
http://www.aim.com/community/chats.adp"]
loadResourceDataNotifyingClient:self usingCache:NO];
}
- (void)URL:(NSURL *)sender resourceDataDidBecomeAvailable:(NSData
*)newBytes
{
NSString *HTMLPart = [[[NSString alloc] initWith
Data:newBytes
encoding:NSISOLatin1StringEncoding] autorelease];
NSLog(@"HTML:%@",HTMLPart);
}
you may need to leave the app open for a minute or two for the crash to
occur. It usually takes roughly a minute.
Attempting to load any URL (even
http://www.adiumx.com) will crash the
users system.
I feel obligated to ask... am I doing something wrong? If not (and this
is a bug), what would be proper procedure here?
-Adam
Crash log: (this crash log is taken from my app, not from the test code)
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000008
Thread 0 Crashed:
#0 0x701b6968 in CFReadStreamGetInfoPointer
#1 0x7518208c in httpStreamCallBack
#2 0x701c9edc in _CFStreamSignalEvent
#3 0x701e2a14 in readFilterStreamCallBack
#4 0x701c9edc in _CFStreamSignalEvent
#5 0x701e2d4c in sendSignalForSource
#6 0x701e2488 in performSocketSource
#7 0x7017c85c in __CFRunLoopDoSources0
#8 0x7017bdf8 in __CFRunLoopRun
#9 0x701b7100 in CFRunLoopRunSpecific
#10 0x7017b8e0 in CFRunLoopRunInMode
#11 0x7312cccc in RunEventLoopInModeUntilEventArrives
#12 0x7313fe60 in ReceiveNextEventCommon
#13 0x73171120 in BlockUntilNextEventMatchingListInMode
#14 0x70bd70b8 in _DPSNextEvent
#15 0x70bfe5d8 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#16 0x70c23468 in -[NSApplication run]
#17 0x70c91ed0 in NSApplicationMain
#18 0x00003e78 in _start
#19 0x00003ca8 in start
--
Adam Iser (email@hidden)
http://www.adiumx.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.