<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - src/mesa/state_tracker/st_glsl_to_tgsi.cpp:3216:simplify_cmp: Assertion `inst->dst.index < 4096' failed."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=66184">66184</a>
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>have-backtrace
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>src/mesa/state_tracker/st_glsl_to_tgsi.cpp:3216:simplify_cmp: Assertion `inst->dst.index < 4096' failed.
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>critical
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vlee@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>mesa: 0b994961ff58654f330c51caacf9698f7dafd6b6

Run WebGL Conformance Test glsl bugs tests on softpipe.

(gdb) bt
#0  0x00007f73bb1af05e in _debug_assert_fail (expr=0x7f73bb2f1d01
"inst->dst.index < 4096", 
    file=0x7f73bb2f11e8 "../../src/mesa/state_tracker/st_glsl_to_tgsi.cpp",
line=3216, 
    function=0x7f73bb2f27d1
<glsl_to_tgsi_visitor::simplify_cmp()::__FUNCTION__> "simplify_cmp") at
util/u_debug.c:278
#1  0x00007f73bb06574c in glsl_to_tgsi_visitor::simplify_cmp
(this=0x7f73c6382800)
    at ../../src/mesa/state_tracker/st_glsl_to_tgsi.cpp:3216
#2  0x00007f73bb06b383 in get_mesa_program (ctx=0x7f73abd9f000,
shader_program=0x7f73abffc320, shader=0x7f73cbe99830)
    at ../../src/mesa/state_tracker/st_glsl_to_tgsi.cpp:5091
#3  0x00007f73bb06ba32 in st_link_shader (ctx=0x7f73abd9f000,
prog=0x7f73abffc320)
    at ../../src/mesa/state_tracker/st_glsl_to_tgsi.cpp:5271
#4  0x00007f73bb10b8e3 in _mesa_glsl_link_shader (ctx=0x7f73abd9f000,
prog=0x7f73abffc320)
    at ../../../src/mesa/program/ir_to_mesa.cpp:3124
#5  0x00007f73baf917d3 in link_program (ctx=0x7f73abd9f000, program=29) at
../../src/mesa/main/shaderapi.c:819
#6  0x00007f73baf9295b in _mesa_LinkProgram (programObj=29) at
../../src/mesa/main/shaderapi.c:1302
#7  0x00007f73f4255fd5 in fLinkProgram (this=<optimized out>, program=29) at
../../../dist/include/GLContext.h:2093
#8  mozilla::WebGLContext::LinkProgram (this=this@entry=0x7f73cd19a800,
program=program@entry=0x7f73e3b9b4c0)
    at
/build/buildd/firefox-22.0~b6+build1/content/canvas/src/WebGLContextGL.cpp:3069
#9  0x00007f73f4aa91f0 in
mozilla::dom::WebGLRenderingContextBinding::linkProgram (cx=0x7f73d9abafe0,
obj=..., 
    self=0x7f73cd19a800, argc=<optimized out>, vp=0x7f73e5235188)
    at
/build/buildd/firefox-22.0~b6+build1/obj-x86_64-linux-gnu/dom/bindings/WebGLRenderingContextBinding.cpp:7154
#10 0x00007f73f4aad204 in
mozilla::dom::WebGLRenderingContextBinding::genericMethod (cx=0x7f73d9abafe0,
argc=1, 
    vp=0x7f73e5235188)
    at
/build/buildd/firefox-22.0~b6+build1/obj-x86_64-linux-gnu/dom/bindings/WebGLRenderingContextBinding.cpp:10325
#11 0x00007f73f505d2d5 in CallJSNative (args=..., native=<optimized out>,
cx=0x7f73d9abafe0)
    at /build/buildd/firefox-22.0~b6+build1/js/src/jscntxtinlines.h:338
#12 js::InvokeKernel (cx=cx@entry=0x7f73d9abafe0, args=...,
construct=construct@entry=js::NO_CONSTRUCT)
    at /build/buildd/firefox-22.0~b6+build1/js/src/jsinterp.cpp:390
#13 0x00007f73f5051f5b in js::Interpret (cx=cx@entry=0x7f73d9abafe0,
entryFrame=entryFrame@entry=0x7f73e5235038, 
    interpMode=js::JSINTERP_NORMAL) at
/build/buildd/firefox-22.0~b6+build1/js/src/jsinterp.cpp:2369
#14 0x00007f73f505d04d in js::RunScript (cx=cx@entry=0x7f73d9abafe0,
fp=0x7f73e5235038)
    at /build/buildd/firefox-22.0~b6+build1/js/src/jsinterp.cpp:341
#15 0x00007f73f505d3bd in js::InvokeKernel (cx=cx@entry=0x7f73d9abafe0,
args=..., construct=construct@entry=js::NO_CONSTRUCT)
    at /build/buildd/firefox-22.0~b6+build1/js/src/jsinterp.cpp:404
#16 0x00007f73f505d6c4 in Invoke (construct=js::NO_CONSTRUCT, args=...,
cx=0x7f73d9abafe0)
    at /build/buildd/firefox-22.0~b6+build1/js/src/jsinterp.h:135
#17 js::Invoke (cx=cx@entry=0x7f73d9abafe0, thisv=..., fval=..., argc=0,
argv=<optimized out>, rval=0x7fffaf640fe8)
    at /build/buildd/firefox-22.0~b6+build1/js/src/jsinterp.cpp:437
#18 0x00007f73f4fc6214 in JS_CallFunctionValue (cx=0x7f73d9abafe0,
objArg=<optimized out>, fval=..., argc=<optimized out>, 
    argv=<optimized out>, rval=rval@entry=0x7fffaf640fe8) at
/build/buildd/firefox-22.0~b6+build1/js/src/jsapi.cpp:5823
#19 0x00007f73f43a76d6 in nsJSContext::CallEventHandler (this=0x7f73d89d5320,
aTarget=<optimized out>, 
    aScope=<optimized out>, aHandler=<optimized out>, aargv=0x7f739695a460,
arv=0x7fffaf6411a8)
    at /build/buildd/firefox-22.0~b6+build1/dom/base/nsJSEnvironment.cpp:1559
#20 0x00007f73f43bfbf9 in nsGlobalWindow::RunTimeoutHandler
(this=this@entry=0x7f73c4fc8c00, 
    aTimeout=aTimeout@entry=0x7f73e3e96160, aScx=0x7f73d89d5320)
    at /build/buildd/firefox-22.0~b6+build1/dom/base/nsGlobalWindow.cpp:10171
#21 0x00007f73f43c03d6 in nsGlobalWindow::RunTimeout (this=0x7f73c4fc8c00,
aTimeout=0x7f73e3e96160)
    at /build/buildd/firefox-22.0~b6+build1/dom/base/nsGlobalWindow.cpp:10414
#22 0x00007f73f43c05e0 in nsGlobalWindow::TimerCallback (aTimer=<optimized
out>, aClosure=<optimized out>)
    at /build/buildd/firefox-22.0~b6+build1/dom/base/nsGlobalWindow.cpp:10683
#23 0x00007f73f4b1814a in nsTimerImpl::Fire (this=0x7f7396959420)
    at /build/buildd/firefox-22.0~b6+build1/xpcom/threads/nsTimerImpl.cpp:539
#24 0x00007f73f4b18205 in nsTimerEvent::Run (this=0x7f73bb3f86ca)
    at /build/buildd/firefox-22.0~b6+build1/xpcom/threads/nsTimerImpl.cpp:623
#25 0x00007f73f4b1548e in nsThread::ProcessNextEvent (this=0x7f73f7c28840,
mayWait=<optimized out>, result=0x7fffaf64142f)
    at /build/buildd/firefox-22.0~b6+build1/xpcom/threads/nsThread.cpp:627
#26 0x00007f73f4aea145 in NS_ProcessNextEvent (thread=<optimized out>,
mayWait=mayWait@entry=false)
    at
/build/buildd/firefox-22.0~b6+build1/obj-x86_64-linux-gnu/xpcom/build/nsThreadUtils.cpp:238
#27 0x00007f73f48b548a in mozilla::ipc::MessagePump::Run (this=0x7f73ea033f00,
aDelegate=0x7f73ea0400b0)
    at /build/buildd/firefox-22.0~b6+build1/ipc/glue/MessagePump.cpp:82
#28 0x00007f73f4b38ad1 in RunHandler (this=0x7f73ea0400b0)
    at
/build/buildd/firefox-22.0~b6+build1/ipc/chromium/src/base/message_loop.cc:209
#29 MessageLoop::Run (this=0x7f73ea0400b0) at
/build/buildd/firefox-22.0~b6+build1/ipc/chromium/src/base/message_loop.cc:183
#30 0x00007f73f4807c07 in nsBaseAppShell::Run (this=0x7f73e82b3160)
    at
/build/buildd/firefox-22.0~b6+build1/widget/xpwidgets/nsBaseAppShell.cpp:163
#31 0x00007f73f46e322f in nsAppStartup::Run (this=0x7f73e69088d0)
    at
/build/buildd/firefox-22.0~b6+build1/toolkit/components/startup/nsAppStartup.cpp:288
#32 0x00007f73f3e72649 in XREMain::XRE_mainRun (this=this@entry=0x7fffaf6416a0)
    at /build/buildd/firefox-22.0~b6+build1/toolkit/xre/nsAppRunner.cpp:3868
#33 0x00007f73f3e728bc in XREMain::XRE_main (this=this@entry=0x7fffaf6416a0,
argc=argc@entry=1, 
    argv=argv@entry=0x7fffaf642b98, aAppData=aAppData@entry=0x7fffaf6418a0)
    at /build/buildd/firefox-22.0~b6+build1/toolkit/xre/nsAppRunner.cpp:3935
#34 0x00007f73f3e72b15 in XRE_main (argc=1, argv=0x7fffaf642b98,
aAppData=0x7fffaf6418a0, aFlags=<optimized out>)
    at /build/buildd/firefox-22.0~b6+build1/toolkit/xre/nsAppRunner.cpp:4140
#35 0x00007f73f8f8afc4 in do_main (argc=argc@entry=1,
argv=argv@entry=0x7fffaf642b98, xreDirectory=0x7f73f7c2c780)
    at /build/buildd/firefox-22.0~b6+build1/browser/app/nsBrowserApp.cpp:273
#36 0x00007f73f8f8a7f3 in main (argc=1, argv=0x7fffaf642b98)
    at /build/buildd/firefox-22.0~b6+build1/browser/app/nsBrowserApp.cpp:583
(gdb) frame 1
#1  0x00007f73bb06574c in glsl_to_tgsi_visitor::simplify_cmp
(this=0x7f73c6382800)
    at ../../src/mesa/state_tracker/st_glsl_to_tgsi.cpp:3216
3216             assert(inst->dst.index < MAX_TEMPS);
(gdb) print inst->dst
$1 = {file = PROGRAM_TEMPORARY, index = 4096, writemask = 15, cond_mask = 8,
type = 2, reladdr = 0x0}</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>