[Mesa-dev] [Bug 66184] New: src/mesa/state_tracker/st_glsl_to_tgsi.cpp:3216:simplify_cmp: Assertion `inst->dst.index < 4096' failed.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 25 20:16:19 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=66184

          Priority: medium
            Bug ID: 66184
          Keywords: have-backtrace
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: src/mesa/state_tracker/st_glsl_to_tgsi.cpp:3216:simpli
                    fy_cmp: Assertion `inst->dst.index < 4096' failed.
          Severity: critical
    Classification: Unclassified
                OS: Linux (All)
          Reporter: vlee at freedesktop.org
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: Mesa core
           Product: Mesa

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 at entry=0x7f73cd19a800,
program=program at 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 at entry=0x7f73d9abafe0, args=...,
construct=construct at entry=js::NO_CONSTRUCT)
    at /build/buildd/firefox-22.0~b6+build1/js/src/jsinterp.cpp:390
#13 0x00007f73f5051f5b in js::Interpret (cx=cx at entry=0x7f73d9abafe0,
entryFrame=entryFrame at 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 at entry=0x7f73d9abafe0,
fp=0x7f73e5235038)
    at /build/buildd/firefox-22.0~b6+build1/js/src/jsinterp.cpp:341
#15 0x00007f73f505d3bd in js::InvokeKernel (cx=cx at entry=0x7f73d9abafe0,
args=..., construct=construct at 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 at 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 at 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 at entry=0x7f73c4fc8c00, 
    aTimeout=aTimeout at 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 at 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 at entry=0x7fffaf6416a0)
    at /build/buildd/firefox-22.0~b6+build1/toolkit/xre/nsAppRunner.cpp:3868
#33 0x00007f73f3e728bc in XREMain::XRE_main (this=this at entry=0x7fffaf6416a0,
argc=argc at entry=1, 
    argv=argv at entry=0x7fffaf642b98, aAppData=aAppData at 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 at entry=1,
argv=argv at 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}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130626/4c9a8bcb/attachment.html>


More information about the mesa-dev mailing list