[10.3.3] NSXXXWithContentsOfURL: crash when highly multithreaded ?
[10.3.3] NSXXXWithContentsOfURL: crash when highly multithreaded ?
- Subject: [10.3.3] NSXXXWithContentsOfURL: crash when highly multithreaded ?
- From: Aurélien Hugelé <email@hidden>
- Date: Thu, 18 Mar 2004 15:38:19 +0100
hi !
i ve encountered a crash in 10.3.3 [7F44 but was there since early .3.3
betas] using stringWithContentsOfURL: that i can't reproduce under 10.2
to 10.3.2
my program launch *a lot of* (from 10 to about 40) threads to retrieve
HTML code of many web pages :
basically, i run threads in which i execute a NSString* myString =
[NSString stringWithContentsOfURL:aURL]
and since panther i encounter a crash, as described below :
Thread 1 Crashed:
0 com.apple.CoreFoundation 0x901a10b0 CFRunLoopWakeUp + 0x38
1 com.apple.Foundation 0x90a3b3b0
-[NSURLConnection(NSURLConnectionInternal)
_postDidReceiveResponseCallback] + 0x4c
2 com.apple.Foundation 0x90a4d41c -[NSFileURLProtocol
didLoadData:] + 0x1bc
3 com.apple.Foundation 0x90a68c94 -[NSFileURLProtocol
startLoading] + 0xa8
4 com.apple.Foundation 0x90a27258
-[NSURLConnection(NSURLConnectionInternal) _prepareOriginLoad] + 0x158
5 com.apple.Foundation 0x90a0a4d4 _loadThrottler + 0x1a8
6 com.apple.CoreFoundation 0x90193d68 __CFRunLoopDoSources0 +
0x1fc
7 com.apple.CoreFoundation 0x90191620 __CFRunLoopRun + 0x1b0
8 com.apple.CoreFoundation 0x90195f4c CFRunLoopRunSpecific +
0x148
9 com.apple.Foundation 0x909fd008 -[NSRunLoop
runMode:beforeDate:] + 0xac
10 com.apple.Foundation 0x90a15c0c -[NSRunLoop run] + 0x4c
11 com.apple.Foundation 0x90a67bb4
+[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 0x20c
12 com.apple.Foundation 0x90a3a2c4 forkThreadForFunction +
0x6c
13 libSystem.B.dylib 0x900247e8 _pthread_body + 0x28
Of course i have explained this on AppleSeed report, but no reply
since...
Do people have the same problem ? can somebody who uses many
URLConnection simultaneously try the culprit code ?
thanks folks !
_______________________________________________
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.