Bug 4795
Summary: | leak inside DOM::DocumentImpl::DocumentImpl, seen running webkit tests | ||
---|---|---|---|
Product: | WebKit | Reporter: | John Sullivan <sullivan> |
Component: | WebKit Misc. | Assignee: | Darin Adler <darin> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
John Sullivan
This bug is also in Radar as <rdar://4233800>
This is split off from 4665. This is one of the many leaks found with these steps:
1. Build a development build of tip-of-tree WebKit
2. use run-webkit-tests --leaks
Leak: 0x1fff3710 size=16
0x00000002 0x00000000 0x21d581f0 0x00010001 ........!.......
Call stack: [thread 239f]: | 0x0 | start | _start | main | dumpRenderTree | -[NSRunLoop
runMode:beforeDate:] | CFRunLoopRunSpecific | __CFRunLoopRun | __CFRunLoopDoSources0 |
_sendCallbacks | -[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] | -[NSURLConnection
(NSURLConnectionInternal) _sendDidReceiveDataCallback] | -[WebLoader
connection:didReceiveData:lengthReceived:] | -[WebMainResourceLoader
didReceiveData:lengthReceived:] | -[WebLoader didReceiveData:lengthReceived:] | -
[WebMainResourceLoader addData:] | -[WebDataSource(WebPrivate) _receivedData:] | -
[WebHTMLRepresentation receivedData:withDataSource:] | -[WebBridge
receivedData:textEncodingName:] | -[WebCoreBridge setEncoding:userChosen:] |
KWQKHTMLPart::setEncoding(QString const&, bool) | KHTMLPart::receivedFirstData() | KHTMLPart::begin
(KURL const&, int, int) | DOM::DOMImplementationImpl::createHTMLDocument(KHTMLView*) |
DOM::HTMLDocumentImpl::HTMLDocumentImpl[in-charge](DOM::DOMImplementationImpl*,
KHTMLView*) | DOM::HTMLDocumentImpl::HTMLDocumentImpl[unified]
(DOM::DOMImplementationImpl*, KHTMLView*) | DOM::DocumentImpl::DocumentImpl[not-in-charge]
(DOM::DOMImplementationImpl*, KHTMLView*) | DOM::DocumentImpl::DocumentImpl[unified]
(DOM::DOMImplementationImpl*, KHTMLView*) | operator new(unsigned long) | malloc
This one still sometimes occurs this morning (most of the other leaks from 4665 have been fixed).
I haven't caught this one in a single-test leaks output, but I saw it once today with the output of run-
webkit-tests --leaks.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Darin Adler
Checked in a fix that should fix the leak described in this bug, as well as two others. The three bugs are
bug 4795, bug 4796, and bug 4797.