Bug 19806 - LEAK: leak from -[WebFrame(WebInternal) _stringForRange:]
Summary: LEAK: leak from -[WebFrame(WebInternal) _stringForRange:]
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-28 22:23 PDT by Cameron Zwarich (cpst)
Modified: 2008-06-29 00:28 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron Zwarich (cpst) 2008-06-28 22:23:22 PDT
I found this by running the stress test with MallocStackLogging enabled:

Leak: 0x1a2ca400  size=10240	string 'L'
	Call stack: [thread 0xa05a0fa0]: | 0xba4d6 | NSApplicationMain | -[NSApplication run] | 0x86be | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | BlockUntilNextEventMatchingListInMode | ReceiveNextEventCommon | RunCurrentEventLoopInMode | CFRunLoopRunInMode | CFRunLoopRunSpecific | __NSFireTimer | 0x29373 | 0x29486 | 0x29804 | 0x29cc1 | -[WebHTMLView(WebDocumentPrivateProtocols) string] | -[WebFrame(WebInternal) _stringForRange:] | WebCore::plainTextToMallocAllocatedBuffer(WebCore::Range const*, unsigned int&) | malloc | malloc_zone_malloc 

Hopefully this will be enough to help somebody find the leak.
Comment 1 Mark Rowe (bdash) 2008-06-28 22:30:24 PDT
It looks like -[WebHTMLView(WebDocumentPrivateProtocols) string] is being invoked from Safari.  The code inside WebKit is trivial and looks correct, which makes it likely that any bug here is in Safari code.
Comment 2 Cameron Zwarich (cpst) 2008-06-29 00:28:16 PDT
Reported as <rdar://6042418>. Closing this because it is extremely unlikely that this is a WebKit issue.