gdb stack dump: #0 0x00007fffe916bb4e in r600_sb::bc_finalizer::cf_peephole() (this=this@entry=0x7fffffffb350) at sb/sb_bc_finalize.cpp:877 N = {p = 0x109f5a00} I = {p = 0x109f5ad0} E = {p = 0x0} #1 0x00007fffe916bc88 in r600_sb::bc_finalizer::run() (this=this@entry=0x7fffffffb350) at sb/sb_bc_finalize.cpp:62 #2 0x00007fffe91716b6 in r600_sb_bytecode_process(r600_context*, r600_bytecode*, r600_shader*, int, int) (rctx=rctx@entry=0x42cc370, bc=bc@entry=0x108f5870, pshader=pshader@entry=0x108f5868, dump_bytecode=dump_bytecode@entry=0, optimize=) at sb/sb_core.cpp:238 shader_id = 41 ctx = time_start = builder = {sh = @0x1097ed88, ctx = @0x1097ed70, bb = {hw_class_bit = 278392680, bc = std::vector of length -69597902, capacity -69597902 = {278426448, 0, 278325312, 0, 278461536, 0, 278334528, 0, 278543424, 0, 0, 0, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31457280, 0, 0, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 61440, 0, 0, 129, 0, 0, 0, 0, 0, 0, 0, 0, 7340032, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1610625054, 2, 0, 0, 0, 129, 0, 0, 0, 0, 0, 0, 0, 0, 7340032, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 145182, 0, 0, 0, 0, 129, 0, 0, 0, 0, 0, 0, 0, 0, 7340032, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1610625054, 2, 0, 0, 0, 129, 0, 0, 0, 0, 0, 0, 0, 0, 7340032, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 469774366...}, pos = 4294967295}, error = -1} r = 0 parser = {ctx = @0x49ed170, dec = 0x103cc340, bc = 0x108f5870, pshader = 0x108f5868, dw = 0x1092ce00, bc_ndw = 1130, max_cf = 117, sh = 0x1092e3d0, error = 0, slots = {{0x0, 0x0, 0x0, 0x1095a730, 0x0}, {0x1095a898, 0x1095a930, 0x1095a9c8, 0x1095aa60, 0x0}}, cgroup = 1, cf_map = std::vector of length 119, capacity 128 = {0x10934778, 0x10934fe8, 0x10935128, 0x10935f70, 0x109360b0, 0x109363f0, 0x109365f8, 0x10936b00, 0x10936c40, 0x10936d80, 0x10937bc8, 0x10937d08, 0x10938048, 0x10938250, 0x10938758, 0x10938898, 0x109389d8, 0x10939820, 0x10939960, 0x10939ca0, 0x10939ea8, 0x1093a3b0, 0x1093a4f0, 0x1093a630, 0x1093b478, 0x1093b---Type to continue, or q to quit--- 5b8, 0x1093b8f8, 0x1093bb00, 0x1093c008, 0x1093c148, 0x1093c288, 0x1093d0d0, 0x1093d210, 0x1093d550, 0x1093d758, 0x1093dc60, 0x1093dda0, 0x1093dee0, 0x1093ed28, 0x1093ee68, 0x1093f1a8, 0x1093f3b0, 0x1093f8b8, 0x1093f9f8, 0x1093fb38, 0x10940980, 0x10940ac0, 0x10940e00, 0x10941008, 0x10941510, 0x10941650, 0x10941790, 0x109425d8, 0x10942718, 0x10942a58, 0x10942c60, 0x10943168, 0x109432a8, 0x109433e8, 0x10944230, 0x10944370, 0x10946510, 0x10946718, 0x10946c20, 0x10946d60, 0x10946ea0, 0x10947ce8, 0x10947e28, 0x10948168, 0x10948370, 0x10948878, 0x109489b8, 0x10948af8, 0x10949940, 0x10949a80, 0x10949dc0, 0x10949fc8, 0x1094a4d0, 0x1094a610, 0x1094a750, 0x1094b598, 0x1094b6d8, 0x1094ba18, 0x1094bc20, 0x1094c128, 0x1094c268, 0x1094c3a8, 0x1094d1f0, 0x1094d330, 0x1094d670, 0x1094d878, 0x1094dd80, 0x1094dec0, 0x1094e000, 0x1094ee48, 0x1094ef88, 0x1094f2c8, 0x1094f4d0, 0x1094f9d8, 0x1094fb18, 0x1094fc58, 0x10950aa0, 0x10950be0, 0x10950f20, 0x10951128, 0x10951630, 0x10951770, 0x109518b0, 0x109519f0, 0x10951b30, 0x10951f40, 0x10952080, 0x109524f0, 0x10953bc0, 0x10953d00, 0x10954738, 0x10954878, 0x10954c50, 0x1095aaf8}, loop_stack = std::stack wrapping: std::deque with 0 elements, gpr_reladdr = false} #3 0x00007fffe9153be3 in r600_pipe_shader_create (ctx=ctx@entry=0x42cc370, shader=shader@entry=0x108f5850, key=...) at r600_shader.c:184 rctx = 0x42cc370 sel = r = 0 dump = false use_sb = 1 sb_disasm = 1 export_shader = 0 __func__ = "r600_pipe_shader_create" #4 0x00007fffe915d3a3 in r600_shader_select (ctx=ctx@entry=0x42cc370, sel=0x103f5b50, dirty=dirty@entry=0x7fffffffbde3) at r600_state_common.c:755 key = {color_two_side = 0, alpha_to_one = 0, nr_cbufs = 1, vs_as_es = 0} shader = 0x108f5850 r = __func__ = "r600_shader_select" #5 0x00007fffe91603c6 in r600_draw_vbo (rctx=0x42cc370) at r600_state_common.c:1256 ---Type to continue, or q to quit--- ctx = 0x42cc370 ps_dirty = false vs_dirty = true gs_dirty = false blend_disable = rctx = 0x42cc370 info = {indexed = 1 '\001', mode = 4, start = 0, count = 6, start_instance = 0, instance_count = 1, index_bias = 0, min_index = , max_index = , primitive_restart = , restart_index = , count_from_stream_output = , indirect = , indirect_offset = } ib = {index_size = 0, offset = 0, buffer = 0x0, user_buffer = 0x0} i = cs = 0x4267320 #6 0x00007fffe91603c6 in r600_draw_vbo (ctx=0x42cc370, dinfo=) at r600_state_common.c:1379 rctx = 0x42cc370 info = {indexed = 1 '\001', mode = 4, start = 0, count = 6, start_instance = 0, instance_count = 1, index_bias = 0, min_index = , max_index = , primitive_restart = , restart_index = , count_from_stream_output = , indirect = , indirect_offset = } ib = {index_size = 0, offset = 0, buffer = 0x0, user_buffer = 0x0} i = cs = 0x4267320 #7 0x00007fffe8f6cbc6 in u_vbuf_draw_vbo (mgr=0x43b7c40, info=) at util/u_vbuf.c:1294 pipe = 0x42cc370 start_vertex = min_index = num_vertices = ---Type to continue, or q to quit--- unroll_indices = used_vb_mask = user_vb_mask = incompatible_vb_mask = new_info = {indexed = 1 '\001', mode = 4, start = 0, count = 6, start_instance = 0, instance_count = 1, index_bias = 0, min_index = 0, max_index = 3, primitive_restart = 0 '\000', restart_index = 0, count_from_stream_output = 0x0, indirect = 0x0, indirect_offset = 0} #8 0x00007fffe8e2045f in st_draw_vbo (ctx=, prims=0x7fffffffc1a0, nr_prims=1, ib=0x7fffffffc180, index_bounds_valid=, min_index=0, max_index=3, tfb_vertcount=0x0, indirect=0x0) at ../../src/mesa/state_tracker/st_draw.c:285 st = 0x439f3a0 ibuffer = {index_size = 2, offset = 0, buffer = 0x0, user_buffer = 0x9747800} info = {indexed = 1 '\001', mode = 4, start = 0, count = 6, start_instance = 0, instance_count = 1, index_bias = 0, min_index = 0, max_index = 3, primitive_restart = 0 '\000', restart_index = 0, count_from_stream_output = 0x0, indirect = 0x0, indirect_offset = 0} arrays = i = #9 0x00007fffe8df3049 in vbo_validated_drawrangeelements (ctx=ctx@entry=0x4288520, mode=mode@entry=4, index_bounds_valid=, start=start@entry=0, end=end@entry=3, count=count@entry=6, type=5123, indices=0x9747800, basevertex=0, numInstances=1, baseInstance=0) at ../../src/mesa/vbo/vbo_exec_array.c:990 vbo = 0x43a05b0 exec = 0x43a1090 ib = {count = 6, type = 5123, obj = 0x42ad850, ptr = 0x9747800} prim = {{mode = 4, indexed = 1, begin = 1, end = 1, weak = 0, no_current_update = 0, is_indirect = 0, pad = 0, start = 0,---Type to continue, or q to quit--- count = 6, basevertex = 0, num_instances = 1, base_instance = 0, indirect_offset = 0}} #10 0x00007fffe8df3385 in vbo_exec_DrawRangeElementsBaseVertex (mode=4, start=0, end=3, count=6, type=5123, indices=, basevertex=0) at ../../src/mesa/vbo/vbo_exec_array.c:1084 warnCount = 0 index_bounds_valid = ctx = 0x4288520 #11 0x00007fffe8df343b in vbo_exec_DrawRangeElements (mode=, start=, end=, count=, type=, indices=) at ../../src/mesa/vbo/vbo_exec_array.c:1104 #12 0x0000000001abdacd in LLVertexBuffer::drawRange(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) const () #13 0x00000000009ef2da in LLDrawPoolAlpha::renderAlpha(unsigned int, int) () #14 0x00000000009f0124 in LLDrawPoolAlpha::render(int) () #15 0x000000000179399e in LLPipeline::renderGeom(LLCamera&, int) () #16 0x0000000001797217 in LLPipeline::generateWaterReflection(LLCamera&) () #17 0x0000000001413404 in display(int, float, int, int) () #18 0x00000000008c7046 in LLAppViewer::mainLoop() () #19 0x0000000001847b99 in main ()