==3898== Memcheck, a memory error detector ==3898== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==3898== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==3898== Command: ./test ==3898== Parent PID: 3793 ==3898== ==3898== Invalid read of size 4 ==3898== at 0x8C81BF5: r600_fence_reference (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CB0D69: dri_destroy_buffer (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7F290: driDestroyDrawable (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2EEA: dri2DestroyDrawable (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x609E0F1: glXDestroyWindow (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252CA9: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== Address 0xd61b928 is 40 bytes inside a block of size 656 free'd ==3898== at 0x4C20A1F: free (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x8C82B13: r600_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D6CBBE: st_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CAFE42: dri_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7EF11: driDestroyContext (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2BCD: dri2_destroy_context (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x607B901: glXDestroyContext (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252AB5: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== ==3898== Invalid read of size 8 ==3898== at 0x8C81C02: r600_fence_reference (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CB0D69: dri_destroy_buffer (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7F290: driDestroyDrawable (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2EEA: dri2DestroyDrawable (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x609E0F1: glXDestroyWindow (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252CA9: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== Address 0xd61b930 is 48 bytes inside a block of size 656 free'd ==3898== at 0x4C20A1F: free (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x8C82B13: r600_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D6CBBE: st_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CAFE42: dri_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7EF11: driDestroyContext (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2BCD: dri2_destroy_context (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x607B901: glXDestroyContext (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252AB5: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== ==3898== Invalid write of size 8 ==3898== at 0x8C81C11: r600_fence_reference (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CB0D69: dri_destroy_buffer (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7F290: driDestroyDrawable (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2EEA: dri2DestroyDrawable (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x609E0F1: glXDestroyWindow (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252CA9: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== Address 0xd61b948 is 72 bytes inside a block of size 656 free'd ==3898== at 0x4C20A1F: free (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x8C82B13: r600_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D6CBBE: st_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CAFE42: dri_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7EF11: driDestroyContext (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2BCD: dri2_destroy_context (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x607B901: glXDestroyContext (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252AB5: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== ==3898== Invalid read of size 8 ==3898== at 0x8C81C15: r600_fence_reference (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CB0D69: dri_destroy_buffer (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7F290: driDestroyDrawable (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2EEA: dri2DestroyDrawable (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x609E0F1: glXDestroyWindow (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252CA9: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== Address 0x875cb30 is 24,752 bytes inside a block of size 24,896 free'd ==3898== at 0x4C20A1F: free (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x8D6CBBE: st_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CAFE42: dri_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7EF11: driDestroyContext (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2BCD: dri2_destroy_context (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x607B901: glXDestroyContext (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252AB5: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== ==3898== Invalid write of size 8 ==3898== at 0x8C81C1C: r600_fence_reference (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CB0D69: dri_destroy_buffer (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7F290: driDestroyDrawable (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2EEA: dri2DestroyDrawable (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x609E0F1: glXDestroyWindow (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252CA9: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== Address 0xd61b940 is 64 bytes inside a block of size 656 free'd ==3898== at 0x4C20A1F: free (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x8C82B13: r600_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D6CBBE: st_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CAFE42: dri_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7EF11: driDestroyContext (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2BCD: dri2_destroy_context (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x607B901: glXDestroyContext (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252AB5: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== ==3898== Invalid read of size 8 ==3898== at 0x8C81C20: r600_fence_reference (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CB0D69: dri_destroy_buffer (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7F290: driDestroyDrawable (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2EEA: dri2DestroyDrawable (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x609E0F1: glXDestroyWindow (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252CA9: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== Address 0x875cb30 is 24,752 bytes inside a block of size 24,896 free'd ==3898== at 0x4C20A1F: free (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x8D6CBBE: st_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CAFE42: dri_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7EF11: driDestroyContext (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2BCD: dri2_destroy_context (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x607B901: glXDestroyContext (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252AB5: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== ==3898== Invalid write of size 8 ==3898== at 0x8C81C27: r600_fence_reference (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CB0D69: dri_destroy_buffer (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7F290: driDestroyDrawable (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2EEA: dri2DestroyDrawable (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x609E0F1: glXDestroyWindow (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252CA9: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== Address 0x875cb38 is 24,760 bytes inside a block of size 24,896 free'd ==3898== at 0x4C20A1F: free (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x8D6CBBE: st_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CAFE42: dri_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7EF11: driDestroyContext (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2BCD: dri2_destroy_context (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x607B901: glXDestroyContext (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252AB5: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== ==3898== Invalid write of size 8 ==3898== at 0x8C81C2B: r600_fence_reference (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CB0D69: dri_destroy_buffer (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7F290: driDestroyDrawable (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2EEA: dri2DestroyDrawable (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x609E0F1: glXDestroyWindow (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252CA9: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== Address 0x875cb30 is 24,752 bytes inside a block of size 24,896 free'd ==3898== at 0x4C20A1F: free (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x8D6CBBE: st_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CAFE42: dri_destroy_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7EF11: driDestroyContext (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2BCD: dri2_destroy_context (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x607B901: glXDestroyContext (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x5252AB5: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== ==3898== Conditional jump or move depends on uninitialised value(s) ==3898== at 0x51B8D97: irr::video::COpenGLSLMaterialRenderer::~COpenGLSLMaterialRenderer() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x5195651: irr::video::CNullDriver::deleteMaterialRenders() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x51A4DCB: irr::video::COpenGLDriver::~COpenGLDriver() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x5131EDA: irr::scene::CSceneManager::~CSceneManager() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x525FA62: irr::CIrrDeviceStub::~CIrrDeviceStub() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x5252C30: irr::CIrrDeviceLinux::~CIrrDeviceLinux() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4024D1: irr::IReferenceCounted::drop() const (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x402447: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== ==3898== ==3898== HEAP SUMMARY: ==3898== in use at exit: 228,626 bytes in 928 blocks ==3898== total heap usage: 126,521 allocs, 125,593 frees, 35,009,973 bytes allocated ==3898== ==3898== 10 bytes in 1 blocks are definitely lost in loss record 14 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x5D7FA01: strdup (in /lib/libc-2.7.so) ==3898== by 0x8DF7A4E: count_uniform_size::visit_field(glsl_type const*, char const*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF74EB: uniform_field_visitor::process(ir_variable*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF76B7: link_assign_uniform_locations(gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF6704: link_shaders(gl_context*, gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96238: _mesa_glsl_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D942B9: _mesa_get_fixed_func_fragment_program (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A246: _mesa_update_state_locked (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A38C: _mesa_update_state (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8E41D19: vbo_exec_Begin (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x51AD0C5: irr::video::COpenGLDriver::draw2DImageBatch(irr::video::ITexture const*, irr::core::array, irr::core::irrAllocator > > const&, irr::core::array, irr::core::irrAllocator > > const&, irr::core::rect const*, irr::video::SColor, bool) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== ==3898== 10 bytes in 1 blocks are definitely lost in loss record 15 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x5D7FA01: strdup (in /lib/libc-2.7.so) ==3898== by 0x8DF78EF: parcel_out_uniform_storage::visit_field(glsl_type const*, char const*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF74EB: uniform_field_visitor::process(ir_variable*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF77CC: link_assign_uniform_locations(gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF6704: link_shaders(gl_context*, gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96238: _mesa_glsl_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D942B9: _mesa_get_fixed_func_fragment_program (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A246: _mesa_update_state_locked (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A38C: _mesa_update_state (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8E41D19: vbo_exec_Begin (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x51AD0C5: irr::video::COpenGLDriver::draw2DImageBatch(irr::video::ITexture const*, irr::core::array, irr::core::irrAllocator > > const&, irr::core::array, irr::core::irrAllocator > > const&, irr::core::rect const*, irr::video::SColor, bool) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== ==3898== 10 bytes in 1 blocks are definitely lost in loss record 16 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x5D7FA01: strdup (in /lib/libc-2.7.so) ==3898== by 0x8DF7A4E: count_uniform_size::visit_field(glsl_type const*, char const*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF74EB: uniform_field_visitor::process(ir_variable*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF76B7: link_assign_uniform_locations(gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF6704: link_shaders(gl_context*, gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96238: _mesa_glsl_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D942B9: _mesa_get_fixed_func_fragment_program (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A246: _mesa_update_state_locked (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A38C: _mesa_update_state (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8E14CF4: _mesa_Clear (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x51A07EA: irr::video::COpenGLDriver::beginScene(bool, bool, irr::video::SColor, irr::video::SExposedVideoData const&, irr::core::rect*) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== ==3898== 10 bytes in 1 blocks are definitely lost in loss record 17 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x5D7FA01: strdup (in /lib/libc-2.7.so) ==3898== by 0x8DF78EF: parcel_out_uniform_storage::visit_field(glsl_type const*, char const*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF74EB: uniform_field_visitor::process(ir_variable*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF77CC: link_assign_uniform_locations(gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF6704: link_shaders(gl_context*, gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96238: _mesa_glsl_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D942B9: _mesa_get_fixed_func_fragment_program (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A246: _mesa_update_state_locked (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A38C: _mesa_update_state (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8E14CF4: _mesa_Clear (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x51A07EA: irr::video::COpenGLDriver::beginScene(bool, bool, irr::video::SColor, irr::video::SExposedVideoData const&, irr::core::rect*) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== ==3898== 10 bytes in 1 blocks are definitely lost in loss record 18 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x5D7FA01: strdup (in /lib/libc-2.7.so) ==3898== by 0x8DF7A4E: count_uniform_size::visit_field(glsl_type const*, char const*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF74EB: uniform_field_visitor::process(ir_variable*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF76B7: link_assign_uniform_locations(gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF6704: link_shaders(gl_context*, gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96238: _mesa_glsl_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D942B9: _mesa_get_fixed_func_fragment_program (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A246: _mesa_update_state_locked (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A38C: _mesa_update_state (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8E5F99B: vbo_exec_vtx_flush (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8E419CA: vbo_exec_FlushVertices (in /opt/gallium/lib/dri/r600_dri.so) ==3898== ==3898== 10 bytes in 1 blocks are definitely lost in loss record 19 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x5D7FA01: strdup (in /lib/libc-2.7.so) ==3898== by 0x8DF78EF: parcel_out_uniform_storage::visit_field(glsl_type const*, char const*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF74EB: uniform_field_visitor::process(ir_variable*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF77CC: link_assign_uniform_locations(gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF6704: link_shaders(gl_context*, gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96238: _mesa_glsl_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D942B9: _mesa_get_fixed_func_fragment_program (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A246: _mesa_update_state_locked (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A38C: _mesa_update_state (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8E5F99B: vbo_exec_vtx_flush (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8E419CA: vbo_exec_FlushVertices (in /opt/gallium/lib/dri/r600_dri.so) ==3898== ==3898== 10 bytes in 1 blocks are definitely lost in loss record 20 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x5D7FA01: strdup (in /lib/libc-2.7.so) ==3898== by 0x8DF7A4E: count_uniform_size::visit_field(glsl_type const*, char const*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF74EB: uniform_field_visitor::process(ir_variable*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF76B7: link_assign_uniform_locations(gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF6704: link_shaders(gl_context*, gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96238: _mesa_glsl_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D942B9: _mesa_get_fixed_func_fragment_program (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A246: _mesa_update_state_locked (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A38C: _mesa_update_state (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CD3859: _mesa_valid_to_render (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8E06FE6: _mesa_validate_DrawElements (in /opt/gallium/lib/dri/r600_dri.so) ==3898== ==3898== 10 bytes in 1 blocks are definitely lost in loss record 21 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x5D7FA01: strdup (in /lib/libc-2.7.so) ==3898== by 0x8DF78EF: parcel_out_uniform_storage::visit_field(glsl_type const*, char const*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF74EB: uniform_field_visitor::process(ir_variable*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF77CC: link_assign_uniform_locations(gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF6704: link_shaders(gl_context*, gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96238: _mesa_glsl_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D942B9: _mesa_get_fixed_func_fragment_program (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A246: _mesa_update_state_locked (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D3A38C: _mesa_update_state (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CD3859: _mesa_valid_to_render (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8E06FE6: _mesa_validate_DrawElements (in /opt/gallium/lib/dri/r600_dri.so) ==3898== ==3898== 32 bytes in 1 blocks are possibly lost in loss record 152 of 508 ==3898== at 0x4C21767: operator new(unsigned long) (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x56177A0: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator const&) (in /usr/lib/libstdc++.so.6.0.9) ==3898== by 0x56185B4: char* std::string::_S_construct(char const*, char const*, std::allocator const&, std::forward_iterator_tag) (in /usr/lib/libstdc++.so.6.0.9) ==3898== by 0x56186A9: std::basic_string, std::allocator >::basic_string(char const*, unsigned long, std::allocator const&) (in /usr/lib/libstdc++.so.6.0.9) ==3898== by 0x963492E: llvm::Module::Module(llvm::StringRef, llvm::LLVMContext&) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x95C34EC: LLVMModuleCreateWithNameInContext (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F39D76: init_gallivm_state (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F39F0B: gallivm_create (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8EA756E: draw_create_gallivm (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D6D154: st_init_draw (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D6CD61: st_create_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CC0CDE: st_api_create_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== ==3898== 32 bytes in 1 blocks are definitely lost in loss record 153 of 508 ==3898== at 0x4C1FB71: calloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x8F39BA4: gallivm_register_garbage_collector_callback (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F3A622: draw_llvm_create (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8EA7519: draw_create_gallivm (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D6D154: st_init_draw (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D6CD61: st_create_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CC0CDE: st_api_create_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8CAFD0E: dri_create_context (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8C7F3CA: dri2CreateNewContext (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x60A2B6C: dri2_create_context (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x607C245: CreateContext (in /opt/gallium/lib/libGL.so.1.2) ==3898== by 0x607C50B: glXCreateNewContext (in /opt/gallium/lib/libGL.so.1.2) ==3898== ==3898== 49 bytes in 1 blocks are possibly lost in loss record 215 of 508 ==3898== at 0x4C21767: operator new(unsigned long) (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x56177A0: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator const&) (in /usr/lib/libstdc++.so.6.0.9) ==3898== by 0x56185B4: char* std::string::_S_construct(char const*, char const*, std::allocator const&, std::forward_iterator_tag) (in /usr/lib/libstdc++.so.6.0.9) ==3898== by 0x56186A9: std::basic_string, std::allocator >::basic_string(char const*, unsigned long, std::allocator const&) (in /usr/lib/libstdc++.so.6.0.9) ==3898== by 0x96BA11C: llvm::Twine::str() const (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x96B67B8: llvm::Triple::setTriple(llvm::Twine const&) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F8A34B: llvm::JIT::selectTarget(llvm::Module*, llvm::StringRef, llvm::StringRef, llvm::SmallVectorImpl const&, std::string*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F7AC53: llvm::JIT::createJIT(llvm::Module*, std::string*, llvm::JITMemoryManager*, llvm::CodeGenOpt::Level, bool, llvm::CodeModel::Model, llvm::StringRef, llvm::StringRef, llvm::SmallVectorImpl const&) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F8FF84: llvm::EngineBuilder::create() (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F9D692: LLVMCreateJITCompilerForModule (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F39E65: init_gallivm_state (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F39F0B: gallivm_create (in /opt/gallium/lib/dri/r600_dri.so) ==3898== ==3898== 49 bytes in 1 blocks are possibly lost in loss record 216 of 508 ==3898== at 0x4C21767: operator new(unsigned long) (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x56177A0: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator const&) (in /usr/lib/libstdc++.so.6.0.9) ==3898== by 0x56185B4: char* std::string::_S_construct(char const*, char const*, std::allocator const&, std::forward_iterator_tag) (in /usr/lib/libstdc++.so.6.0.9) ==3898== by 0x56186A9: std::basic_string, std::allocator >::basic_string(char const*, unsigned long, std::allocator const&) (in /usr/lib/libstdc++.so.6.0.9) ==3898== by 0x90348AE: llvm::X86Subtarget::X86Subtarget(std::string const&, std::string const&, bool) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F9E2A4: llvm::X86TargetMachine::X86TargetMachine(llvm::Target const&, std::string const&, std::string const&, bool) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F9EB4A: llvm::X86_64TargetMachine::X86_64TargetMachine(llvm::Target const&, std::string const&, std::string const&) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F9F0D3: llvm::RegisterTargetMachine::Allocator(llvm::Target const&, std::string const&, std::string const&) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F8A296: llvm::JIT::selectTarget(llvm::Module*, llvm::StringRef, llvm::StringRef, llvm::SmallVectorImpl const&, std::string*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F7AC53: llvm::JIT::createJIT(llvm::Module*, std::string*, llvm::JITMemoryManager*, llvm::CodeGenOpt::Level, bool, llvm::CodeModel::Model, llvm::StringRef, llvm::StringRef, llvm::SmallVectorImpl const&) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F8FF84: llvm::EngineBuilder::create() (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8F9D692: LLVMCreateJITCompilerForModule (in /opt/gallium/lib/dri/r600_dri.so) ==3898== ==3898== 124 bytes in 1 blocks are definitely lost in loss record 331 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x78A9F15: get_peer_sock_name (in /usr/X11R7/lib/libxcb.so.1.1.0) ==3898== by 0x78A9FAE: _xcb_get_auth_info (in /usr/X11R7/lib/libxcb.so.1.1.0) ==3898== by 0x78A9CF7: xcb_connect_to_display_with_auth_info (in /usr/X11R7/lib/libxcb.so.1.1.0) ==3898== by 0x6512EC9: _XConnectXCB (in /usr/X11R7/lib/libX11.so.6.3.0) ==3898== by 0x6503833: XOpenDisplay (in /usr/X11R7/lib/libX11.so.6.3.0) ==3898== by 0x5251C0A: irr::CIrrDeviceLinux::createWindow() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x525B100: irr::CIrrDeviceLinux::CIrrDeviceLinux(irr::SIrrlichtCreationParameters const&) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x5261F37: createDeviceEx (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x526203F: createDevice (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x4017E4: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== by 0x5D28143: (below main) (in /lib/libc-2.7.so) ==3898== ==3898== 138 bytes in 12 blocks are definitely lost in loss record 336 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x5D7FA01: strdup (in /lib/libc-2.7.so) ==3898== by 0x8DF7A4E: count_uniform_size::visit_field(glsl_type const*, char const*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF74EB: uniform_field_visitor::process(ir_variable*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF76B7: link_assign_uniform_locations(gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF6704: link_shaders(gl_context*, gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96238: _mesa_glsl_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x51B8FA8: irr::video::COpenGLSLMaterialRenderer::linkProgram() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x51B9BB4: irr::video::COpenGLSLMaterialRenderer::init(int&, char const*, char const*, char const*, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x51A593B: irr::video::COpenGLDriver::addHighLevelShaderMaterial(char const*, char const*, irr::video::E_VERTEX_SHADER_TYPE, char const*, char const*, irr::video::E_PIXEL_SHADER_TYPE, char const*, char const*, irr::video::E_GEOMETRY_SHADER_TYPE, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int, irr::video::IShaderConstantSetCallBack*, irr::video::E_MATERIAL_TYPE, int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x51913F5: irr::video::CNullDriver::addHighLevelShaderMaterialFromFiles(irr::io::IReadFile*, char const*, irr::video::E_VERTEX_SHADER_TYPE, irr::io::IReadFile*, char const*, irr::video::E_PIXEL_SHADER_TYPE, irr::io::IReadFile*, char const*, irr::video::E_GEOMETRY_SHADER_TYPE, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int, irr::video::IShaderConstantSetCallBack*, irr::video::E_MATERIAL_TYPE, int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x5194482: irr::video::CNullDriver::addHighLevelShaderMaterialFromFiles(irr::core::string > const&, char const*, irr::video::E_VERTEX_SHADER_TYPE, irr::core::string > const&, char const*, irr::video::E_PIXEL_SHADER_TYPE, irr::core::string > const&, char const*, irr::video::E_GEOMETRY_SHADER_TYPE, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int, irr::video::IShaderConstantSetCallBack*, irr::video::E_MATERIAL_TYPE, int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== ==3898== 138 bytes in 12 blocks are definitely lost in loss record 337 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x5D7FA01: strdup (in /lib/libc-2.7.so) ==3898== by 0x8DF78EF: parcel_out_uniform_storage::visit_field(glsl_type const*, char const*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF74EB: uniform_field_visitor::process(ir_variable*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF77CC: link_assign_uniform_locations(gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DF6704: link_shaders(gl_context*, gl_shader_program*) (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96238: _mesa_glsl_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x51B8FA8: irr::video::COpenGLSLMaterialRenderer::linkProgram() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x51B9BB4: irr::video::COpenGLSLMaterialRenderer::init(int&, char const*, char const*, char const*, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x51A593B: irr::video::COpenGLDriver::addHighLevelShaderMaterial(char const*, char const*, irr::video::E_VERTEX_SHADER_TYPE, char const*, char const*, irr::video::E_PIXEL_SHADER_TYPE, char const*, char const*, irr::video::E_GEOMETRY_SHADER_TYPE, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int, irr::video::IShaderConstantSetCallBack*, irr::video::E_MATERIAL_TYPE, int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x51913F5: irr::video::CNullDriver::addHighLevelShaderMaterialFromFiles(irr::io::IReadFile*, char const*, irr::video::E_VERTEX_SHADER_TYPE, irr::io::IReadFile*, char const*, irr::video::E_PIXEL_SHADER_TYPE, irr::io::IReadFile*, char const*, irr::video::E_GEOMETRY_SHADER_TYPE, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int, irr::video::IShaderConstantSetCallBack*, irr::video::E_MATERIAL_TYPE, int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x5194482: irr::video::CNullDriver::addHighLevelShaderMaterialFromFiles(irr::core::string > const&, char const*, irr::video::E_VERTEX_SHADER_TYPE, irr::core::string > const&, char const*, irr::video::E_PIXEL_SHADER_TYPE, irr::core::string > const&, char const*, irr::video::E_GEOMETRY_SHADER_TYPE, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int, irr::video::IShaderConstantSetCallBack*, irr::video::E_MATERIAL_TYPE, int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== ==3898== 160 bytes in 10 blocks are definitely lost in loss record 350 of 508 ==3898== at 0x4C21E10: malloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x4C21FA0: realloc (in /opt/valgrind/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3898== by 0x8E3FDD6: _mesa_uniform_attach_driver_storage (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96936: _mesa_associate_uniform_storage (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8DB4D11: st_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x8D96254: _mesa_glsl_link_shader (in /opt/gallium/lib/dri/r600_dri.so) ==3898== by 0x51B8FA8: irr::video::COpenGLSLMaterialRenderer::linkProgram() (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x51B9BB4: irr::video::COpenGLSLMaterialRenderer::init(int&, char const*, char const*, char const*, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x51A593B: irr::video::COpenGLDriver::addHighLevelShaderMaterial(char const*, char const*, irr::video::E_VERTEX_SHADER_TYPE, char const*, char const*, irr::video::E_PIXEL_SHADER_TYPE, char const*, char const*, irr::video::E_GEOMETRY_SHADER_TYPE, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int, irr::video::IShaderConstantSetCallBack*, irr::video::E_MATERIAL_TYPE, int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x51913F5: irr::video::CNullDriver::addHighLevelShaderMaterialFromFiles(irr::io::IReadFile*, char const*, irr::video::E_VERTEX_SHADER_TYPE, irr::io::IReadFile*, char const*, irr::video::E_PIXEL_SHADER_TYPE, irr::io::IReadFile*, char const*, irr::video::E_GEOMETRY_SHADER_TYPE, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int, irr::video::IShaderConstantSetCallBack*, irr::video::E_MATERIAL_TYPE, int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x5194482: irr::video::CNullDriver::addHighLevelShaderMaterialFromFiles(irr::core::string > const&, char const*, irr::video::E_VERTEX_SHADER_TYPE, irr::core::string > const&, char const*, irr::video::E_PIXEL_SHADER_TYPE, irr::core::string > const&, char const*, irr::video::E_GEOMETRY_SHADER_TYPE, irr::scene::E_PRIMITIVE_TYPE, irr::scene::E_PRIMITIVE_TYPE, unsigned int, irr::video::IShaderConstantSetCallBack*, irr::video::E_MATERIAL_TYPE, int) (in /opt/irrlicht/lib/libIrrlicht.so.1.7.2) ==3898== by 0x403D26: ??? (in /tiedostot/gl/irr1.7/examples/10.Shaders/test) ==3898== ==3898== LEAK SUMMARY: ==3898== definitely lost: 672 bytes in 44 blocks ==3898== indirectly lost: 0 bytes in 0 blocks ==3898== possibly lost: 130 bytes in 3 blocks ==3898== still reachable: 227,824 bytes in 881 blocks ==3898== suppressed: 0 bytes in 0 blocks ==3898== Reachable blocks (those to which a pointer was found) are not shown. ==3898== To see them, rerun with: --leak-check=full --show-reachable=yes ==3898== ==3898== For counts of detected and suppressed errors, rerun with: -v ==3898== Use --track-origins=yes to see where uninitialised values come from ==3898== ERROR SUMMARY: 38 errors from 25 contexts (suppressed: 17 from 8)