$ valgrind glretrace shared_context_buffer_unmap.trace ==4958== Memcheck, a memory error detector ==4958== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==4958== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==4958== Command: glretrace shared_context_buffer_unmap.trace ==4958== ==4958== Invalid read of size 8 ==4958== at 0xE6477C0: u_transfer_unmap_vtbl (u_transfer.c:154) ==4958== by 0xE44C275: pipe_buffer_unmap (u_inlines.h:308) ==4958== by 0xE44C275: st_bufferobj_unmap (st_cb_bufferobjects.c:484) ==4958== by 0xE309C67: _mesa_buffer_unmap_all_mappings (bufferobj.c:1249) ==4958== by 0xE309C67: _mesa_DeleteBuffers (bufferobj.c:1304) ==4958== by 0x573BA3: retrace_glDeleteBuffers(trace::Call&) (glretrace_gl.cpp:16503) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== Address 0x18738cc8 is 24 bytes inside a block of size 4,624 free'd ==4958== at 0x4C2CD5A: free (vg_replace_malloc.c:530) ==4958== by 0xE54331C: slab_destroy (slab.c:158) ==4958== by 0xE9B45A6: r600_common_context_cleanup (r600_pipe_common.c:535) ==4958== by 0xE8F6629: si_destroy_context (si_pipe.c:90) ==4958== by 0xE45F8B7: st_destroy_context (st_context.c:608) ==4958== by 0xE59D56C: dri_destroy_context (dri_context.c:188) ==4958== by 0xE59C7C2: driDestroyContext (dri_util.c:500) ==4958== by 0xB0BA9DE: dri3_destroy_context (dri3_glx.c:189) ==4958== by 0xB092CC8: glXDestroyContext (glxcmds.c:474) ==4958== by 0x413923: ~GlxContext (glws_glx.cpp:171) ==4958== by 0x413923: glws::GlxContext::~GlxContext() (glws_glx.cpp:172) ==4958== by 0x5BF1B7: release (glretrace.hpp:61) ==4958== by 0x5BF1B7: retrace_glXDestroyContext(trace::Call&) (glretrace_glx.cpp:126) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== Block was alloc'd at ==4958== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299) ==4958== by 0xE5431E9: slab_add_new_page (slab.c:68) ==4958== by 0xE5431E9: slab_alloc_st (slab.c:102) ==4958== by 0xE9B1494: r600_buffer_get_transfer (r600_buffer_common.c:286) ==4958== by 0xE9B1494: r600_buffer_transfer_map (r600_buffer_common.c:415) ==4958== by 0xE44C13A: pipe_buffer_map_range (u_inlines.h:280) ==4958== by 0xE44C13A: st_bufferobj_map_range (st_cb_bufferobjects.c:431) ==4958== by 0xE308538: _mesa_map_buffer_range (bufferobj.c:2527) ==4958== by 0xE308EB1: _mesa_MapBuffer (bufferobj.c:2660) ==4958== by 0x4AFB7A: retrace_glMapBuffer(trace::Call&) (glretrace_gl.cpp:16659) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== ==4958== Invalid read of size 4 ==4958== at 0xE9B10CC: r600_buffer_transfer_unmap (r600_buffer_common.c:464) ==4958== by 0xE44C275: pipe_buffer_unmap (u_inlines.h:308) ==4958== by 0xE44C275: st_bufferobj_unmap (st_cb_bufferobjects.c:484) ==4958== by 0xE309C67: _mesa_buffer_unmap_all_mappings (bufferobj.c:1249) ==4958== by 0xE309C67: _mesa_DeleteBuffers (bufferobj.c:1304) ==4958== by 0x573BA3: retrace_glDeleteBuffers(trace::Call&) (glretrace_gl.cpp:16503) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== Address 0x18738cd4 is 36 bytes inside a block of size 4,624 free'd ==4958== at 0x4C2CD5A: free (vg_replace_malloc.c:530) ==4958== by 0xE54331C: slab_destroy (slab.c:158) ==4958== by 0xE9B45A6: r600_common_context_cleanup (r600_pipe_common.c:535) ==4958== by 0xE8F6629: si_destroy_context (si_pipe.c:90) ==4958== by 0xE45F8B7: st_destroy_context (st_context.c:608) ==4958== by 0xE59D56C: dri_destroy_context (dri_context.c:188) ==4958== by 0xE59C7C2: driDestroyContext (dri_util.c:500) ==4958== by 0xB0BA9DE: dri3_destroy_context (dri3_glx.c:189) ==4958== by 0xB092CC8: glXDestroyContext (glxcmds.c:474) ==4958== by 0x413923: ~GlxContext (glws_glx.cpp:171) ==4958== by 0x413923: glws::GlxContext::~GlxContext() (glws_glx.cpp:172) ==4958== by 0x5BF1B7: release (glretrace.hpp:61) ==4958== by 0x5BF1B7: retrace_glXDestroyContext(trace::Call&) (glretrace_glx.cpp:126) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== Block was alloc'd at ==4958== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299) ==4958== by 0xE5431E9: slab_add_new_page (slab.c:68) ==4958== by 0xE5431E9: slab_alloc_st (slab.c:102) ==4958== by 0xE9B1494: r600_buffer_get_transfer (r600_buffer_common.c:286) ==4958== by 0xE9B1494: r600_buffer_transfer_map (r600_buffer_common.c:415) ==4958== by 0xE44C13A: pipe_buffer_map_range (u_inlines.h:280) ==4958== by 0xE44C13A: st_bufferobj_map_range (st_cb_bufferobjects.c:431) ==4958== by 0xE308538: _mesa_map_buffer_range (bufferobj.c:2527) ==4958== by 0xE308EB1: _mesa_MapBuffer (bufferobj.c:2660) ==4958== by 0x4AFB7A: retrace_glMapBuffer(trace::Call&) (glretrace_gl.cpp:16659) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== ==4958== Invalid read of size 8 ==4958== at 0xE9B0F63: r600_buffer_do_flush_region.isra.5 (r600_buffer_common.c:426) ==4958== by 0xE9B1124: r600_buffer_transfer_unmap (r600_buffer_common.c:466) ==4958== by 0xE44C275: pipe_buffer_unmap (u_inlines.h:308) ==4958== by 0xE44C275: st_bufferobj_unmap (st_cb_bufferobjects.c:484) ==4958== by 0xE309C67: _mesa_buffer_unmap_all_mappings (bufferobj.c:1249) ==4958== by 0xE309C67: _mesa_DeleteBuffers (bufferobj.c:1304) ==4958== by 0x573BA3: retrace_glDeleteBuffers(trace::Call&) (glretrace_gl.cpp:16503) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== Address 0x18738cf8 is 72 bytes inside a block of size 4,624 free'd ==4958== at 0x4C2CD5A: free (vg_replace_malloc.c:530) ==4958== by 0xE54331C: slab_destroy (slab.c:158) ==4958== by 0xE9B45A6: r600_common_context_cleanup (r600_pipe_common.c:535) ==4958== by 0xE8F6629: si_destroy_context (si_pipe.c:90) ==4958== by 0xE45F8B7: st_destroy_context (st_context.c:608) ==4958== by 0xE59D56C: dri_destroy_context (dri_context.c:188) ==4958== by 0xE59C7C2: driDestroyContext (dri_util.c:500) ==4958== by 0xB0BA9DE: dri3_destroy_context (dri3_glx.c:189) ==4958== by 0xB092CC8: glXDestroyContext (glxcmds.c:474) ==4958== by 0x413923: ~GlxContext (glws_glx.cpp:171) ==4958== by 0x413923: glws::GlxContext::~GlxContext() (glws_glx.cpp:172) ==4958== by 0x5BF1B7: release (glretrace.hpp:61) ==4958== by 0x5BF1B7: retrace_glXDestroyContext(trace::Call&) (glretrace_glx.cpp:126) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== Block was alloc'd at ==4958== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299) ==4958== by 0xE5431E9: slab_add_new_page (slab.c:68) ==4958== by 0xE5431E9: slab_alloc_st (slab.c:102) ==4958== by 0xE9B1494: r600_buffer_get_transfer (r600_buffer_common.c:286) ==4958== by 0xE9B1494: r600_buffer_transfer_map (r600_buffer_common.c:415) ==4958== by 0xE44C13A: pipe_buffer_map_range (u_inlines.h:280) ==4958== by 0xE44C13A: st_bufferobj_map_range (st_cb_bufferobjects.c:431) ==4958== by 0xE308538: _mesa_map_buffer_range (bufferobj.c:2527) ==4958== by 0xE308EB1: _mesa_MapBuffer (bufferobj.c:2660) ==4958== by 0x4AFB7A: retrace_glMapBuffer(trace::Call&) (glretrace_gl.cpp:16659) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== ==4958== Invalid read of size 8 ==4958== at 0xE9B0F67: r600_buffer_do_flush_region.isra.5 (r600_buffer_common.c:424) ==4958== by 0xE9B1124: r600_buffer_transfer_unmap (r600_buffer_common.c:466) ==4958== by 0xE44C275: pipe_buffer_unmap (u_inlines.h:308) ==4958== by 0xE44C275: st_bufferobj_unmap (st_cb_bufferobjects.c:484) ==4958== by 0xE309C67: _mesa_buffer_unmap_all_mappings (bufferobj.c:1249) ==4958== by 0xE309C67: _mesa_DeleteBuffers (bufferobj.c:1304) ==4958== by 0x573BA3: retrace_glDeleteBuffers(trace::Call&) (glretrace_gl.cpp:16503) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== Address 0x18738cc8 is 24 bytes inside a block of size 4,624 free'd ==4958== at 0x4C2CD5A: free (vg_replace_malloc.c:530) ==4958== by 0xE54331C: slab_destroy (slab.c:158) ==4958== by 0xE9B45A6: r600_common_context_cleanup (r600_pipe_common.c:535) ==4958== by 0xE8F6629: si_destroy_context (si_pipe.c:90) ==4958== by 0xE45F8B7: st_destroy_context (st_context.c:608) ==4958== by 0xE59D56C: dri_destroy_context (dri_context.c:188) ==4958== by 0xE59C7C2: driDestroyContext (dri_util.c:500) ==4958== by 0xB0BA9DE: dri3_destroy_context (dri3_glx.c:189) ==4958== by 0xB092CC8: glXDestroyContext (glxcmds.c:474) ==4958== by 0x413923: ~GlxContext (glws_glx.cpp:171) ==4958== by 0x413923: glws::GlxContext::~GlxContext() (glws_glx.cpp:172) ==4958== by 0x5BF1B7: release (glretrace.hpp:61) ==4958== by 0x5BF1B7: retrace_glXDestroyContext(trace::Call&) (glretrace_glx.cpp:126) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== Block was alloc'd at ==4958== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299) ==4958== by 0xE5431E9: slab_add_new_page (slab.c:68) ==4958== by 0xE5431E9: slab_alloc_st (slab.c:102) ==4958== by 0xE9B1494: r600_buffer_get_transfer (r600_buffer_common.c:286) ==4958== by 0xE9B1494: r600_buffer_transfer_map (r600_buffer_common.c:415) ==4958== by 0xE44C13A: pipe_buffer_map_range (u_inlines.h:280) ==4958== by 0xE44C13A: st_bufferobj_map_range (st_cb_bufferobjects.c:431) ==4958== by 0xE308538: _mesa_map_buffer_range (bufferobj.c:2527) ==4958== by 0xE308EB1: _mesa_MapBuffer (bufferobj.c:2660) ==4958== by 0x4AFB7A: retrace_glMapBuffer(trace::Call&) (glretrace_gl.cpp:16659) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== ==4958== Invalid read of size 4 ==4958== at 0xE9B0FD7: r600_buffer_do_flush_region.isra.5 (r600_buffer_common.c:442) ==4958== by 0xE9B1124: r600_buffer_transfer_unmap (r600_buffer_common.c:466) ==4958== by 0xE44C275: pipe_buffer_unmap (u_inlines.h:308) ==4958== by 0xE44C275: st_bufferobj_unmap (st_cb_bufferobjects.c:484) ==4958== by 0xE309C67: _mesa_buffer_unmap_all_mappings (bufferobj.c:1249) ==4958== by 0xE309C67: _mesa_DeleteBuffers (bufferobj.c:1304) ==4958== by 0x573BA3: retrace_glDeleteBuffers(trace::Call&) (glretrace_gl.cpp:16503) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== Address 0x18738cd8 is 40 bytes inside a block of size 4,624 free'd ==4958== at 0x4C2CD5A: free (vg_replace_malloc.c:530) ==4958== by 0xE54331C: slab_destroy (slab.c:158) ==4958== by 0xE9B45A6: r600_common_context_cleanup (r600_pipe_common.c:535) ==4958== by 0xE8F6629: si_destroy_context (si_pipe.c:90) ==4958== by 0xE45F8B7: st_destroy_context (st_context.c:608) ==4958== by 0xE59D56C: dri_destroy_context (dri_context.c:188) ==4958== by 0xE59C7C2: driDestroyContext (dri_util.c:500) ==4958== by 0xB0BA9DE: dri3_destroy_context (dri3_glx.c:189) ==4958== by 0xB092CC8: glXDestroyContext (glxcmds.c:474) ==4958== by 0x413923: ~GlxContext (glws_glx.cpp:171) ==4958== by 0x413923: glws::GlxContext::~GlxContext() (glws_glx.cpp:172) ==4958== by 0x5BF1B7: release (glretrace.hpp:61) ==4958== by 0x5BF1B7: retrace_glXDestroyContext(trace::Call&) (glretrace_glx.cpp:126) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== Block was alloc'd at ==4958== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299) ==4958== by 0xE5431E9: slab_add_new_page (slab.c:68) ==4958== by 0xE5431E9: slab_alloc_st (slab.c:102) ==4958== by 0xE9B1494: r600_buffer_get_transfer (r600_buffer_common.c:286) ==4958== by 0xE9B1494: r600_buffer_transfer_map (r600_buffer_common.c:415) ==4958== by 0xE44C13A: pipe_buffer_map_range (u_inlines.h:280) ==4958== by 0xE44C13A: st_bufferobj_map_range (st_cb_bufferobjects.c:431) ==4958== by 0xE308538: _mesa_map_buffer_range (bufferobj.c:2527) ==4958== by 0xE308EB1: _mesa_MapBuffer (bufferobj.c:2660) ==4958== by 0x4AFB7A: retrace_glMapBuffer(trace::Call&) (glretrace_gl.cpp:16659) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== ==4958== Invalid read of size 4 ==4958== at 0xE9B0FDA: r600_buffer_do_flush_region.isra.5 (r600_buffer_common.c:442) ==4958== by 0xE9B1124: r600_buffer_transfer_unmap (r600_buffer_common.c:466) ==4958== by 0xE44C275: pipe_buffer_unmap (u_inlines.h:308) ==4958== by 0xE44C275: st_bufferobj_unmap (st_cb_bufferobjects.c:484) ==4958== by 0xE309C67: _mesa_buffer_unmap_all_mappings (bufferobj.c:1249) ==4958== by 0xE309C67: _mesa_DeleteBuffers (bufferobj.c:1304) ==4958== by 0x573BA3: retrace_glDeleteBuffers(trace::Call&) (glretrace_gl.cpp:16503) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== Address 0x18738ce4 is 52 bytes inside a block of size 4,624 free'd ==4958== at 0x4C2CD5A: free (vg_replace_malloc.c:530) ==4958== by 0xE54331C: slab_destroy (slab.c:158) ==4958== by 0xE9B45A6: r600_common_context_cleanup (r600_pipe_common.c:535) ==4958== by 0xE8F6629: si_destroy_context (si_pipe.c:90) ==4958== by 0xE45F8B7: st_destroy_context (st_context.c:608) ==4958== by 0xE59D56C: dri_destroy_context (dri_context.c:188) ==4958== by 0xE59C7C2: driDestroyContext (dri_util.c:500) ==4958== by 0xB0BA9DE: dri3_destroy_context (dri3_glx.c:189) ==4958== by 0xB092CC8: glXDestroyContext (glxcmds.c:474) ==4958== by 0x413923: ~GlxContext (glws_glx.cpp:171) ==4958== by 0x413923: glws::GlxContext::~GlxContext() (glws_glx.cpp:172) ==4958== by 0x5BF1B7: release (glretrace.hpp:61) ==4958== by 0x5BF1B7: retrace_glXDestroyContext(trace::Call&) (glretrace_glx.cpp:126) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== Block was alloc'd at ==4958== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299) ==4958== by 0xE5431E9: slab_add_new_page (slab.c:68) ==4958== by 0xE5431E9: slab_alloc_st (slab.c:102) ==4958== by 0xE9B1494: r600_buffer_get_transfer (r600_buffer_common.c:286) ==4958== by 0xE9B1494: r600_buffer_transfer_map (r600_buffer_common.c:415) ==4958== by 0xE44C13A: pipe_buffer_map_range (u_inlines.h:280) ==4958== by 0xE44C13A: st_bufferobj_map_range (st_cb_bufferobjects.c:431) ==4958== by 0xE308538: _mesa_map_buffer_range (bufferobj.c:2527) ==4958== by 0xE308EB1: _mesa_MapBuffer (bufferobj.c:2660) ==4958== by 0x4AFB7A: retrace_glMapBuffer(trace::Call&) (glretrace_gl.cpp:16659) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== ==4958== Invalid read of size 8 ==4958== at 0xE9B10D9: r600_buffer_transfer_unmap (r600_buffer_common.c:468) ==4958== by 0xE44C275: pipe_buffer_unmap (u_inlines.h:308) ==4958== by 0xE44C275: st_bufferobj_unmap (st_cb_bufferobjects.c:484) ==4958== by 0xE309C67: _mesa_buffer_unmap_all_mappings (bufferobj.c:1249) ==4958== by 0xE309C67: _mesa_DeleteBuffers (bufferobj.c:1304) ==4958== by 0x573BA3: retrace_glDeleteBuffers(trace::Call&) (glretrace_gl.cpp:16503) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== Address 0x18738cf8 is 72 bytes inside a block of size 4,624 free'd ==4958== at 0x4C2CD5A: free (vg_replace_malloc.c:530) ==4958== by 0xE54331C: slab_destroy (slab.c:158) ==4958== by 0xE9B45A6: r600_common_context_cleanup (r600_pipe_common.c:535) ==4958== by 0xE8F6629: si_destroy_context (si_pipe.c:90) ==4958== by 0xE45F8B7: st_destroy_context (st_context.c:608) ==4958== by 0xE59D56C: dri_destroy_context (dri_context.c:188) ==4958== by 0xE59C7C2: driDestroyContext (dri_util.c:500) ==4958== by 0xB0BA9DE: dri3_destroy_context (dri3_glx.c:189) ==4958== by 0xB092CC8: glXDestroyContext (glxcmds.c:474) ==4958== by 0x413923: ~GlxContext (glws_glx.cpp:171) ==4958== by 0x413923: glws::GlxContext::~GlxContext() (glws_glx.cpp:172) ==4958== by 0x5BF1B7: release (glretrace.hpp:61) ==4958== by 0x5BF1B7: retrace_glXDestroyContext(trace::Call&) (glretrace_glx.cpp:126) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== Block was alloc'd at ==4958== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299) ==4958== by 0xE5431E9: slab_add_new_page (slab.c:68) ==4958== by 0xE5431E9: slab_alloc_st (slab.c:102) ==4958== by 0xE9B1494: r600_buffer_get_transfer (r600_buffer_common.c:286) ==4958== by 0xE9B1494: r600_buffer_transfer_map (r600_buffer_common.c:415) ==4958== by 0xE44C13A: pipe_buffer_map_range (u_inlines.h:280) ==4958== by 0xE44C13A: st_bufferobj_map_range (st_cb_bufferobjects.c:431) ==4958== by 0xE308538: _mesa_map_buffer_range (bufferobj.c:2527) ==4958== by 0xE308EB1: _mesa_MapBuffer (bufferobj.c:2660) ==4958== by 0x4AFB7A: retrace_glMapBuffer(trace::Call&) (glretrace_gl.cpp:16659) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== ==4958== Invalid write of size 8 ==4958== at 0xE543278: slab_free_st (slab.c:121) ==4958== by 0xE44C275: pipe_buffer_unmap (u_inlines.h:308) ==4958== by 0xE44C275: st_bufferobj_unmap (st_cb_bufferobjects.c:484) ==4958== by 0xE309C67: _mesa_buffer_unmap_all_mappings (bufferobj.c:1249) ==4958== by 0xE309C67: _mesa_DeleteBuffers (bufferobj.c:1304) ==4958== by 0x573BA3: retrace_glDeleteBuffers(trace::Call&) (glretrace_gl.cpp:16503) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== Address 0x18738cc0 is 16 bytes inside a block of size 4,624 free'd ==4958== at 0x4C2CD5A: free (vg_replace_malloc.c:530) ==4958== by 0xE54331C: slab_destroy (slab.c:158) ==4958== by 0xE9B45A6: r600_common_context_cleanup (r600_pipe_common.c:535) ==4958== by 0xE8F6629: si_destroy_context (si_pipe.c:90) ==4958== by 0xE45F8B7: st_destroy_context (st_context.c:608) ==4958== by 0xE59D56C: dri_destroy_context (dri_context.c:188) ==4958== by 0xE59C7C2: driDestroyContext (dri_util.c:500) ==4958== by 0xB0BA9DE: dri3_destroy_context (dri3_glx.c:189) ==4958== by 0xB092CC8: glXDestroyContext (glxcmds.c:474) ==4958== by 0x413923: ~GlxContext (glws_glx.cpp:171) ==4958== by 0x413923: glws::GlxContext::~GlxContext() (glws_glx.cpp:172) ==4958== by 0x5BF1B7: release (glretrace.hpp:61) ==4958== by 0x5BF1B7: retrace_glXDestroyContext(trace::Call&) (glretrace_glx.cpp:126) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== Block was alloc'd at ==4958== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299) ==4958== by 0xE5431E9: slab_add_new_page (slab.c:68) ==4958== by 0xE5431E9: slab_alloc_st (slab.c:102) ==4958== by 0xE9B1494: r600_buffer_get_transfer (r600_buffer_common.c:286) ==4958== by 0xE9B1494: r600_buffer_transfer_map (r600_buffer_common.c:415) ==4958== by 0xE44C13A: pipe_buffer_map_range (u_inlines.h:280) ==4958== by 0xE44C13A: st_bufferobj_map_range (st_cb_bufferobjects.c:431) ==4958== by 0xE308538: _mesa_map_buffer_range (bufferobj.c:2527) ==4958== by 0xE308EB1: _mesa_MapBuffer (bufferobj.c:2660) ==4958== by 0x4AFB7A: retrace_glMapBuffer(trace::Call&) (glretrace_gl.cpp:16659) ==4958== by 0x413DDB: retrace::retraceCall(trace::Call*) (retrace_main.cpp:240) ==4958== by 0x414543: runLeg (retrace_main.cpp:393) ==4958== by 0x414543: runRace (retrace_main.cpp:371) ==4958== by 0x414543: retrace::RelayRace::run() (retrace_main.cpp:512) ==4958== by 0x40F644: mainLoop (retrace_main.cpp:572) ==4958== by 0x40F644: main (retrace_main.cpp:958) ==4958== Rendered 0 frames in 0.504907 secs, average of 0 fps ==4958== ==4958== HEAP SUMMARY: ==4958== in use at exit: 2,687,060 bytes in 5,385 blocks ==4958== total heap usage: 22,479 allocs, 17,094 frees, 8,456,550 bytes allocated ==4958== ==4958== LEAK SUMMARY: ==4958== definitely lost: 4,880 bytes in 2 blocks ==4958== indirectly lost: 0 bytes in 0 blocks ==4958== possibly lost: 775,986 bytes in 863 blocks ==4958== still reachable: 1,906,194 bytes in 4,520 blocks ==4958== suppressed: 0 bytes in 0 blocks ==4958== Rerun with --leak-check=full to see details of leaked memory ==4958== ==4958== For counts of detected and suppressed errors, rerun with: -v ==4958== ERROR SUMMARY: 8 errors from 8 contexts (suppressed: 0 from 0) $LIBGL_ALWAYS_SOFTWARE=1 valgrind glretrace shared_context_buffer_unmap.trace ==5163== Memcheck, a memory error detector ==5163== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==5163== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==5163== Command: glretrace shared_context_buffer_unmap.trace ==5163== Rendered 0 frames in 0.657091 secs, average of 0 fps ==5163== ==5163== HEAP SUMMARY: ==5163== in use at exit: 3,773,341 bytes in 4,485 blocks ==5163== total heap usage: 24,222 allocs, 19,737 frees, 47,054,104 bytes allocated ==5163== ==5163== LEAK SUMMARY: ==5163== definitely lost: 2,112 bytes in 4 blocks ==5163== indirectly lost: 1,581,691 bytes in 950 blocks ==5163== possibly lost: 19,772 bytes in 48 blocks ==5163== still reachable: 2,169,766 bytes in 3,483 blocks ==5163== suppressed: 0 bytes in 0 blocks ==5163== Rerun with --leak-check=full to see details of leaked memory ==5163== ==5163== For counts of detected and suppressed errors, rerun with: -v ==5163== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)