If you're running a WebKit nightly prior to r36842, or or
This is fixed in the latest nightlies: https://bugs.webkit.org/show_bug.cgi?id=21038
The crash will probably look something like this:
Process: Safari [6650]
Path: /Applications/WebKit.app/Contents/MacOS/WebKit
Identifier: org.webkit.nightly.WebKit
Version: r35203 (35203)
Code Type: X86 (Native)
Parent Process: launchd [114]
Date/Time: 2008-09-23 14:17:20.053 -0400
OS Version: Mac OS X 10.5.5 (9F33)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread: 0
Thread 0 Crashed:
0 com.apple.JavaScriptCore 0x00371ce8 KJS::stringProtoFuncReplace(KJS::ExecState*, KJS::JSObject*, KJS::JSValue*, KJS::ArgList const&) + 3496
1 com.apple.JavaScriptCore 0x003c43d9 KJS::Machine::privateExecute(KJS::Machine::ExecutionFlag, KJS::ExecState*, KJS::RegisterFile*, KJS::Register*, KJS::ScopeChainNode*, KJS::CodeBlock*, KJS::JSValue**) + 31177
2 com.apple.JavaScriptCore 0x003c579d KJS::Machine::execute(KJS::FunctionBodyNode*, KJS::ExecState*, KJS::JSFunction*, KJS::JSObject*, KJS::ArgList const&, KJS::ScopeChainNode*, KJS::JSValue**) + 685
3 com.apple.JavaScriptCore 0x0036e586 KJS::JSFunction::call(KJS::ExecState*, KJS::JSValue*, KJS::ArgList const&) + 102
4 com.apple.JavaScriptCore 0x0036f030 KJS::functionProtoFuncApply(KJS::ExecState*, KJS::JSObject*, KJS::JSValue*, KJS::ArgList const&) + 560
5 com.apple.JavaScriptCore 0x003c43d9 KJS::Machine::privateExecute(KJS::Machine::ExecutionFlag, KJS::ExecState*, KJS::RegisterFile*, KJS::Register*, KJS::ScopeChainNode*, KJS::CodeBlock*, KJS::JSValue**) + 31177
6 com.apple.JavaScriptCore 0x003c5ae2 KJS::Machine::execute(KJS::ProgramNode*, KJS::ExecState*, KJS::ScopeChainNode*, KJS::JSObject*, KJS::JSValue**) + 402
7 com.apple.JavaScriptCore 0x0036e031 KJS::Interpreter::evaluate(KJS::ExecState*, KJS::ScopeChain&, KJS::UString const&, int, WTF::PassRefPtr, KJS::JSValue*) + 289
8 com.apple.WebCore 0x011df908 WebCore::ScriptController::evaluate(WebCore::String const&, int, WebCore::String const&) + 232
9 com.apple.WebCore 0x00e3b634 WebCore::HTMLScriptElement::evaluateScript(WebCore::String const&, WebCore::String const&) + 132
10 com.apple.WebCore 0x00e3b6d9 WebCore::HTMLScriptElement::notifyFinished(WebCore::CachedResource*) + 153
11 com.apple.WebCore 0x00cc42fc WebCore::CachedScript::checkNotify() + 60
12 com.apple.WebCore 0x00cc4692 WebCore::CachedScript::data(WTF::PassRefPtr, bool) + 258
13 com.apple.WebCore 0x011e1af4 WebCore::Loader::Host::didFinishLoading(WebCore::SubresourceLoader*) + 292
14 com.apple.WebCore 0x01182ab1 WebCore::SubresourceLoader::didFinishLoading() + 49
15 com.apple.Foundation 0x96d4f097 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidFinishLoading] + 87
16 com.apple.Foundation 0x96d4f003 _NSURLConnectionDidFinishLoading + 147
17 com.apple.CFNetwork 0x94b3d209 sendDidFinishLoadingCallback + 148
18 com.apple.CFNetwork 0x94b3a180 _CFURLConnectionSendCallbacks + 1759
19 com.apple.CFNetwork 0x94b39a25 muxerSourcePerform + 283
20 com.apple.CoreFoundation 0x96fcd615 CFRunLoopRunSpecific + 3141
21 com.apple.CoreFoundation 0x96fcdcf8 CFRunLoopRunInMode + 88
22 com.apple.HIToolbox 0x9451e480 RunCurrentEventLoopInMode + 283
23 com.apple.HIToolbox 0x9451e299 ReceiveNextEventCommon + 374
24 com.apple.HIToolbox 0x9451e10d BlockUntilNextEventMatchingListInMode + 106
25 com.apple.AppKit 0x918dc3ed _DPSNextEvent + 657
26 com.apple.AppKit 0x918dbca0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
27 com.apple.Safari 0x000086be 0x1000 + 30398
28 com.apple.AppKit 0x918d4cdb -[NSApplication run] + 795
29 com.apple.AppKit 0x918a1f14 NSApplicationMain + 574
30 com.apple.Safari 0x000ba4d6 0x1000 + 758998