<?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>42642</bug_id>
          
          <creation_ts>2010-07-20 08:00:36 -0700</creation_ts>
          <short_desc>[v8] Web Inspector: inspected page renderer crashes when inspected page has JS syntax error</short_desc>
          <delta_ts>2010-07-22 09:16: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>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>42831</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Andrey Kosyakov">caseq</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>pfeldman</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>253723</commentid>
    <comment_count>0</comment_count>
      <attachid>62076</attachid>
    <who name="Andrey Kosyakov">caseq</who>
    <bug_when>2010-07-20 08:00:36 -0700</bug_when>
    <thetext>Created attachment 62076
test page

1. Load a page with syntax error (sample attached)
2. Open inspector
3. Reload page
4. Observe crash in inspected page renderer

Call stack:
&gt;	chrome.dll!WTF::Vector&lt;WTF::OwnPtr&lt;WebCore::ScriptCallFrame&gt;,0&gt;::at(unsigned int i=0)  Line 533 + 0x29 bytes	C++
 	chrome.dll!WebCore::ScriptCallStack::at(unsigned int index=0)  Line 119 + 0xf bytes	C++
 	chrome.dll!WebCore::ConsoleMessage::ConsoleMessage(WebCore::MessageSource s=JSMessageSource, WebCore::MessageType t=UncaughtExceptionMessageType, WebCore::MessageLevel l=ErrorMessageLevel, const WebCore::String &amp; m=&quot;Uncaught SyntaxError: Unexpected token )&quot;, WebCore::ScriptCallStack * callStack=0x0c238fc0, unsigned int g=0, bool storeTrace=true)  Line 95 + 0x56 bytes	C++
 	chrome.dll!WebCore::InspectorController::addMessageToConsole(WebCore::MessageSource source=JSMessageSource, WebCore::MessageType type=UncaughtExceptionMessageType, WebCore::MessageLevel level=ErrorMessageLevel, WebCore::ScriptCallStack * callStack=0x0c238fc0, const WebCore::String &amp; message=&quot;Uncaught SyntaxError: Unexpected token )&quot;)  Line 346 + 0x53 bytes	C++
 	chrome.dll!WebCore::Console::addMessage(WebCore::MessageSource source=JSMessageSource, WebCore::MessageType type=UncaughtExceptionMessageType, WebCore::MessageLevel level=ErrorMessageLevel, const WebCore::String &amp; message=&quot;Uncaught SyntaxError: Unexpected token )&quot;, unsigned int lineNumber=2, const WebCore::String &amp; sourceURL=&quot;file:///E:/caseq/wip/syntxerr.html湨潴映汩᭸揳&quot;, WebCore::ScriptCallStack * callStack=0x0c238fc0)  Line 159	C++
 	chrome.dll!WebCore::V8ConsoleMessage::dispatchNow(WebCore::Page * page=0x0a64d1e0, WebCore::ScriptCallStack * callStack=0x0c238fc0)  Line 142	C++
 	chrome.dll!WebCore::V8ConsoleMessage::handler(v8::Handle&lt;v8::Message&gt; message={...}, v8::Handle&lt;v8::Value&gt; data={...})  Line 129	C++
 	chrome.dll!v8::internal::MessageHandler::ReportMessage(v8::internal::MessageLocation * loc=0x07bbea04, v8::internal::Handle&lt;v8::internal::Object&gt; message={...})  Line 146 + 0x28 bytes	C++
 	chrome.dll!v8::internal::Top::ReportPendingMessages()  Line 928 + 0xd bytes	C++
 	chrome.dll!v8::internal::Compiler::Compile(v8::internal::Handle&lt;v8::internal::String&gt; source={...}, v8::internal::Handle&lt;v8::internal::Object&gt; script_name={...}, int line_offset=1, int column_offset=0, v8::Extension * extension=0x00000000, v8::internal::ScriptDataImpl * input_pre_data=0x00000000, v8::internal::Handle&lt;v8::internal::Object&gt; script_data={...}, v8::internal::NativesFlag natives=NOT_NATIVES_CODE)  Line 350	C++
 	chrome.dll!v8::Script::New(v8::Handle&lt;v8::String&gt; source={...}, v8::ScriptOrigin * origin=0x07bbec20, v8::ScriptData * pre_data=0x00000000, v8::Handle&lt;v8::String&gt; script_data={...})  Line 1184 + 0x40 bytes	C++
 	chrome.dll!v8::Script::Compile(v8::Handle&lt;v8::String&gt; source={...}, v8::ScriptOrigin * origin=0x07bbec20, v8::ScriptData * pre_data=0x00000000, v8::Handle&lt;v8::String&gt; script_data={...})  Line 1205 + 0x19 bytes	C++
 	chrome.dll!WebCore::V8Proxy::compileScript(v8::Handle&lt;v8::String&gt; code={...}, const WebCore::String &amp; fileName=&quot;file:///E:/caseq/wip/syntxerr.html&quot;, int baseLine=1, v8::ScriptData * scriptData=0x00000000)  Line 244 + 0x20 bytes	C++
 	chrome.dll!WebCore::V8Proxy::evaluate(const WebCore::ScriptSourceCode &amp; source={...}, WebCore::Node * node=0x00000000)  Line 399 + 0x38 bytes	C++
 	chrome.dll!WebCore::ScriptController::evaluate(const WebCore::ScriptSourceCode &amp; sourceCode={...}, WebCore::ShouldAllowXSS shouldAllowXSS=DoNotAllowXSS)  Line 241	C++
 	chrome.dll!WebCore::ScriptController::executeScript(const WebCore::ScriptSourceCode &amp; sourceCode={...}, WebCore::ShouldAllowXSS shouldAllowXSS=DoNotAllowXSS)  Line 62	C++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253730</commentid>
    <comment_count>1</comment_count>
      <attachid>62078</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-07-20 08:09:46 -0700</bug_when>
    <thetext>Created attachment 62078
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253735</commentid>
    <comment_count>2</comment_count>
      <attachid>62078</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-07-20 08:17:48 -0700</bug_when>
    <thetext>Comment on attachment 62078
Patch

Clearing flags on attachment: 62078

Committed r63746: &lt;http://trac.webkit.org/changeset/63746&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253736</commentid>
    <comment_count>3</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-07-20 08:17:58 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>62076</attachid>
            <date>2010-07-20 08:00:36 -0700</date>
            <delta_ts>2010-07-20 08:00:36 -0700</delta_ts>
            <desc>test page</desc>
            <filename>syntxerr.html</filename>
            <type>text/html</type>
            <size>37</size>
            <attacher name="Andrey Kosyakov">caseq</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8c2NyaXB0Pik8L3NjcmlwdD4NCjwvaHRtbD4NCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>62078</attachid>
            <date>2010-07-20 08:09:46 -0700</date>
            <delta_ts>2010-07-20 08:17:48 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-42642-20100720190944.patch</filename>
            <type>text/plain</type>
            <size>1514</size>
            <attacher name="Yury Semikhatsky">yurys</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
NDkyNjc3MzAyMjY4MTE0MTY1OTU3YjlmOTg4OGQzMjZjY2FmMTgzMS4uZmQxOGEwNWE4MWRhYmRj
NTliZTNhYWU2MmRkMjYxZjM2YmE5MGNhNCAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cK
KysrIGIvV2ViQ29yZS9DaGFuZ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