<?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>48284</bug_id>
          
          <creation_ts>2010-10-25 18:34:18 -0700</creation_ts>
          <short_desc>Valgrind failure in GraphicsContext3DInternal::reshape</short_desc>
          <delta_ts>2010-10-26 10:28:38 -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>WebGL</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kenneth Russell">kbr</reporter>
          <assigned_to name="Kenneth Russell">kbr</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>enne</cc>
    
    <cc>jamesr</cc>
    
    <cc>zmo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>299226</commentid>
    <comment_count>0</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-10-25 18:34:18 -0700</bug_when>
    <thetext>There is a Valgrind failure reported in GraphicsContext3DInternal::reshape caused by uninitialized members m_cachedWidth and m_cachedHeight in WebGraphicsContext3DDefaultImpl. The stack trace:

14:19:56 memcheck_analyze.py [ERROR] FAIL! There were 1 errors: 
14:19:56 memcheck_analyze.py [ERROR] Command: /b/slave/webkit-rel-linux-valgrind-layout/build/src/sconsbuild/Release/test_shell --pixel-tests=/b/slave/webkit-rel-linux-valgrind-layout/build/src/webkit/Release/layout-test-results/png_result1.png --layout-tests
UninitCondition
Conditional jump or move depends on uninitialised value(s)
  WebCore::GraphicsContext3DInternal::reshape(int, int) (third_party/WebKit/WebKit/chromium/src/GraphicsContext3DChromium.cpp:229)
  WebCore::GraphicsContext3D::reshape(int, int) (third_party/WebKit/WebKit/chromium/src/GraphicsContext3DChromium.cpp:841)
  WebCore::WebGLRenderingContext::WebGLRenderingContext(WebCore::HTMLCanvasElement*, WTF::PassRefPtr&lt;WebCore::GraphicsContext3D&gt;) (third_party/WebKit/WebCore/html/canvas/WebGLRenderingContext.cpp:139)
  WebCore::WebGLRenderingContext::create(WebCore::HTMLCanvasElement*, WebCore::WebGLContextAttributes*) (third_party/WebKit/WebCore/html/canvas/WebGLRenderingContext.cpp:96)
  WebCore::HTMLCanvasElement::getContext(WTF::String const&amp;, WebCore::CanvasContextAttributes*) (third_party/WebKit/WebCore/html/HTMLCanvasElement.cpp:173)
  WebCore::V8HTMLCanvasElement::getContextCallback(v8::Arguments const&amp;) (third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:82)
  v8::internal::Object* v8::internal::HandleApiCallHelper&lt;false&gt;(v8::internal::(anonymous namespace)::BuiltinArguments&lt;(v8::internal::BuiltinExtraArguments)1&gt;) (v8/src/builtins.cc:983)
  0x5C6422D ()
  0x5C7C271 ()
  0x5C6609E ()
  0x5C7B4C9 ()
  0x5C75058 ()
  0x5C65421 ()
  v8::internal::Invoke(bool, v8::internal::Handle&lt;v8::internal::JSFunction&gt;, v8::internal::Handle&lt;v8::internal::Object&gt;, int, v8::internal::Object***, bool*) (v8/src/execution.cc:94)
  0x4E8E83B ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>299227</commentid>
    <comment_count>1</comment_count>
      <attachid>71828</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-10-25 18:35:39 -0700</bug_when>
    <thetext>Created attachment 71828
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>299382</commentid>
    <comment_count>2</comment_count>
      <attachid>71828</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-10-26 04:13:22 -0700</bug_when>
    <thetext>Comment on attachment 71828
Patch

LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>299561</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-10-26 10:28:38 -0700</bug_when>
    <thetext>Committed r70534: &lt;http://trac.webkit.org/changeset/70534&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>71828</attachid>
            <date>2010-10-25 18:35:39 -0700</date>
            <delta_ts>2010-10-26 04:13:22 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>initialization.patch</filename>
            <type>text/plain</type>
            <size>1244</size>
            <attacher name="Kenneth Russell">kbr</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9jaHJvbWl1bS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L2No
cm9taXVtL0NoYW5nZUxvZwkocmV2aXNpb24gNzA1MDkpCisrKyBXZWJLaXQvY2hyb21pdW0vQ2hh
bmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAKKzIwMTAtMTAtMjUgIEtlbm5l
dGggUnVzc2VsbCAgPGtickBnb29nbGUuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9E
WSAoT09QUyEpLgorCisgICAgICAgIFZhbGdyaW5kIGZhaWx1cmUgaW4gR3JhcGhpY3NDb250ZXh0
M0RJbnRlcm5hbDo6cmVzaGFwZQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93
X2J1Zy5jZ2k/aWQ9NDgyODQKKworICAgICAgICAqIHNyYy9XZ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<flag name="review"
          id="61958"
          type_id="1"
          status="+"
          setter="kling"
    />
    <flag name="commit-queue"
          id="61959"
          type_id="3"
          status="-"
          setter="kbr"
    />
          </attachment>
      

    </bug>

</bugzilla>