<?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>61064</bug_id>
          
          <creation_ts>2011-05-18 09:05:17 -0700</creation_ts>
          <short_desc>Some tests crashing in JSC::MarkStack::validateValue beneath ScriptController::clearWindowShell on SnowLeopard Intel Release (WebKit2 Tests)</short_desc>
          <delta_ts>2011-05-18 17:58:34 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(WebKit2%20Tests)/r86761%20(11774)/dom/html/level1/core/hc_nodeelementnodeattributes-crash-log.txt</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, LayoutTestFailure, MakingBotsRed</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Oliver Hunt">oliver</assigned_to>
          <cc>ggaren</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>405764</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-05-18 09:05:17 -0700</bug_when>
    <thetext>dom/html/level1/core/hc_nodeelementnodeattributes.html crashed once in JSC::MarkStack::validateValue on SnowLeopard Intel Release (WebKit2 Tests).

http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(WebKit2%20Tests)/r86761%20(11774)/dom/html/level1/core/hc_nodeelementnodeattributes-crash-log.txt


Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000011088c3c8
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x000000010083038e JSC::MarkStack::validateValue(JSC::JSValue) + 62 (WriteBarrier.h:97)
1   com.apple.JavaScriptCore      	0x000000010083099a JSC::MarkStack::visitChildren(JSC::JSCell*) + 554 (MarkStack.cpp:138)
2   com.apple.JavaScriptCore      	0x00000001008306c7 JSC::MarkStack::drain() + 455 (MarkStack.h:162)
3   com.apple.JavaScriptCore      	0x000000010082d23c JSC::Heap::markRoots() + 268 (Heap.cpp:227)
4   com.apple.JavaScriptCore      	0x000000010082d685 JSC::Heap::reset(JSC::Heap::SweepToggle) + 37 (Heap.cpp:396)
5   com.apple.JavaScriptCore      	0x000000010082d783 JSC::Heap::allocateSlowCase(unsigned long) + 19 (Heap.cpp:124)
6   com.apple.JavaScriptCore      	0x000000010080048a JSC::Structure::addPropertyTransition(JSC::JSGlobalData&amp;, JSC::Structure*, JSC::Identifier const&amp;, unsigned int, JSC::JSCell*, unsigned long&amp;) + 2762 (JSCell.h:409)
7   com.apple.JavaScriptCore      	0x000000010063664d JSC::JSObject::putDirectInternal(JSC::JSGlobalData&amp;, JSC::Identifier const&amp;, JSC::JSValue, unsigned int, bool, JSC::PutPropertySlot&amp;, JSC::JSCell*) + 2365 (JSObject.h:657)
8   com.apple.JavaScriptCore      	0x00000001006b9d6b JSC::ErrorInstance::ErrorInstance(JSC::JSGlobalData*, JSC::Structure*) + 315 (RefPtr.h:58)
9   com.apple.JavaScriptCore      	0x00000001006ba8bd JSC::ErrorPrototype::ErrorPrototype(JSC::ExecState*, JSC::JSGlobalObject*, JSC::Structure*) + 45 (ErrorPrototype.cpp:54)
10  com.apple.JavaScriptCore      	0x0000000100751e5e JSC::JSGlobalObject::reset(JSC::JSValue) + 4798 (JSValueInlineMethods.h:386)
11  com.apple.WebCore             	0x0000000100f51691 WebCore::JSDOMGlobalObject::JSDOMGlobalObject(JSC::JSGlobalData&amp;, JSC::Structure*, WTF::PassRefPtr&lt;WebCore::DOMWrapperWorld&gt;, JSC::JSObject*) + 833 (JSDOMGlobalObject.cpp:48)
12  com.apple.WebCore             	0x0000000100fa0d56 WebCore::JSDOMWindowBase::JSDOMWindowBase(JSC::JSGlobalData&amp;, JSC::Structure*, WTF::PassRefPtr&lt;WebCore::DOMWindow&gt;, WebCore::JSDOMWindowShell*) + 54 (PassRefPtr.h:74)
13  com.apple.WebCore             	0x0000000100f72ba3 WebCore::JSDOMWindow::JSDOMWindow(JSC::JSGlobalData&amp;, JSC::Structure*, WTF::PassRefPtr&lt;WebCore::DOMWindow&gt;, WebCore::JSDOMWindowShell*) + 35 (PassRefPtr.h:74)
14  com.apple.WebCore             	0x0000000100faa1de WebCore::JSDOMWindowShell::setWindow(WTF::PassRefPtr&lt;WebCore::DOMWindow&gt;) + 526 (PassRefPtr.h:74)
15  com.apple.WebCore             	0x000000010156a609 WebCore::ScriptController::clearWindowShell(bool) + 217 (PassRefPtr.h:74)
16  com.apple.WebCore             	0x0000000100cbb215 WebCore::FrameLoader::clear(bool, bool, bool) + 389 (FrameLoader.cpp:630)
17  com.apple.WebCore             	0x0000000100b7af05 WebCore::DocumentWriter::begin(WebCore::KURL const&amp;, bool, WebCore::SecurityOrigin*) + 197 (DocumentWriter.cpp:128)
18  com.apple.WebCore             	0x0000000100cc3a93 WebCore::FrameLoader::receivedFirstData() + 51 (FrameLoader.cpp:660)
19  com.apple.WebCore             	0x0000000100b7ab99 WebCore::DocumentWriter::setEncoding(WTF::String const&amp;, bool) + 41 (RefPtr.h:60)
20  com.apple.WebCore             	0x0000000100b6be01 WebCore::DocumentLoader::commitData(char const*, int) + 81 (DocumentLoader.cpp:321)
21  com.apple.WebKit2             	0x0000000100232c26 WebKit::WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) + 70 (RefPtr.h:60)
22  com.apple.WebKit2             	0x0000000100233c55 WebKit::WebFrameLoaderClient::finishedLoading(WebCore::DocumentLoader*) + 59 (WebFrameLoaderClient.cpp:820)
23  com.apple.WebCore             	0x0000000100cc36b2 WebCore::FrameLoader::finishedLoadingDocument(WebCore::DocumentLoader*) + 130 (FrameLoader.cpp:2352)
24  com.apple.WebCore             	0x0000000100b69bc0 WebCore::DocumentLoader::finishedLoading() + 48 (DocumentLoader.cpp:288)
25  com.apple.WebCore             	0x0000000100cc2bda WebCore::FrameLoader::finishedLoading() + 90 (FrameLoader.cpp:2277)
26  com.apple.WebCore             	0x0000000101364f13 WebCore::MainResourceLoader::didFinishLoading(double) + 147 (MainResourceLoader.cpp:485)
27  com.apple.WebCore             	0x0000000101365976 WebCore::MainResourceLoader::continueAfterContentPolicy(WebCore::PolicyAction, WebCore::ResourceResponse const&amp;) + 982 (MainResourceLoader.cpp:319)
28  com.apple.WebCore             	0x0000000101365baf WebCore::MainResourceLoader::continueAfterContentPolicy(WebCore::PolicyAction) + 127 (MainResourceLoader.cpp:333)
29  com.apple.WebCore             	0x00000001013e4162 WebCore::PolicyChecker::continueAfterContentPolicy(WebCore::PolicyAction) + 834 (PolicyChecker.cpp:191)
30  com.apple.WebKit2             	0x00000001002351b2 WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse(void (WebCore::PolicyChecker::*)(WebCore::PolicyAction), WebCore::ResourceResponse const&amp;, WebCore::ResourceRequest const&amp;) + 200 (WebFrameLoaderClient.cpp:592)
31  com.apple.WebCore             	0x0000000101367e04 WebCore::MainResourceLoader::didReceiveResponse(WebCore::ResourceResponse const&amp;) + 2260 (RefCounted.h:91)
32  com.apple.WebCore             	0x0000000101366003 WebCore::MainResourceLoader::handleEmptyLoad(WebCore::KURL const&amp;, bool) + 323 (RetainPtr.h:72)
33  com.apple.WebCore             	0x0000000101369766 WebCore::MainResourceLoader::loadNow(WebCore::ResourceRequest&amp;) + 534 (MainResourceLoader.cpp:583)
34  com.apple.WebCore             	0x000000010136a908 WebCore::MainResourceLoader::load(WebCore::ResourceRequest const&amp;, WebCore::SubstituteData const&amp;) + 1192 (MainResourceLoader.cpp:612)
35  com.apple.WebCore             	0x0000000100b6a5e3 WebCore::DocumentLoader::startLoadingMainResource(unsigned long) + 131 (DocumentLoader.cpp:809)
36  com.apple.WebCore             	0x0000000100cba0b5 WebCore::FrameLoader::continueLoadAfterWillSubmitForm() + 213 (FrameLoader.cpp:2554)
37  com.apple.WebCore             	0x0000000100cc6d47 WebCore::FrameLoader::continueLoadAfterNavigationPolicy(WebCore::ResourceRequest const&amp;, WTF::PassRefPtr&lt;WebCore::FormState&gt;, bool) + 551 (FrameLoader.cpp:3085)
38  com.apple.WebCore             	0x0000000100cc6db5 WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy(void*, WebCore::ResourceRequest const&amp;, WTF::PassRefPtr&lt;WebCore::FormState&gt;, bool) + 37 (PassRefPtr.h:74)
39  com.apple.WebCore             	0x00000001013e0d01 WebCore::PolicyCallback::call(bool) + 81 (PassRefPtr.h:74)
40  com.apple.WebCore             	0x00000001013e370a WebCore::PolicyChecker::continueAfterNavigationPolicy(WebCore::PolicyAction) + 1770 (PolicyChecker.cpp:164)
41  com.apple.WebKit2             	0x00000001002355cc WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction(void (WebCore::PolicyChecker::*)(WebCore::PolicyAction), WebCore::NavigationAction const&amp;, WebCore::ResourceRequest const&amp;, WTF::PassRefPtr&lt;WebCore::FormState&gt;) + 314 (WebFrameLoaderClient.cpp:653)
42  com.apple.WebCore             	0x00000001013e48c3 WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&amp;, WebCore::DocumentLoader*, WTF::PassRefPtr&lt;WebCore::FormState&gt;, void (*)(void*, WebCore::ResourceRequest const&amp;, WTF::PassRefPtr&lt;WebCore::FormState&gt;, bool), void*) + 1859 (PassRefPtr.h:74)
43  com.apple.WebCore             	0x0000000100cc8af0 WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WTF::PassRefPtr&lt;WebCore::FormState&gt;) + 1664 (PassRefPtr.h:74)
44  com.apple.WebCore             	0x0000000100cc977a WebCore::FrameLoader::load(WebCore::DocumentLoader*) + 186 (PassRefPtr.h:74)
45  com.apple.WebCore             	0x0000000100cc99fb WebCore::FrameLoader::load(WebCore::ResourceRequest const&amp;, WebCore::SubstituteData const&amp;, bool) + 347 (PassRefPtr.h:58)
46  com.apple.WebCore             	0x0000000100ccfcaa WebCore::FrameLoader::load(WebCore::ResourceRequest const&amp;, bool) + 122 (RefPtr.h:58)
47  com.apple.WebKit2             	0x000000010023ec13 WebKit::WebPage::loadURLRequest(WebCore::ResourceRequest const&amp;, WebKit::SandboxExtension::Handle const&amp;) + 55 (MessageSender.h:38)
48  com.apple.WebKit2             	0x000000010023ecae WebKit::WebPage::loadURL(WTF::String const&amp;, WebKit::SandboxExtension::Handle const&amp;) + 126 (ResourceRequest.h:49)
49  com.apple.WebKit2             	0x000000010028c59c void CoreIPC::handleMessage&lt;Messages::WebPage::LoadURL, WebKit::WebPage, void (WebKit::WebPage::*)(WTF::String const&amp;, WebKit::SandboxExtension::Handle const&amp;)&gt;(CoreIPC::ArgumentDecoder*, WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&amp;, WebKit::SandboxExtension::Handle const&amp;)) + 89 (Arguments.h:93)
50  com.apple.WebKit2             	0x0000000100203e02 CoreIPC::Connection::dispatchMessage(CoreIPC::Connection::Message&lt;CoreIPC::ArgumentDecoder&gt;&amp;) + 138 (Connection.cpp:690)
51  com.apple.WebKit2             	0x0000000100203f10 CoreIPC::Connection::dispatchMessages() + 156 (Connection.cpp:711)
52  com.apple.WebKit2             	0x000000010021e5b3 RunLoop::performWork() + 135 (OwnPtrCommon.h:59)
53  com.apple.WebKit2             	0x000000010021ec05 RunLoop::performWork(void*) + 83 (RunLoopMac.mm:38)
54  com.apple.CoreFoundation      	0x00007fff806c6401 __CFRunLoopDoSources0 + 1361
55  com.apple.CoreFoundation      	0x00007fff806c45f9 __CFRunLoopRun + 873
56  com.apple.CoreFoundation      	0x00007fff806c3dbf CFRunLoopRunSpecific + 575
57  com.apple.HIToolbox           	0x00007fff888f27ee RunCurrentEventLoopInMode + 333
58  com.apple.HIToolbox           	0x00007fff888f25f3 ReceiveNextEventCommon + 310
59  com.apple.HIToolbox           	0x00007fff888f24ac BlockUntilNextEventMatchingListInMode + 59
60  com.apple.AppKit              	0x00007fff85bdde64 _DPSNextEvent + 718
61  com.apple.AppKit              	0x00007fff85bdd7a9 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
62  com.apple.AppKit              	0x00007fff85ba348b -[NSApplication run] + 395
63  com.apple.WebKit2             	0x0000000100264858 WebKit::WebProcessMain(WebKit::CommandLine const&amp;) + 635 (RetainPtr.h:72)
64  com.apple.WebKit2             	0x0000000100239b44 WebKitMain + 293 (WebKitMain.cpp:48)
65  com.apple.WebProcess          	0x0000000100000d88 start + 52</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405765</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-05-18 09:05:56 -0700</bug_when>
    <thetext>&lt;rdar://problem/9460616&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405801</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-05-18 10:13:57 -0700</bug_when>
    <thetext>Here&apos;s a very similar crash on a different test:

http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(WebKit2%20Tests)/r86769%20(11776)/sputnik/Conformance/07_Lexical_Conventions/7.2_White_Space/S7.2_A4.1_T2-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406144</commentid>
    <comment_count>3</comment_count>
      <attachid>94012</attachid>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2011-05-18 17:41:11 -0700</bug_when>
    <thetext>Created attachment 94012
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406147</commentid>
    <comment_count>4</comment_count>
      <attachid>94012</attachid>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2011-05-18 17:43:35 -0700</bug_when>
    <thetext>Comment on attachment 94012
Patch

That&apos;s a world of subtle. :-(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406149</commentid>
    <comment_count>5</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2011-05-18 17:46:22 -0700</bug_when>
    <thetext>Committed r86809: &lt;http://trac.webkit.org/changeset/86809&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406154</commentid>
    <comment_count>6</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2011-05-18 17:58:34 -0700</bug_when>
    <thetext>Anonymous storage is evil. It must die.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>94012</attachid>
            <date>2011-05-18 17:41:11 -0700</date>
            <delta_ts>2011-05-18 17:43:35 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-61064-20110518174110.patch</filename>
            <type>text/plain</type>
            <size>1727</size>
            <attacher name="Oliver Hunt">oliver</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODY3ODUKZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cgYi9Tb3VyY2UvSmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCmluZGV4IGJi
OGY3YzBlYWVlNjZlYjU1ZDQzNWVkNzVlYTQzYWU4MTIwNzc3Y2IuLmFlMWU3ZWI3MDBlODE2MzFj
ZmVlMGQ3NTMzZGVhNTkwOWQ0NzY2NjEg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aW5nIGluaXRpYWxpemF0aW9uLCB3aGljaCBjYW4gY2F1
c2UgaGVhcCBjb3JydXB0aW9uCmRpZmYgLS1naXQgYS9Tb3VyY2UvSmF2YVNjcmlwdENvcmUvcnVu
dGltZS9KU09iamVjdC5oIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL3J1bnRpbWUvSlNPYmplY3Qu
aAppbmRleCBhNmI3OGJkM2VjMWE3OTZjYmI3NTQ2MWZmZTgxMmJlOTkzNGQ2ZTI4Li5lNTQyMDA0
Mjc0YTAyN2RkMGQyMjEwZmY3YTNjMjFiMzUxMTQ1Y2QwIDEwMDY0NAotLS0gYS9Tb3VyY2UvSmF2
YVNjcmlwdENvcmUvcnVudGltZS9KU09iamVjdC5oCisrKyBiL1NvdXJjZS9KYXZhU2NyaXB0Q29y
ZS9ydW50aW1lL0pTT2JqZWN0LmgKQEAgLTM0Myw3ICszNDMsNyBAQCBDT01QSUxFX0FTU0VSVCgo
SlNGaW5hbE9iamVjdF9pbmxpbmVTdG9yYWdlQ2FwYWNpdHkgPj0gSlNOb25GaW5hbE9iamVjdF9p
bmxpbmVTdAogICAgICAgICB9CiAKICAgICBwcml2YXRlOgotICAgICAgICBXcml0ZUJhcnJpZXJC
YXNlPFVua25vd24+IG1faW5saW5lU3RvcmFnZVtKU05vbkZpbmFsT2JqZWN0X2lubGluZVN0b3Jh
Z2VDYXBhY2l0eV07CisgICAgICAgIFdyaXRlQmFycmllcjxVbmtub3duPiBtX2lubGluZVN0b3Jh
Z2VbSlNOb25GaW5hbE9iamVjdF9pbmxpbmVTdG9yYWdlQ2FwYWNpdHldOwogICAgIH07CiAKICAg
ICAvLyBKU0ZpbmFsT2JqZWN0IGlzIGEgdHlwZSBvZiBKU09iamVjdCB0aGF0IGNvbnRhaW5zIHN1
ZmZpY2VudCBpbnRlcm5hbAo=
</data>
<flag name="review"
          id="87258"
          type_id="1"
          status="+"
          setter="barraclough"
    />
          </attachment>
      

    </bug>

</bugzilla>