[webkit-dev] Crash on the Mac (RapidWeaver plugin and Safari 4)

Gilberto De Faveri gilberto.defaveri at omnidea.it
Fri Jun 12 00:47:22 PDT 2009


Hi all,
I'm working on a RapidWeaver plugin (Cocoa) which uses a WebView on  
its main window.

Using Safari 3 everything works as expected, but after installing  
Safari 4 RapidWeaver crashes when re-opening the same plugin saving  
more than once.

The problems seems to be in JavaScriptCore:

*****
Process:         RapidWeaver [4901]
Path:            /Applications/RapidWeaver.app/Contents/MacOS/ 
RapidWeaver
Identifier:      com.realmacsoftware.rapidweaverpro
Version:         ??? (4.2.1)
Code Type:       X86 (Native)
Parent Process:  launchd [74]

Architecture:   i386
Date/Time:       2009-06-11 13:25:20.531 +0200
OS Version:      Mac OS X 10.5.7 (9J61)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000be8fd800
Crashed Thread:  0

Thread 0 Crashed:
0   com.apple.JavaScriptCore      	0x95b8bd83 void*  
WTF::fastMalloc<true>(unsigned long) + 435
1   com.apple.WebCore             	0x927623ac  
std 
::pair 
<WTF::HashTableIteratorAdapter<WTF::HashTable<WebCore::StringImpl*,  
WebCore::StringImpl*, WTF::IdentityExtractor<WebCore::StringImpl*>,  
WebCore::StringHash, WTF::HashTraits<WebCore::StringImpl*>,  
WTF::HashTraits<WebCore::StringImpl*> >, WebCore::StringImpl*>, bool>  
WTF::HashSet<WebCore::StringImpl*, WebCore::StringHash,  
WTF::HashTraits<WebCore::StringImpl*> >::add<char const*,  
WebCore::CStringTranslator>(char const* const&) + 492
2   com.apple.WebCore             	0x921bc2f4  
WebCore::AtomicString::add(char const*) + 52
3   com.apple.WebCore             	0x9226a35d  
WebCore::ResourceRequestBase::isConditional() const + 397
4   com.apple.WebCore             	0x922698e1  
WebCore::SubresourceLoader::create(WebCore::Frame*,  
WebCore::SubresourceLoaderClient*, WebCore::ResourceRequest const&,  
bool, bool, bool) + 769
5   com.apple.WebCore             	0x92268fae  
WebCore 
::Loader::Host::servePendingRequests(WTF::Deque<WebCore::Request*>&,  
bool&) + 942
6   com.apple.WebCore             	0x92268be2  
WebCore::Loader::Host::servePendingRequests(WebCore::Loader::Priority)  
+ 82
7   com.apple.WebCore             	0x92268598  
WebCore::Loader::load(WebCore::DocLoader*, WebCore::CachedResource*,  
bool, bool, bool) + 280
8   com.apple.WebCore             	0x92268469  
WebCore::CachedResource::load(WebCore::DocLoader*, bool, bool, bool) +  
89
9   com.apple.WebCore             	0x92268400  
WebCore::CachedResource::load(WebCore::DocLoader*) + 48
10  com.apple.WebCore             	0x92267bf0  
WebCore::Cache::requestResource(WebCore::DocLoader*,  
WebCore::CachedResource::Type, WebCore::KURL const&, WebCore::String  
const&, bool) + 192
11  com.apple.WebCore             	0x92267560  
WebCore::DocLoader::requestResource(WebCore::CachedResource::Type,  
WebCore::String const&, WebCore::String const&, bool) + 192
12  com.apple.WebCore             	0x9230697f  
WebCore::DocLoader::requestScript(WebCore::String const&,  
WebCore::String const&) + 47
13  com.apple.WebCore             	0x9226fb30  
WebCore::HTMLTokenizer::scriptHandler(WebCore::HTMLTokenizer::State) +  
3568
14  com.apple.WebCore             	0x92261c9b  
WebCore::HTMLTokenizer::parseSpecial(WebCore::SegmentedString&,  
WebCore::HTMLTokenizer::State) + 2267
15  com.apple.WebCore             	0x9224f6df  
WebCore::HTMLTokenizer::parseTag(WebCore::SegmentedString&,  
WebCore::HTMLTokenizer::State) + 9103
16  com.apple.WebCore             	0x9224cc9b  
WebCore::HTMLTokenizer::write(WebCore::SegmentedString const&, bool) +  
2907
17  com.apple.WebCore             	0x921f7c50  
WebCore::FrameLoader::write(char const*, int, bool) + 432
18  com.apple.WebCore             	0x9224b3f7  
WebCore::FrameLoader::addData(char const*, int) + 39
19  com.apple.WebKit              	0x9322ec0c -[WebFrame(WebInternal)  
_receivedData:textEncodingName:] + 140
20  com.apple.WebKit              	0x9322eb33 -[WebHTMLRepresentation  
receivedData:withDataSource:] + 499
21  com.apple.WebKit              	0x9322e8db - 
[WebDataSource(WebInternal) _receivedData:] + 91
22  com.apple.WebKit              	0x9322e859  
WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char  
const*, int) + 137
23  com.apple.WebCore             	0x9223d356  
WebCore::DocumentLoader::commitLoad(char const*, int) + 70
24  com.apple.WebCore             	0x9223cf85  
WebCore::ResourceLoader::didReceiveData(char const*, int, long long,  
bool) + 69
25  com.apple.WebCore             	0x9223c752  
WebCore::MainResourceLoader::didReceiveData(char const*, int, long  
long, bool) + 114
26  com.apple.WebCore             	0x9223c6d8  
WebCore::ResourceLoader::didReceiveData(WebCore::ResourceHandle*, char  
const*, int, int) + 56
27  com.apple.Foundation          	0x950f8ed7 - 
[NSURLConnection(NSURLConnectionReallyInternal)  
sendDidReceiveData:originalLength:] + 119
28  com.apple.Foundation          	0x950f8e21  
_NSURLConnectionDidReceiveData + 177
29  com.apple.CFNetwork           	0x9315096a  
URLConnectionClient::_clientDidReceiveData(__CFData const*,  
URLConnectionClient::ClientConnectionEventQueue*) + 248
30  com.apple.CFNetwork           	0x931518b2  
URLConnectionClient 
::ClientConnectionEventQueue 
::processAllEventsAndConsumePayload(XConnectionEventInfo<XClientEvent,  
XClientEventParams>*, long) + 264
31  com.apple.CFNetwork           	0x93151b90  
URLConnectionClient 
::ClientConnectionEventQueue 
::processAllEventsAndConsumePayload(XConnectionEventInfo<XClientEvent,  
XClientEventParams>*, long) + 998
32  com.apple.CFNetwork           	0x9315036c  
URLConnectionClient::processEvents() + 104
33  com.apple.CFNetwork           	0x930fddbf  
MultiplexerSource::perform() + 189
34  com.apple.CoreFoundation      	0x91fbd5df CFRunLoopRunSpecific +  
3215
35  com.apple.CoreFoundation      	0x91fbdc78 CFRunLoopRunInMode + 88
36  com.apple.HIToolbox           	0x96db928c  
RunCurrentEventLoopInMode + 283
37  com.apple.HIToolbox           	0x96db90a5 ReceiveNextEventCommon +  
374
38  com.apple.HIToolbox           	0x96db8f19  
BlockUntilNextEventMatchingListInMode + 106
39  com.apple.AppKit              	0x963c3d0d _DPSNextEvent + 657
40  com.apple.AppKit              	0x963c35c0 -[NSApplication  
nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
41  com.apple.AppKit              	0x963bc5fb -[NSApplication run] + 795
42  com.apple.AppKit              	0x96389834 NSApplicationMain + 574
43  ...lmacsoftware.rapidweaverpro	0x0000306e 0x1000 + 8302
44  ...lmacsoftware.rapidweaverpro	0x00002dd6 0x1000 + 7638
*****

Any advice?

Thanks in advance.

-- 
gilberto de faveri
omnidea srl

edificio pegaso
parco scientifico tecnologico vega
via delle industrie, 15
30175 venezia marghera

tel +39 041 509 3441
fax +39 041 509 3641

www.omnidea.it



More information about the webkit-dev mailing list