Bug 13060

Summary: REGRESSION: Repro ASSERT failure in Cache::adjustSize running layout tests
Product: WebKit Reporter: Geoffrey Garen <ggaren>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: hyatt
Priority: P1 Keywords: InRadar, LayoutTestFailure, Regression
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   

Description Geoffrey Garen 2007-03-13 13:04:34 PDT
This bug is also in Radar as <rdar://5060208>

* STEPS TO REPRODUCE
run-webkit-tests --leaks fast/dom

[12:47pm] darin: ASSERTION FAILED: delta >= 0 || ((int)m_liveResourcesSize + delta >= 0)
[12:47pm] darin: (/Users/darin/Safari/OpenSource/WebCore/loader/Cache.cpp:352 void WebCore::Cache::adjustSize(bool, int))

Darin says this is reproducible 100% of the time.

-------------------------------------------

<GMT13-Mar-2007 19:52:36GMT> Geoff Garen:
I think this is a regression caused by Hyatt's recent cache changes.
Comment 1 Antti Koivisto 2007-03-14 10:09:10 PDT
CachedScript is dereferenced twice in fast/dom/script-element-gc.html, causing m_liveResourcesSize underflow.
Comment 2 Antti Koivisto 2007-03-14 13:59:30 PDT
r20194