[Webkit-unassigned] [Bug 76046] New: Editing 100% CPU usage/OOM

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 11 02:58:29 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=76046

           Summary: Editing 100% CPU usage/OOM
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P1
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: skylined at chromium.org
                CC: rniwa at webkit.org


Created an attachment (id=122000)
 --> (https://bugs.webkit.org/attachment.cgi?id=122000&action=review)
Repro

Chromium: http://code.google.com/p/chromium/issues/detail?id=109848
100% CPU usage and excessive memory consumption followed by OOM crash:

<html xmlns="http://www.w3.org/1999/xhtml">
  <body contenteditable="true">
    <a>a</a>
    <script>
      window.onload=function() {
        document.execCommand("selectall", false);
        document.execCommand("bold");
        document.execCommand("delete", false);
        document.execCommand("InsertUnorderedList");
        document.execCommand("InsertHorizontalRule", false);
        document.execCommand("insertorderedlist");
        document.execCommand("InsertUnorderedList");
        document.execCommand("InsertHorizontalRule", false);
        document.execCommand("insertunorderedlist", false);
        document.execCommand("InsertHorizontalRule", false);
        document.execCommand("SelectAll", false);
        document.execCommand("insertorderedlist");
      }
    </script>
  </body>
</html>

The 100% CPU usage appears to happen in a loop that calls multiple functions. Since the OOM can happen at any time during this loop, it doesn't always crash in the same function.

ids:
chrome.dll!WTF::Vector<...>::appendSlowCase<...> OOM (a02cd9dbc90dd06d3d67f848a320d404)
chrome.dll!WebCore::AppendNodeCommand::create OOM (b17678df345d83e66857c8a540d6b31c)
chrome.dll!WebCore::HTMLHRElement::create OOM (f86292f44505cf88e32222b8dd617b22)
chrome.dll!WebCore::Element::createAttributeMap OOM (c329c8b8e1832ba1d716a90ba2a0254b)
chrome.dll!WebCore::RenderObject::createObject OOM (2bf5a0674e6718fe3c50ec77153f5e86)
chrome.dll!WebCore::AccessibilityRenderObject::create OOM (9c4215875b664dd2b1eb382058c7eeab)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list