Status: Untriaged
Owner: ----
Labels: Type-Bug Pri-2 OS-Linux Area-WebKit Size-Medium Valgrind

New issue 17184 by [email protected]: Memory leaks in  
WebCore::Pasteboard::writeSelection()
http://code.google.com/p/chromium/issues/detail?id=17184

The command
   sh tools/valgrind/valgrind_webkit_tests.sh LayoutTests/editing/pasteboard  
&
creates a number of log files, one for each file in pasteboard/*,
and then when done concatenates them all together.  Many of them
show memory leaks.  It is tempting to run that script on just a few files,
but it doesn't work properly, so you have to do it on the big directory, and
look at the log files as they appear.

The first valgrind warning that shows up in its output is

2,214 (580 direct, 1,634 indirect) bytes in 2 blocks are definitely lost in  
loss record 800 of
880
    at malloc (vg_replace_malloc.c:193)
    by WTF::fastMalloc(unsigned int) (FastMalloc.cpp:225)
    by WebCore::StringImpl::operator new(unsigned int) (StringImpl.cpp:72)
    by WebCore::StringImpl::adopt(WTF::Vector<unsigned short, 0u>&)  
(StringImpl.cpp:985)
    by WebCore::createMarkup(WebCore::Range const*,  
WTF::Vector<WebCore::Node*, 0u>*,
WebCore::EAnnotateForInterchange, bool) (PlatformString.h:87)
    by WebCore::Pasteboard::writeSelection(WebCore::Range*, bool,  
WebCore::Frame*)
(PasteboardChromium.cpp:73)
    by WebCore::Editor::cut() (Editor.cpp:1023)
    by WebCore::executeCut(WebCore::Frame*, WebCore::Event*,
WebCore::EditorCommandSource, WebCore::String const&)  
(EditorCommand.cpp:276)
    by WebCore::Editor::Command::execute(WebCore::String const&,  
WebCore::Event*) const
(EditorCommand.cpp:1480)
    by WebCore::Document::execCommand(WebCore::String const&, bool,  
WebCore::String
const&) (Document.cpp:3217)
    by WebCore::DocumentInternal::execCommandCallback(v8::Arguments const&)
(V8Document.cpp:653)
    by v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**)  
(builtins.cc:381)




--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to