Steps to Reproduce: 1. go into some folder 2. mkfile 1g 1GFile.bin 3. chmod 644 1GFile.bin 4. open the file in OW or a webkit nightly (file:///Volumes/Local/Users/rachael/Documents/1GFile.bin for example) 5. Crash! (tested with WebKit rev 19399) OmniWeb Console Spew: OmniWeb(3176,0x1a3aa00) malloc: *** vm_allocate(size=1342177280) failed (error code=3) OmniWeb(3176,0x1a3aa00) malloc: *** error: can't allocate region OmniWeb(3176,0x1a3aa00) malloc: *** set a breakpoint in szone_error to debug exception = 0x00000006, crashedThreadStackPointer = 0xb058a100, code = 0x00000002;0x00000000; WebKit Console Spew: Safari(15339,0x2065800) malloc: *** vm_allocate(size=1342177280) failed (error code=3) Safari(15339,0x2065800) malloc: *** error: can't allocate region Safari(15339,0x2065800) malloc: *** set a breakpoint in szone_error to debug 2007-02-05 15:34:04.741 WebKit[15339] An uncaught exception was raised 2007-02-05 15:34:04.774 WebKit[15339] *** NSCopyMemoryPages(0x185fa000, 0x0, 1073741824) failed 2007-02-05 15:34:04.774 WebKit[15339] *** Uncaught exception: <NSInvalidArgumentException> *** NSCopyMemoryPages(0x185fa000, 0x0, 1073741824) failed Feb 5 15:34:09 dratini crashdump[15354]: Safari crashed Feb 5 15:34:11 dratini crashdump[15354]: crash report written to: /Users/rachael/Library/Logs/CrashReporter/Safari.crash.log OmniWeb Crash Report: Thread 10 Crashed: eip: 0x9262a50b ebp: 0xb058a168 esp: 0xb058a100 eax: 0x16088000 ebx: 0x9262a436 ecx: 0x90a57321 edx: 0x1aeb7ac0 edi: 0x1b0b2a90 esi: 0x1743b570 ss: 0x0000001f cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 eflags: 0x00000246 0 -- 0x9262a50b -- __NSRaiseError 1 -- 0x926512cb -- +[NSException raise:format:] 2 -- 0x92643162 -- _NSCopyMemoryPages 3 -- 0x9261e0e5 -- -[NSConcreteMutableData appendData:] 4 -- 0x9265cf75 -- -[NSURLConnection(NSURLConnectionInternal) _didLoadData:lengthReceived:] 5 -- 0x9265ce25 -- -[NSURLConnectionInternal URLProtocol:didLoadData:] 6 -- 0x9265c586 -- -[NSFileURLProtocol didLoadData:] 7 -- 0x9265c2db -- -[NSFileURLProtocol startLoading] 8 -- 0x92654d43 -- -[NSURLConnection(NSURLConnectionInternal) _performOriginLoad] 9 -- 0x92652b94 -- __resourceLoaderPerform 10 -- 0x90829fd2 -- _CFRunLoopRunSpecific 11 -- 0x90829b0e -- _CFRunLoopRunInMode 12 -- 0x9262ca9b -- +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] 13 -- 0x925f736c -- _forkThreadForFunction 14 -- 0x90023d87 -- __pthread_body WebKit Crash report: Thread 1 Crashed: 0 com.apple.Foundation 0x92978120 _NSRaiseError + 264 1 com.apple.Foundation 0x92977e5c +[NSException raise:format:] + 40 2 com.apple.Foundation 0x9297ec70 -[NSConcreteMutableData appendData:] + 196 3 com.apple.Foundation 0x9298e9e4 -[NSURLConnection(NSURLConnectionInternal) _didLoadData:lengthReceived:] + 280 4 com.apple.Foundation 0x9298e08c -[NSFileURLProtocol didLoadData:] + 476 5 com.apple.Foundation 0x9298ddd4 -[NSFileURLProtocol startLoading] + 132 6 com.apple.Foundation 0x92986888 -[NSURLConnection(NSURLConnectionInternal) _performOriginLoad] + 328 7 com.apple.Foundation 0x9298493c _resourceLoaderPerform + 224 8 com.apple.CoreFoundation 0x907dd4cc __CFRunLoopDoSources0 + 384 9 com.apple.CoreFoundation 0x907dc9fc __CFRunLoopRun + 452 10 com.apple.CoreFoundation 0x907dc47c CFRunLoopRunSpecific + 268 11 com.apple.Foundation 0x9298469c +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 264 12 com.apple.Foundation 0x9295d194 forkThreadForFunction + 108 13 libSystem.B.dylib 0x9002b508 _pthread_body + 96
This bug needs a Radar bug simply because it can't be fixed in WebKit. It's in the Foundation classes.
eep, wasn't paying enough attention when I filed this. Filing a radar now.
filed as radar 4977603
I moved the Radar to NSURLConnection, this is arguably an issue with the file protocol and certainly not with WebKit. Closing this one as invalid, since it is not a WebKit issue.