[webkit-dev] Is WebKit a dangerous name?

Alexey Proskuryakov ap-carbon at rambler.ru
Thu Aug 18 21:36:42 PDT 2005


Hi!

   I'm having a very weird crash with run-webkit-tests. I've got two copies of 
the entire WebKit tree in my home directory, /Users/ap/WebKit and 
/Users/ap/Clean-WebKit. Here's what I get:
1) When run-webkit-tests is executed from WebKit, it crashes on a certain test 
(info about the crash below).
2) When it is executed from Clean-WebKit, no crash.
3) If I rename WebKit to WebKit-bad and run from there, no crash.
4) If I rename WebKit-Clean to WebKit and run from there, it crashes.

   I have tried clean rebuilds, clean checkout, and deleting 
/Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders - the result is 
always the same, tests running from ~/WebKit crash.

   Now to the crash itself :).

Date/Time:      2005-08-19 08:15:54.540 +0400
OS Version:     10.4.2 (Build 8C46)
Report Version: 3

Command: DumpRenderTree
Path:    /Users/ap/WebKit/WebKitBuild/Deployment/DumpRenderTree
Parent:  perl [334]

Version: ??? (???)

PID:    365
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000feb

Thread 0 Crashed:
0   com.apple.WebCore        	0x01041cfc QString::setLength(unsigned) + 112 
(KWQString.mm:2618)
1   com.apple.WebCore        	0x01041068 QString::insert(unsigned, char 
const*, unsigned) + 76 (KWQString.h:607)
2   com.apple.WebCore        	0x010fc1c4 khtml::Decoder::decode(char const*, 
int) + 484 (KWQString.h:607)
3   com.apple.WebCore        	0x0105733c KHTMLPart::write(char const*, int) + 
368 (KWQString.h:622)
4   com.apple.WebKit         	0x0022df8c -[WebDataSource(WebPrivate) 
_receivedData:] + 104 (WebDataSource.m:785)
5   com.apple.WebKit         	0x0024b690 -[WebMainResourceLoader addData:] + 
84 (WebMainResourceLoader.m:161)
6   com.apple.WebKit         	0x0022ae64 -[WebLoader 
didReceiveData:lengthReceived:] + 68 (WebLoader.m:530)
7   com.apple.WebKit         	0x0024bfdc -[WebMainResourceLoader 
didReceiveData:lengthReceived:] + 136 (WebMainResourceLoader.m:373)
8   com.apple.WebKit         	0x0022b2fc -[WebLoader 
connection:didReceiveData:lengthReceived:] + 60 (WebLoader.m:632)
9   com.apple.Foundation     	0x928af538 
-[NSURLConnection(NSURLConnectionInternal) _sendDidReceiveDataCallback] + 564
10  com.apple.Foundation     	0x928ad9ac 
-[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] + 440
11  com.apple.Foundation     	0x928ad778 _sendCallbacks + 156
12  com.apple.CoreFoundation 	0x9074bd2c __CFRunLoopDoSources0 + 384
13  com.apple.CoreFoundation 	0x9074b25c __CFRunLoopRun + 452
14  com.apple.CoreFoundation 	0x9074acdc CFRunLoopRunSpecific + 268
15  com.apple.Foundation     	0x9288bec4 -[NSRunLoop runMode:beforeDate:] + 
172
16  DumpRenderTree           	0x00003b94 dumpRenderTree + 448 
(DumpRenderTree.m:475)
17  DumpRenderTree           	0x00002afc main + 1176 (DumpRenderTree.m:156)
18  DumpRenderTree           	0x00001ec4 _start + 344 (crt.c:272)
19  DumpRenderTree           	0x00001d68 start + 60

Thread 1:
0   libSystem.B.dylib        	0x9000a778 mach_msg_trap + 8
1   libSystem.B.dylib        	0x9000a6bc mach_msg + 60
2   com.apple.CoreFoundation 	0x9074b3d8 __CFRunLoopRun + 832
3   com.apple.CoreFoundation 	0x9074acdc CFRunLoopRunSpecific + 268
4   com.apple.Foundation     	0x928a43e0 
+[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 264
5   com.apple.Foundation     	0x9287cf34 forkThreadForFunction + 108
6   libSystem.B.dylib        	0x9002c3d4 _pthread_body + 96

Thread 2:
0   libSystem.B.dylib        	0x9000a778 mach_msg_trap + 8
1   libSystem.B.dylib        	0x9000a6bc mach_msg + 60
2   com.apple.CoreFoundation 	0x9074b3d8 __CFRunLoopRun + 832
3   com.apple.CoreFoundation 	0x9074acdc CFRunLoopRunSpecific + 268
4   com.apple.Foundation     	0x928a5520 +[NSURLCache _diskCacheSyncLoop:] + 
152
5   com.apple.Foundation     	0x9287cf34 forkThreadForFunction + 108
6   libSystem.B.dylib        	0x9002c3d4 _pthread_body + 96

Thread 3:
0   libSystem.B.dylib        	0x9000a778 mach_msg_trap + 8
1   libSystem.B.dylib        	0x9000a6bc mach_msg + 60
2   com.apple.CoreFoundation 	0x9074b3d8 __CFRunLoopRun + 832
3   com.apple.CoreFoundation 	0x9074acdc CFRunLoopRunSpecific + 268
4   com.apple.Foundation     	0x9288bec4 -[NSRunLoop runMode:beforeDate:] + 
172
5   com.apple.Foundation     	0x9288bdfc -[NSRunLoop run] + 76
6   com.apple.WebKit         	0x002634dc +[WebFileDatabase _syncLoop:] + 176 
(WebFileDatabase.m:291)
7   com.apple.Foundation     	0x9287cf34 forkThreadForFunction + 108
8   libSystem.B.dylib        	0x9002c3d4 _pthread_body + 96

   QString::setLength() crashes because main_thread_malloc() returns a zero. 
0x00000feb is the parameter to setLength, so nothing unusual with the 
requested size.

   I'm running on a dual G4, compiling a deployment build with gcc 3.3. This 
has started a few days ago.

- WBR, Alexey Proskuryakov



More information about the webkit-dev mailing list