Crash in ElementDescendantIterator::operator--() when calling m_ancestorSiblingStack.last(): Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.JavaScriptCore 0x000000010f369b57 WTFCrash + 39 (Assertions.cpp:322) 1 com.apple.WebCore 0x000000011158a7d9 WTF::CrashOnOverflow::crash() + 9 2 com.apple.WebCore 0x000000011158a7c9 WTF::CrashOnOverflow::overflowed() + 9 3 com.apple.WebCore 0x00000001115a6f9b WTF::Vector<WebCore::Element*, 16ul, WTF::CrashOnOverflow, 16ul>::at(unsigned long) + 75 (Vector.h:660) 4 com.apple.WebCore 0x00000001115a6e1b WTF::Vector<WebCore::Element*, 16ul, WTF::CrashOnOverflow, 16ul>::last() + 43 (Vector.h:700) 5 com.apple.WebCore 0x00000001115a68c4 WebCore::ElementDescendantIterator::operator--() + 244 (ElementDescendantIterator.h:174) 6 com.apple.WebCore 0x000000011391a674 void WebCore::CollectionTraversal<(WebCore::CollectionTraversalType)0>::traverseBackward<WebCore::HTMLTagCollection>(WebCore::HTMLTagCollection const&, WebCore::ElementDescendantIterator&, unsigned int) + 148 (CollectionTraversal.h:108) 7 com.apple.WebCore 0x000000011391a45b WebCore::CachedHTMLCollection<WebCore::HTMLTagCollection, (WebCore::CollectionTraversalType)0>::collectionTraverseBackward(WebCore::ElementDescendantIterator&, unsigned int) const + 43 (CachedHTMLCollection.h:53) 8 com.apple.WebCore 0x000000011391a30a WebCore::CollectionIndexCache<WebCore::HTMLTagCollection, WebCore::ElementDescendantIterator>::traverseBackwardTo(WebCore::HTMLTagCollection const&, unsigned int) + 586 (CollectionIndexCache.h:125) 9 com.apple.WebCore 0x00000001139197fe WebCore::CollectionIndexCache<WebCore::HTMLTagCollection, WebCore::ElementDescendantIterator>::nodeAt(WebCore::HTMLTagCollection const&, unsigned int) + 302 (CollectionIndexCache.h:181) 10 com.apple.WebCore 0x0000000113916654 WebCore::CachedHTMLCollection<WebCore::HTMLTagCollection, (WebCore::CollectionTraversalType)0>::item(unsigned int) const + 52 (CachedHTMLCollection.h:43) 11 com.apple.WebCore 0x0000000112814009 WebCore::jsHTMLCollectionPrototypeFunctionItem(JSC::ExecState*) + 537 (JSHTMLCollection.cpp:239) 12 ??? 0x0000304244001028 0 + 53061166829608
rdar://problem/25750864
Created attachment 276671 [details] Patch
Comment on attachment 276671 [details] Patch Clearing flags on attachment: 276671 Committed r199693: <http://trac.webkit.org/changeset/199693>
All reviewed patches have been landed. Closing bug.