<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>97424</bug_id>
          
          <creation_ts>2012-09-23 22:16:46 -0700</creation_ts>
          <short_desc>Hang in WebCore::SelectorDataList::execute&lt;0&gt;</short_desc>
          <delta_ts>2022-07-13 15:33:26 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike Lawther">mikelawther</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>inferno</cc>
    
    <cc>kling</cc>
    
    <cc>koivisto</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>726386</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Lawther">mikelawther</who>
    <bug_when>2012-09-23 22:16:46 -0700</bug_when>
    <thetext>As reported in http://code.google.com/p/chromium/issues/detail?id=148736:

We are seeing hangs in WebCore (83% of them hanging on http://live.gizmodo.com/).

Stack looks like:

0x5e612eee	 [chrome.dll]	 - selectorquery.cpp:118 (cs|src|ann)]	WebCore::SelectorDataList::execute&lt;0&gt;(WebCore::SelectorChecker const &amp;,WebCore::Node *,WTF::Vector&lt;WTF::RefPtr&lt;WebCore::Node&gt;,0&gt; &amp;)
0x5e612d50	 [chrome.dll]	 - selectorquery.cpp:62 (cs|src|ann)]	WebCore::SelectorDataList::queryAll(WebCore::SelectorChecker const &amp;,WebCore::Node *)
0x5e612d0d	 [chrome.dll]	 - selectorquery.cpp:158 (cs|src|ann)]	WebCore::SelectorQuery::queryAll(WebCore::Node *)
0x5e611d1b	 [chrome.dll]	 - node.cpp:1624 (cs|src|ann)]	WebCore::Node::querySelectorAll(WTF::AtomicString const &amp;,int &amp;)

Looking at SelectorQuery.cpp:118, it looks like this:

117: while (n) {
118:   if (n-&gt;isElementNode())
119:     ...;

So it looks like the hang is due to an infinite loop over the tree.

Not sure how the tree gets in a state where such an infinite loop is possible, but filing the bug here anyway.

Antti - as you wrote the code initially, any ideas how this could be happening?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883420</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-13 15:33:26 -0700</bug_when>
    <thetext>This code has been significantly refactored since this patch was proposed. There doesn&apos;t seem to be any action we can take here.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>