<?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>81159</bug_id>
          
          <creation_ts>2012-03-14 14:43:03 -0700</creation_ts>
          <short_desc>Assertion failures in WebCore::Page::goBackOrForward causing multiple &quot;crashes&quot; on Lion Intel Debug WebKit2 testers</short_desc>
          <delta_ts>2012-03-15 14:21:49 -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>History</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://build.webkit.org/results/Lion%20Intel%20Debug%20(WebKit2%20Tests)/r110728%20(4911)/css1/box_properties/border_bottom_width-crash-log.txt</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, LayoutTestFailure, MakingBotsRed, Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jessie Berlin">jberlin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>jberlin</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>578795</commentid>
    <comment_count>0</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2012-03-14 14:43:03 -0700</bug_when>
    <thetext>void Page::goBackOrForward(int distance)
{
    if (distance == 0)
        return;

    HistoryItem* item = backForward()-&gt;itemAtIndex(distance);
    if (!item) {
        if (distance &gt; 0) {
            if (int forwardCount = backForward()-&gt;forwardCount()) 
                item = backForward()-&gt;itemAtIndex(forwardCount);
        } else {
            if (int backCount = backForward()-&gt;backCount())
                item = backForward()-&gt;itemAtIndex(-backCount);
        }
    }

    ASSERT(item);
    if (!item)
        return;

    goToItem(item, FrameLoadTypeIndexedBackForward);
}

It is not clear that the assertion is valid, since it seems possible that you couldn&apos;t go back or forward.

This seems separate from the crash with a similar backtrace seen on Lion Intel Debug Tests (http://build.webkit.org/results/Lion%20Intel%20Debug%20%28Tests%29/r110714%20%284462%29/compositing/iframes/page-cache-layer-tree-crash-log.txt)

Unfortunately, I do not know when it started.

Here is a sample:

http://build.webkit.org/results/Lion%20Intel%20Debug%20(WebKit2%20Tests)/r110743%20(4915)/fast/frames/layout-after-destruction-crash-log.txt

Process:         WebProcess [24853]
Path:            /Volumes/VOLUME/*/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess
Identifier:      com.apple.WebProcess
Version:         536+ (536.3+)
Code Type:       X86-64 (Native)
Parent Process:  WebKitTestRunner [24842]

Date/Time:       2012-03-14 14:22:29.730 -0700
OS Version:      Mac OS X 10.7.2 (11C74)
Report Version:  9

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000bbadbeef

VM Regions Near 0xbbadbeef:
--&gt; 
    __TEXT                 000000010e447000-000000010e448000 [    4K] r-x/rwx SM=COW  /Volumes/VOLUME/*/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess

Application Specific Information:
objc[24853]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore             	0x00000001112a1b23 WebCore::Page::goBackOrForward(int) + 291 (Page.cpp:327)
1   com.apple.WebCore             	0x000000011020b3de WebCore::BackForwardController::goBackOrForward(int) + 30 (BackForwardController.cpp:60)
2   com.apple.WebCore             	0x0000000111243b42 WebCore::ScheduledHistoryNavigation::fire(WebCore::Frame*) + 338 (NavigationScheduler.cpp:206)
3   com.apple.WebCore             	0x000000011124181f WebCore::NavigationScheduler::timerFired(WebCore::Timer&lt;WebCore::NavigationScheduler&gt;*) + 175 (NavigationScheduler.cpp:419)
4   com.apple.WebCore             	0x0000000111243893 WebCore::Timer&lt;WebCore::NavigationScheduler&gt;::fired() + 115 (Timer.h:100)
5   com.apple.WebCore             	0x00000001118d0fa7 WebCore::ThreadTimers::sharedTimerFiredInternal() + 311 (ThreadTimers.cpp:118)
6   com.apple.WebCore             	0x00000001118d0ce9 WebCore::ThreadTimers::sharedTimerFired() + 25 (ThreadTimers.cpp:94)
7   com.apple.WebCore             	0x00000001116abcf3 _ZN7WebCoreL10timerFiredEP16__CFRunLoopTimerPv + 67 (SharedTimerMac.mm:167)
8   com.apple.CoreFoundation      	0x00007fff84dcaf84 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
9   com.apple.CoreFoundation      	0x00007fff84dcaad6 __CFRunLoopDoTimer + 534
10  com.apple.CoreFoundation      	0x00007fff84dab471 __CFRunLoopRun + 1617
11  com.apple.CoreFoundation      	0x00007fff84daaae6 CFRunLoopRunSpecific + 230
12  com.apple.HIToolbox           	0x00007fff897253d3 RunCurrentEventLoopInMode + 277
13  com.apple.HIToolbox           	0x00007fff8972c63d ReceiveNextEventCommon + 355
14  com.apple.HIToolbox           	0x00007fff8972c4ca BlockUntilNextEventMatchingListInMode + 62
15  com.apple.AppKit              	0x00007fff8cb3e3f1 _DPSNextEvent + 659
16  com.apple.AppKit              	0x00007fff8cb3dcf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
17  com.apple.AppKit              	0x00007fff8cb3a62d -[NSApplication run] + 470
18  com.apple.WebCore             	0x00000001115fab4c WebCore::RunLoop::run() + 92 (RunLoopMac.mm:101)
19  com.apple.WebKit2             	0x000000010e912ee4 WebKit::WebProcessMain(WebKit::CommandLine const&amp;) + 3556 (WebProcessMainMac.mm:176)
20  com.apple.WebKit2             	0x000000010e81e76f _ZL10WebKitMainRKN6WebKit11CommandLineE + 239 (WebKitMain.cpp:50)
21  com.apple.WebKit2             	0x000000010e81e652 WebKitMain + 178 (WebKitMain.cpp:74)
22  com.apple.WebProcess          	0x000000010e447d82 main + 290
23  com.apple.WebProcess          	0x000000010e447c54 start + 52</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578797</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2012-03-14 14:43:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/11049870&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>579735</commentid>
    <comment_count>2</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2012-03-15 14:21:49 -0700</bug_when>
    <thetext>Fixed in http://trac.webkit.org/changeset/110884</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>