Status: Untriaged
Owner: ----
CC: [email protected]
Labels: Type-Bug Pri-3 OS-All Area-WebKit Size-Medium

New issue 18339 by [email protected]: Memory leak in  
WebCore::buildBaseTextCodecMaps()?
http://code.google.com/p/chromium/issues/detail?id=18339

Seen so far in two ui tests:
  ChromeMainTest.ReuseBrowserInstanceWhenOpeningFile
  AutomatedUITestBase.CloseTab
on my linux box.  Doesn't seem to happen every time.

Probably pretty minor -- do we care if we leak codec names?

Valgrind complains

08:09:51 memcheck_analyze.py [ERROR] Leak_DefinitelyLost
768 bytes in 1 blocks are definitely lost in loss record 530 of 564
   malloc  
(valgrind-20090730/coregrind/m_replacemalloc/vg_replace_malloc.c:194)
   WTF::fastMalloc(unsigned int)
(third_party/WebKit/JavaScriptCore/wtf/FastMalloc.cpp:227)
   WTF::HashTable<char const*, std::pair<...)
(third_party/WebKit/JavaScriptCore/wtf/HashTable.h:860)
   WTF::HashTable<char const*, std::pair<...)
(third_party/WebKit/JavaScriptCore/wtf/HashTable.h:907)
   WTF::HashTable<char const*, std::pair<...)
(third_party/WebKit/JavaScriptCore/wtf/HashTable.h:889)
   std::pair<WTF::HashTableIterator<...)
(third_party/WebKit/JavaScriptCore/wtf/HashTable.h:625)
   WTF::HashMap<char const*, WebCore::TextCodecFactory,...)
(third_party/WebKit/JavaScriptCore/wtf/HashMap.h:181)
   WebCore::addToTextCodecMap(char const*,
WTF::PassOwnPtr<...)(WebCore::TextEncoding const&, void const*), void
const*)  
(third_party/WebKit/WebCore/platform/text/TextEncodingRegistry.cpp:171)
   WebCore::TextCodecLatin1::registerCodecs(void (*)(char const*,
WTF::PassOwnPtr<WebCore::TextCodec> (*)(WebCore::TextEncoding const&, void
const*), void const*))
(third_party/WebKit/WebCore/platform/text/TextCodecLatin1.cpp:113)
   WebCore::buildBaseTextCodecMaps()
(third_party/WebKit/WebCore/platform/text/TextEncodingRegistry.cpp:184)
   WebCore::atomicCanonicalTextEncodingName(char const*)
(third_party/WebKit/WebCore/platform/text/TextEncodingRegistry.cpp:241)
   WebCore::TextEncoding::TextEncoding(char const*)
(third_party/WebKit/WebCore/platform/text/TextEncoding.cpp:61)
   WebCore::UTF8Encoding()
(third_party/WebKit/WebCore/platform/text/TextEncoding.cpp:266)
   WebCore::String::fromUTF8(char const*)
(third_party/WebKit/WebCore/platform/text/String.cpp:681)
   WebKit::WebString::fromUTF8(char const*) (webkit/api/src/WebString.cpp:77)
   RenderThread::EnsureWebKitInitialized()
(chrome/renderer/render_thread.cc:356)



--
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