==14419== Memcheck, a memory error detector ==14419== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==14419== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==14419== Command: bin/shader_runner /home/tpalli/kevin_slow.shader_test -auto ==14419== ==14419== Invalid read of size 4 ==14419== at 0x6454A39: fs_reg_alloc::set_spill_costs() (brw_fs_reg_allocate.cpp:925) ==14419== by 0x6454B26: fs_reg_alloc::choose_spill_reg() (brw_fs_reg_allocate.cpp:948) ==14419== by 0x64556FD: fs_reg_alloc::assign_regs(bool, bool) (brw_fs_reg_allocate.cpp:1163) ==14419== by 0x6455A36: fs_visitor::assign_regs(bool, bool) (brw_fs_reg_allocate.cpp:1213) ==14419== by 0x641CD0B: fs_visitor::allocate_registers(unsigned int, bool) (brw_fs.cpp:7282) ==14419== by 0x641E084: fs_visitor::run_fs(bool, bool) (brw_fs.cpp:7694) ==14419== by 0x641F02C: brw_compile_fs (brw_fs.cpp:8028) ==14419== by 0x5C76299: brw_codegen_wm_prog (brw_wm.c:123) ==14419== by 0x5C77694: brw_fs_precompile (brw_wm.c:592) ==14419== by 0x5C5D6A6: brw_shader_precompile(gl_context*, gl_shader_program*) (brw_link.cpp:56) ==14419== by 0x5C5E889: brw_link_shader (brw_link.cpp:374) ==14419== by 0x5F7F5B1: _mesa_glsl_link_shader (ir_to_mesa.cpp:3170) ==14419== Address 0x852a124 is 0 bytes after a block of size 10,244 alloc'd ==14419== at 0x483880B: malloc (vg_replace_malloc.c:309) ==14419== by 0x5CAF04C: ralloc_size (ralloc.c:119) ==14419== by 0x5CAF3C1: ralloc_array_size (ralloc.c:221) ==14419== by 0x64317A9: fs_visitor::calculate_live_intervals() (brw_fs_live_variables.cpp:335) ==14419== by 0x6453FB4: fs_reg_alloc::build_interference_graph(bool) (brw_fs_reg_allocate.cpp:723) ==14419== by 0x645568C: fs_reg_alloc::assign_regs(bool, bool) (brw_fs_reg_allocate.cpp:1141) ==14419== by 0x6455A36: fs_visitor::assign_regs(bool, bool) (brw_fs_reg_allocate.cpp:1213) ==14419== by 0x641CD0B: fs_visitor::allocate_registers(unsigned int, bool) (brw_fs.cpp:7282) ==14419== by 0x641E084: fs_visitor::run_fs(bool, bool) (brw_fs.cpp:7694) ==14419== by 0x641F02C: brw_compile_fs (brw_fs.cpp:8028) ==14419== by 0x5C76299: brw_codegen_wm_prog (brw_wm.c:123) ==14419== by 0x5C77694: brw_fs_precompile (brw_wm.c:592) ==14419== ==14419== Invalid read of size 4 ==14419== at 0x6454A57: fs_reg_alloc::set_spill_costs() (brw_fs_reg_allocate.cpp:925) ==14419== by 0x6454B26: fs_reg_alloc::choose_spill_reg() (brw_fs_reg_allocate.cpp:948) ==14419== by 0x64556FD: fs_reg_alloc::assign_regs(bool, bool) (brw_fs_reg_allocate.cpp:1163) ==14419== by 0x6455A36: fs_visitor::assign_regs(bool, bool) (brw_fs_reg_allocate.cpp:1213) ==14419== by 0x641CD0B: fs_visitor::allocate_registers(unsigned int, bool) (brw_fs.cpp:7282) ==14419== by 0x641E084: fs_visitor::run_fs(bool, bool) (brw_fs.cpp:7694) ==14419== by 0x641F02C: brw_compile_fs (brw_fs.cpp:8028) ==14419== by 0x5C76299: brw_codegen_wm_prog (brw_wm.c:123) ==14419== by 0x5C77694: brw_fs_precompile (brw_wm.c:592) ==14419== by 0x5C5D6A6: brw_shader_precompile(gl_context*, gl_shader_program*) (brw_link.cpp:56) ==14419== by 0x5C5E889: brw_link_shader (brw_link.cpp:374) ==14419== by 0x5F7F5B1: _mesa_glsl_link_shader (ir_to_mesa.cpp:3170) ==14419== Address 0x83bdcb4 is 0 bytes after a block of size 10,244 alloc'd ==14419== at 0x483880B: malloc (vg_replace_malloc.c:309) ==14419== by 0x5CAF04C: ralloc_size (ralloc.c:119) ==14419== by 0x5CAF3C1: ralloc_array_size (ralloc.c:221) ==14419== by 0x6431783: fs_visitor::calculate_live_intervals() (brw_fs_live_variables.cpp:334) ==14419== by 0x6453FB4: fs_reg_alloc::build_interference_graph(bool) (brw_fs_reg_allocate.cpp:723) ==14419== by 0x645568C: fs_reg_alloc::assign_regs(bool, bool) (brw_fs_reg_allocate.cpp:1141) ==14419== by 0x6455A36: fs_visitor::assign_regs(bool, bool) (brw_fs_reg_allocate.cpp:1213) ==14419== by 0x641CD0B: fs_visitor::allocate_registers(unsigned int, bool) (brw_fs.cpp:7282) ==14419== by 0x641E084: fs_visitor::run_fs(bool, bool) (brw_fs.cpp:7694) ==14419== by 0x641F02C: brw_compile_fs (brw_fs.cpp:8028) ==14419== by 0x5C76299: brw_codegen_wm_prog (brw_wm.c:123) ==14419== by 0x5C77694: brw_fs_precompile (brw_wm.c:592) ==14419== PIGLIT: {"result": "pass" } ==14419== ==14419== HEAP SUMMARY: ==14419== in use at exit: 121,997 bytes in 12 blocks ==14419== total heap usage: 444,587 allocs, 444,575 frees, 183,803,665 bytes allocated ==14419== ==14419== LEAK SUMMARY: ==14419== definitely lost: 0 bytes in 0 blocks ==14419== indirectly lost: 0 bytes in 0 blocks ==14419== possibly lost: 108,837 bytes in 1 blocks ==14419== still reachable: 13,160 bytes in 11 blocks ==14419== suppressed: 0 bytes in 0 blocks ==14419== Rerun with --leak-check=full to see details of leaked memory ==14419== ==14419== For lists of detected and suppressed errors, rerun with: -s ==14419== ERROR SUMMARY: 4 errors from 2 contexts (suppressed: 0 from 0)