<?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>84517</bug_id>
          
          <creation_ts>2012-04-20 17:34:51 -0700</creation_ts>
          <short_desc>ASSERT(revalidatingResource-&gt;inCache()) failure in MemoryCache::revalidationSucceeded()</short_desc>
          <delta_ts>2012-10-17 13:00:05 -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>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>
          
          <blocked>66687</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Xianzhu Wang">wangxianzhu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>japhet</cc>
    
    <cc>koivisto</cc>
    
    <cc>martijn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>607098</commentid>
    <comment_count>0</comment_count>
    <who name="Xianzhu Wang">wangxianzhu</who>
    <bug_when>2012-04-20 17:34:51 -0700</bug_when>
    <thetext>Encountered this on chromium-android by repeatedly openning new tabs, closing tabs, reloading tabs, switching between tabs, etc.

The reason seems:
MemoryCache::clear() might be called on low memory condition during a resource revalidation, causing the resources to be evicted, then some ASSERTs in MemoryCache::revalidationSucceeded() may fail:

ASSERT(revalidatingResource-&gt;inCache());
ASSERT(!m_resources.get(resource-&gt;url()));  // There might be another revalidating or revalidated resource after the original revalidation is evicted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>620096</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-05-09 17:32:03 -0700</bug_when>
    <thetext>So, the ASSERT is wrong and should be removed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>620110</commentid>
    <comment_count>2</comment_count>
    <who name="Xianzhu Wang">wangxianzhu</who>
    <bug_when>2012-05-09 17:41:34 -0700</bug_when>
    <thetext>I think the ASSERTs are useful in most cases. Perhaps we need some logic to handle the low memory eviction case, e.g. to prevent revalidating resources from being evicted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>744525</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-10-17 13:00:05 -0700</bug_when>
    <thetext>This appears to have been resolved in some other way.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>