<?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>175196</bug_id>
          
          <creation_ts>2017-08-04 10:50:36 -0700</creation_ts>
          <short_desc>Web Inspector: REGRESSION (r220233): Check for null pointer passed to WebGLRenderingContextBase::deleteProgram</short_desc>
          <delta_ts>2017-08-04 11:57:08 -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</component>
          <version>WebKit 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Baker">mattbaker</reporter>
          <assigned_to name="Matt Baker">mattbaker</assigned_to>
          <cc>buildbot</cc>
    
    <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>esprehn+autocc</cc>
    
    <cc>graouts</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>jlewis3</cc>
    
    <cc>kondapallykalyan</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1335328</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2017-08-04 10:50:36 -0700</bug_when>
    <thetext>Summary:
Check for null pointer passed to WebGLRenderingContextBase::deleteProgram. Apparently the WebGLProgram* can be null. Hit while running LayoutTests/fast/canvas/webgl/webgl-draw-buffers.html.

Introduced in http://trac.webkit.org/changeset/220233.

ASSERTION FAILED: program
/Volumes/Data/Projects/WebKit/OpenSource/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp(1578) : void WebCore::WebGLRenderingContextBase::deleteProgram(WebCore::WebGLProgram *)
1   0x659bfc31d WTFCrash
2   0x64efd31c7 WebCore::WebGLRenderingContextBase::deleteProgram(WebCore::WebGLProgram*)
3   0x64debed62 WebCore::jsWebGLRenderingContextPrototypeFunctionDeleteProgramBody(JSC::ExecState*, WebCore::JSWebGLRenderingContext*, JSC::ThrowScope&amp;)
4   0x64dea637e long long WebCore::IDLOperation&lt;WebCore::JSWebGLRenderingContext&gt;::call&lt;&amp;(WebCore::jsWebGLRenderingContextPrototypeFunctionDeleteProgramBody(JSC::ExecState*, WebCore::JSWebGLRenderingContext*, JSC::ThrowScope&amp;)), (WebCore::CastedThisErrorBehavior)0&gt;(JSC::ExecState&amp;, char const*)
5   0x64dea610c WebCore::jsWebGLRenderingContextPrototypeFunctionDeleteProgram(JSC::ExecState*)
6   0x256524001028
7   0x659781cfd llint_entry
8   0x659781cfd llint_entry
9   0x659781d77 llint_entry
10  0x659781d77 llint_entry
11  0x659781d77 llint_entry
12  0x65977a237 vmEntryToJavaScript
13  0x6595542ce JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
14  0x659503798 JSC::Interpreter::executeProgram(JSC::SourceCode const&amp;, JSC::ExecState*, JSC::JSObject*)
15  0x658d88c88 JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;)
16  0x658d88e40 JSC::profiledEvaluate(JSC::ExecState*, JSC::ProfilingReason, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;)
17  0x64e8d7bbb WebCore::JSMainThreadExecState::profiledEvaluate(JSC::ExecState*, JSC::ProfilingReason, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;)
18  0x64e8d79a8 WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&amp;, WebCore::DOMWrapperWorld&amp;, WebCore::ExceptionDetails*)
19  0x64e8d7c9d WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode const&amp;, WebCore::ExceptionDetails*)
20  0x64e8ed562 WebCore::ScriptElement::executeClassicScript(WebCore::ScriptSourceCode const&amp;)
21  0x64e8ebb96 WebCore::ScriptElement::prepareScript(WTF::TextPosition const&amp;, WebCore::ScriptElement::LegacyTypeSupport)
22  0x64d08de20 WebCore::HTMLScriptRunner::runScript(WebCore::ScriptElement&amp;, WTF::TextPosition const&amp;)
23  0x64d08dc8f WebCore::HTMLScriptRunner::execute(WTF::Ref&lt;WebCore::ScriptElement&gt;&amp;&amp;, WTF::TextPosition const&amp;)
24  0x64cfb21b2 WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder()
25  0x64cfb2713 WebCore::HTMLDocumentParser::pumpTokenizerLoop(WebCore::HTMLDocumentParser::SynchronousMode, bool, WebCore::PumpSession&amp;)
26  0x64cfb13b8 WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode)
27  0x64cfb0f0b WebCore::HTMLDocumentParser::pumpTokenizerIfPossible(WebCore::HTMLDocumentParser::SynchronousMode)
28  0x64cfb4119 WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution()
29  0x64cfb451e WebCore::HTMLDocumentParser::notifyFinished(WebCore::PendingScript&amp;)
30  0x64cfb457c non-virtual thunk to WebCore::HTMLDocumentParser::notifyFinished(WebCore::PendingScript&amp;)
31  0x64e3af8c7 WebCore::PendingScript::notifyClientFinished()
LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1335329</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-08-04 10:50:52 -0700</bug_when>
    <thetext>&lt;rdar://problem/33727603&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1335331</commentid>
    <comment_count>2</comment_count>
      <attachid>317257</attachid>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2017-08-04 10:52:00 -0700</bug_when>
    <thetext>Created attachment 317257
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1335339</commentid>
    <comment_count>3</comment_count>
      <attachid>317257</attachid>
    <who name="Devin Rousso">hi</who>
    <bug_when>2017-08-04 10:54:14 -0700</bug_when>
    <thetext>Comment on attachment 317257
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1335372</commentid>
    <comment_count>4</comment_count>
      <attachid>317257</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-04 11:57:07 -0700</bug_when>
    <thetext>Comment on attachment 317257
Patch

Clearing flags on attachment: 317257

Committed r220281: &lt;http://trac.webkit.org/changeset/220281&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1335373</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-04 11:57:08 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>317257</attachid>
            <date>2017-08-04 10:52:00 -0700</date>
            <delta_ts>2017-08-04 11:57:07 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-175196-20170804105159.patch</filename>
            <type>text/plain</type>
            <size>1629</size>
            <attacher name="Matt Baker">mattbaker</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjIwMjQ4CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3V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