[Webkit-unassigned] [Bug 25312] New: Infinite loop in WebCore::Position::upstream while selecting a block of text

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 21 13:41:47 PDT 2009


           Summary: Infinite loop in WebCore::Position::upstream while
                    selecting a block of text
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Critical
          Priority: P1
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: finnur.webkit at gmail.com

Please disregard the version above. I filed this against Chromium, which is
where this reproduces - but eseidel asked that I file this here so we can CC
members of WebKit on this bug. This was originally filed as


In the dev build of Google Chrome, I selected a block of text on Facebook and
noticed that the renderer became unresponsive, spinning the CPU at 100%. I
reproduced this over and over with no problem (across restart of Chrome and
across an update to the latest dev build, as it was reproducing on the previous
one as well). 

I took a process snapshot once (see attachment on Chromium bug) and was able to
step through with WinDbg. I noticed that once I try to Step Out of
WebCore::Position::upstream it starts spinning the CPU. 

ChildEBP RetAddr  
00caf844 01f1ab81 chrome_1c30000!WebCore::canHaveChildrenForEditing+0xc2
00caf84c 01f1ab6e chrome_1c30000!WebCore::editingIgnoresContent+0x8
00caf850 01ebf97d chrome_1c30000!WebCore::isAtomicNode+0x16
00caf858 01ebfa34 chrome_1c30000!WebCore::isStreamer+0x10
00caf8a4 01ea01d9 chrome_1c30000!WebCore::Position::upstream+0xaa
00caf8e0 01e9f23b
00caf910 01e9f200 chrome_1c30000!WebCore::VisiblePosition::init+0x26
00caf928 01ea93a0 chrome_1c30000!WebCore::VisiblePosition::VisiblePosition+0x2e
00caf944 01f3054c
00caf968 01ea8933 chrome_1c30000!WebCore::RenderText::positionForPoint+0x173
00caf980 01f29f25
00caf99c 01f29fef
00caf9cc 01ea8933 chrome_1c30000!WebCore::RenderBlock::positionForPoint+0xb2
00caf9e4 01f29e9f
00cafa0c 01f2a041
00cafa34 01ea8933 chrome_1c30000!WebCore::RenderBlock::positionForPoint+0x104
00cafa4c 01f29e9f
00cafa74 01f2a041
00cafa98 01eb9bf3 chrome_1c30000!WebCore::RenderBlock::positionForPoint+0x104
00cafb20 01eb9b23

Basically, it is looping forever in Position::upstream because it seems to
never go into any of the if 
statements within the for loop. It just loops forever.

I stepped into PositionIterator::decrement(). m_parent points to a node, but
m_child is 
NULL. As a result, decrement() just calls Position::uncheckedPreviousOffset(),
effectively decrements m_offset... 

However, m_offset is this ridiculously large number (2061442196 and
shrinking)... Does 
that make any sense?

NOTE: I am not able to repro this on my development machine and not able to
repro this in Safari 4 on my laptop either. There is something about my
Thinkpad laptop that triggers this, it seems.

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

More information about the webkit-unassigned mailing list