<?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>137028</bug_id>
          
          <creation_ts>2014-09-23 10:20:55 -0700</creation_ts>
          <short_desc>[Win64] Exceptions with CHECK_HASHTABLE_ITERATORS</short_desc>
          <delta_ts>2014-09-24 14:46:54 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>133553</dup_id>
          
          <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="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1036751</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-09-23 10:20:55 -0700</bug_when>
    <thetext>I&apos;m encountering exceptions when attempting to run TestWebKitAPI under 64-bit (Debug) Windows builds. This appears to be happening when a HashTable is being destroyed, and the &apos;invalidateIterators&apos; call is made.

Unhandled exception at 0x00007FF94D425BF8 in TestWebKitAPI.exe: Microsoft C++ exception: Concurrency::scheduler_resource_allocation_error at memory location 0x000000000013F788.

Call stack:

 	KernelBase.dll!RaiseException()	Unknown
 	[External Code]	
 	WebKit.dll!Concurrency::details::SchedulerBase::SchedulerBase(const Concurrency::SchedulerPolicy &amp; policy) Line 149	C++
 	WebKit.dll!Concurrency::details::ThreadScheduler::ThreadScheduler(const Concurrency::SchedulerPolicy &amp; policy) Line 27	C++
 	WebKit.dll!Concurrency::details::ThreadScheduler::Create(const Concurrency::SchedulerPolicy &amp; policy) Line 34	C++
 	WebKit.dll!Concurrency::details::SchedulerBase::CreateWithoutInitializing(const Concurrency::SchedulerPolicy &amp; policy) Line 285	C++
 	WebKit.dll!Concurrency::details::SchedulerBase::GetDefaultScheduler() Line 654	C++
 	WebKit.dll!Concurrency::details::SchedulerBase::CreateContextFromDefaultScheduler() Line 573	C++
 	WebKit.dll!Concurrency::details::LockQueueNode::LockQueueNode(unsigned int timeout) Line 619	C++
 	WebKit.dll!Concurrency::critical_section::lock() Line 1031	C++
 	WebKit.dll!mtx_do_lock(_Mtx_internal_imp_t * * mtx, const xtime * target) Line 67	C++
 	WebKit.dll!std::_Mtx_lockX(_Mtx_internal_imp_t * * _Mtx) Line 68	C++
 	WebKit.dll!std::_Mutex_base::lock() Line 42	C++
 	WebKit.dll!std::lock_guard&lt;std::mutex&gt;::lock_guard&lt;std::mutex&gt;(std::mutex &amp; _Mtx) Line 184	C++
&gt;	WebKit.dll!WTF::HashTable&lt;WebCore::ProtectionSpace,WTF::KeyValuePair&lt;WebCore::ProtectionSpace,WebCore::Credential&gt;,WTF::KeyValuePairKeyExtractor&lt;WTF::KeyValuePair&lt;WebCore::ProtectionSpace,WebCore::Credential&gt; &gt;,WebCore::ProtectionSpaceHash,WTF::HashMap&lt;WebCore::ProtectionSpace,WebCore::Credential,WebCore::ProtectionSpaceHash,WTF::HashTraits&lt;WebCore::ProtectionSpace&gt;,WTF::HashTraits&lt;WebCore::Credential&gt; &gt;::KeyValuePairTraits,WTF::HashTraits&lt;WebCore::ProtectionSpace&gt; &gt;::invalidateIterators() Line 1292	C++
 	WebKit.dll!WTF::HashTable&lt;WTF::ListHashSetNode&lt;WebCore::RenderBox * __ptr64,16&gt; * __ptr64,WTF::ListHashSetNode&lt;WebCore::RenderBox * __ptr64,16&gt; * __ptr64,WTF::IdentityExtractor,WTF::ListHashSetNodeHashFunctions&lt;WTF::PtrHash&lt;WebCore::RenderBox * __ptr64&gt; &gt;,WTF::HashTraits&lt;WTF::ListHashSetNode&lt;WebCore::RenderBox * __ptr64,16&gt; * __ptr64&gt;,WTF::HashTraits&lt;WTF::ListHashSetNode&lt;WebCore::RenderBox * __ptr64,16&gt; * __ptr64&gt; &gt;::~HashTable&lt;WTF::ListHashSetNode&lt;WebCore::RenderBox * __ptr64,16&gt; * __ptr64,WTF::ListHashSetNode&lt;WebCore::RenderBox * __ptr64,16&gt; * __ptr64,WTF::IdentityExtractor,WTF::ListHashSetNodeHashFunctions&lt;WTF::PtrHash&lt;WebCore::RenderBox * __ptr64&gt; &gt;,WTF::HashTraits&lt;WTF::ListHashSetNode&lt;WebCore::RenderBox * __ptr64,16&gt; * __ptr64&gt;,WTF::HashTraits&lt;WTF::ListHashSetNode&lt;WebCore::RenderBox * __ptr64,16&gt; * __ptr64&gt; &gt;() Line 352	C++
 	[External Code]	

The TestWebKitAPI program has proceeded as follows:

WebCoreLayoutUnit.
  LayoutUnitInt
  LayoutUnitFloat
  LayoutUnitRounding
  LayoutUnitMultiplication
  LayoutUnitDivision
  LayoutUnitCeil
  LayoutUnitFloor
WebViewDestruction.
  NoInitWithFrame
  CloseWithoutInitWithFrame
WebViewDestructionWithHostWindow.
  CloseWithoutDestroyViewWindow
  DestroyViewWindowWithoutClose
  CloseThenDestroyViewWindow
  DestroyViewWindowThenClose
  DestroyHostWindow
  DestroyHostWindowThenClose
  CloseThenDestroyHostWindow
RetainPtr.
  AdoptCF
RetainPtrHashing.
  HashSet
  HashMapKey
  HashMapValue
WTF.
  Checked_int8_t
  Checked_int16_t
  Checked_int32_t
  Checked_uint32_t
  Checked_int64_t
  Checked_uint64_t
  Lrint
  clampToIntLong
  clampToIntLongLong
  clampToIntegerFloat
  clampToIntegerDouble
  clampToFloat
  clampToUnsignedLong
  clampToUnsignedLongLong
  MediaTime
  SaturatedArithmeticAddition
  SaturatedArithmeticSubtraction
  StringHasher
  StringHasher_addCharacter
  StringHasher_addCharacters
  StringHasher_addCharactersAssumingAligned
  StringHasher_computeHash
  StringHasher_computeHashAndMaskTop8Bits
  StringHasher_hashMemory
  StringOperators
FunctionalTest.
  Basic
  UnaryBind
  BinaryBind
  MemberFunctionBind
  MemberFunctionBindRefDeref
  RefCountedStorage
WTF_HashMap.
  HashTableIteratorComparison
  DoubleHashCollisions
  MoveOnlyValues
  MoveOnlyKeys
  InitializerList
  EfficientGetter
  OwnPtrKey
  OwnPtrKey_FindUsingRawPointer
  OwnPtrKey_ContainsUsingRawPointer
  OwnPtrKey_GetUsingRawPointer
  OwnPtrKey_RemoveUsingRawPointer
  OwnPtrKey_TakeUsingRawPointer
  UniquePtrKey
  UniquePtrKey_CustomDeleter
  UniquePtrKey_FindUsingRawPointer
  UniquePtrKey_ContainsUsingRawPointer
  UniquePtrKey_GetUsingRawPointer
  UniquePtrKey_RemoveUsingRawPointer
  UniquePtrKey_TakeUsingRawPointer
WTF_MD5.
  Computation
WTF_Ref.
  Basic
  Assignment
  ReturnValue
WTF_RefPtr.
  Basic
  AssignPassRefToRefPtr
  Adopt
  Assignment
  Swap
  ReleaseNonNull
  Release
  ReturnValue
WTF_SHA1.
  Computation
WTF_Vector.
  Basic
  Iterator
  OverloadedOperatorAmpersand
  AppendLast
  InitializerList
  Reverse
  ReverseIterator
  MoveOnly_UncheckedAppend
  MoveOnly_Append
  MoveOnly_Insert
  MoveOnly_TakeLast
  VectorOfVectorsOfVectorsInlineCapacitySwap</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1036984</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-09-24 10:27:14 -0700</bug_when>
    <thetext>This exception seems to be happening after the tests complete, during program shutdown (i.e., at the point where the program is returning from &apos;main&apos;.

From the signature of the HashTable, it looks like this is a ListHashSet object.

A cursory scan through the sources doesn&apos;t reveal any likely ListHashSet global objects that might be the cause.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1037028</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-09-24 14:46:54 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 133553 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>