<?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>12357</bug_id>
          
          <creation_ts>2007-01-21 19:04:26 -0800</creation_ts>
          <short_desc>Reproducible crash in WebCore::Settings::isJavaScriptEnabled in svg/custom/js-update-bounce.svg under guard-malloc</short_desc>
          <delta_ts>2007-01-22 09:19:30 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>LayoutTestFailure</keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Rowe (bdash)">mrowe</reporter>
          <assigned_to name="Mark Rowe (bdash)">mrowe</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33723</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-21 19:04:26 -0800</bug_when>
    <thetext>To reproduce:
run-webkit-tests --debug --guard-malloc svg/custom/js-update-bounce.svg

Crashes with:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xb9d5cffc
0x014c5709 in WebCore::Settings::isJavaScriptEnabled (this=0xb9d5cf74) at Settings.h:82
82              bool isJavaScriptEnabled() const { return m_isJavaScriptEnabled; }
(gdb) bt
#0  0x014c5709 in WebCore::Settings::isJavaScriptEnabled (this=0xb9d5cf74) at Settings.h:82
#1  0x010dac5b in WebCore::Frame::scriptProxy (this=0xb9db0fd0) at /Users/mrowe/Documents/Source/SVN/WebKit-Nightlies/WebCore/page/Frame.cpp:258
#2  0x0126a164 in KJS::Window::retrieve (p=0xb9db0fd0) at /Users/mrowe/Documents/Source/SVN/WebKit-Nightlies/WebCore/bindings/js/kjs_window.cpp:400
#3  0x0126a1ad in KJS::Window::retrieveWindow (f=0xb9db0fd0) at /Users/mrowe/Documents/Source/SVN/WebKit-Nightlies/WebCore/bindings/js/kjs_window.cpp:384
#4  0x010e0480 in WebCore::Frame::~Frame (this=0xb9db0fd0) at /Users/mrowe/Documents/Source/SVN/WebKit-Nightlies/WebCore/page/Frame.cpp:203
warning: internal error: no C/C++ fundamental type 1
#5  0x010e4b63 in WebCore::FrameMac::~FrameMac (this=0xb9db0fd0) at /Users/mrowe/Documents/Source/SVN/WebKit-Nightlies/WebCore/page/mac/FrameMac.mm:152
#6  0x014c8e5e in WebCore::Shared&lt;WebCore::Frame&gt;::deref (this=0xb9db0fd4) at Shared.h:52
#7  0x014c8e86 in WTF::RefPtr&lt;WebCore::Frame&gt;::~RefPtr (this=0xb9d56ffc) at RefPtr.h:41
#8  0x015537c4 in WebCore::FocusController::~FocusController (this=0xb9d56ff8) at FocusController.h:40
#9  0x015537e7 in WTF::OwnPtr&lt;WebCore::FocusController&gt;::safeDelete (this=0xb9d50fd4) at OwnPtr.h:54
#10 0x01553805 in WTF::OwnPtr&lt;WebCore::FocusController&gt;::~OwnPtr (this=0xb9d50fd4) at OwnPtr.h:34
#11 0x011a1b6c in WebCore::Page::~Page (this=0xb9d50fc8) at /Users/mrowe/Documents/Source/SVN/WebKit-Nightlies/WebCore/page/Page.cpp:92
#12 0x0025d6c2 in -[WebView(WebPrivate) _close] (self=0xb9b04fac, _cmd=0x90a6b1dc) at /Users/mrowe/Documents/Source/SVN/WebKit-Nightlies/WebKit/WebView/WebView.mm:647
#13 0x002621e3 in -[WebView close] (self=0xb9b04fac, _cmd=0x90a9bb2c) at /Users/mrowe/Documents/Source/SVN/WebKit-Nightlies/WebKit/WebView/WebView.mm:1764
#14 0x000061a1 in dumpRenderTree (argc=2, argv=0xbffff62c) at /Users/mrowe/Documents/Source/SVN/WebKit-Nightlies/WebKitTools/DumpRenderTree/DumpRenderTree.m:431
#15 0x000062d6 in main (argc=2, argv=0xbffff62c) at /Users/mrowe/Documents/Source/SVN/WebKit-Nightlies/WebKitTools/DumpRenderTree/DumpRenderTree.m:459</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33714</commentid>
    <comment_count>1</comment_count>
      <attachid>12595</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-21 19:09:07 -0800</bug_when>
    <thetext>Created attachment 12595
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33703</commentid>
    <comment_count>2</comment_count>
      <attachid>12595</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-01-21 19:12:42 -0800</bug_when>
    <thetext>Comment on attachment 12595
Patch

Need a nil check of m_jscript which can be 0 if JavaScript was disabled or never used.

Should not have a space in Window*.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33702</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-21 19:16:49 -0800</bug_when>
    <thetext>The code is inside &quot;if (d-&gt;m_jscript &amp;&amp; d-&gt;m_jscript-&gt;haveInterpreter())&quot;, so d-&gt;m_jscript can never be nil.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33697</commentid>
    <comment_count>4</comment_count>
      <attachid>12595</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-21 19:25:12 -0800</bug_when>
    <thetext>Comment on attachment 12595
Patch

Resetting review? flag per Comment #3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33692</commentid>
    <comment_count>5</comment_count>
      <attachid>12595</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-01-21 20:00:25 -0800</bug_when>
    <thetext>Comment on attachment 12595
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33687</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-21 20:03:54 -0800</bug_when>
    <thetext>Landed in r19023.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>12595</attachid>
            <date>2007-01-21 19:09:07 -0800</date>
            <delta_ts>2007-01-21 20:00:25 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>webkit-bug-12357-v1.patch</filename>
            <type>text/plain</type>
            <size>1375</size>
            <attacher name="Mark Rowe (bdash)">mrowe</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAxOTAyMikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTQgQEAKKzIwMDctMDEtMjIgIE1hcmsgUm93ZSAgPG1yb3dlQGFwcGxlLmNvbT4K
KworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBodHRwOi8v
YnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMjM1NworICAgICAgICBCdWcgMTIzNTc6
IFJlcHJvZHVjaWJsZSBjcmFzaCBpbiBXZWJDb3JlOjpTZXR0aW5nczo6aXNKYXZhU2NyaXB0RW5h
YmxlZCBpbiBzdmcvY3VzdG9tL2pzLXVwZGF0ZS1ib3VuY2Uuc3ZnIHVuZGVyIGd1YXJkLW1hbGxv
YworCis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sIG90aGVyd2lzZSB3ZSB3aWxsIG5vdAogICAgICAg
ICAgICAgLy8gZ2FyYmFnZS1jb2xsZWN0IGNvbGxlY3QgdGhlIHdpbmRvdyAoaW5zaWRlIHRoZSBj
YWxsIHRvCg==
</data>
<flag name="review"
          id="4782"
          type_id="1"
          status="+"
          setter="mjs"
    />
          </attachment>
      

    </bug>

</bugzilla>