==28253== Memcheck, a memory error detector ==28253== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==28253== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info ==28253== Command: ./sample-2 -v ==28253== ==28253== Syscall param writev(vector[...]) points to uninitialised byte(s) ==28253== at 0x5E4FA07: writev (writev.c:49) ==28253== by 0x78D04BD: _xcb_conn_wait (xcb_conn.c:248) ==28253== by 0x78D0850: _xcb_out_send (xcb_out.c:367) ==28253== by 0x78D08D0: xcb_writev (xcb_out.c:315) ==28253== by 0x6BA4F05: _XSend (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==28253== by 0x6BA53E7: _XReply (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==28253== by 0x6BA10CC: XSync (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==28253== by 0x5331BAC: _glfwReleaseXErrorHandler (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x5331ADA: createNULLCursor (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x5331D24: _glfwPlatformInit (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x532BB5D: glfwInit (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x4017BD: main (main.cpp:42) ==28253== Address 0x9159b8a is 58 bytes inside a block of size 16,384 alloc'd ==28253== at 0x4C2C510: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28253== by 0x6B95B93: XOpenDisplay (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==28253== by 0x5331C5E: _glfwPlatformInit (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x532BB5D: glfwInit (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x4017BD: main (main.cpp:42) ==28253== ==28253== Syscall param writev(vector[...]) points to uninitialised byte(s) ==28253== at 0x5E4FA50: writev (writev.c:54) ==28253== by 0x78D04BD: _xcb_conn_wait (xcb_conn.c:248) ==28253== by 0x78D0850: _xcb_out_send (xcb_out.c:367) ==28253== by 0x78D08D0: xcb_writev (xcb_out.c:315) ==28253== by 0x6BA4F05: _XSend (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==28253== by 0x6BA53E7: _XReply (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==28253== by 0x6BA10CC: XSync (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==28253== by 0x5331BAC: _glfwReleaseXErrorHandler (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x5333BE0: createWindow (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x5335AF7: _glfwPlatformCreateWindow (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x532DDC6: glfwCreateWindow (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x40180F: main (main.cpp:46) ==28253== Address 0x9159b91 is 65 bytes inside a block of size 16,384 alloc'd ==28253== at 0x4C2C510: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28253== by 0x6B95B93: XOpenDisplay (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==28253== by 0x5331C5E: _glfwPlatformInit (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x532BB5D: glfwInit (in /usr/local/lib/libglfw.so.3.1) ==28253== by 0x4017BD: main (main.cpp:42) ==28253== ==28253== Conditional jump or move depends on uninitialised value(s) ==28253== at 0x4C2F792: bcmp (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28253== by 0x9AE17DF: update_scissor (st_atom_scissor.c:88) ==28253== by 0x9ADE8B6: st_validate_state (st_atom.c:222) ==28253== by 0x9AE567E: st_Clear (st_cb_clear.c:443) ==28253== by 0x401940: main (main.cpp:62) ==28253== ==28253== Conditional jump or move depends on uninitialised value(s) ==28253== at 0x9AE17E2: update_scissor (st_atom_scissor.c:88) ==28253== by 0x9ADE8B6: st_validate_state (st_atom.c:222) ==28253== by 0x9AE567E: st_Clear (st_cb_clear.c:443) ==28253== by 0x401940: main (main.cpp:62) ==28253== ==28253== Invalid read of size 4 ==28253== at 0x9D43974: r600_context_add_resource_size (r600_pipe_common.c:114) ==28253== by 0x9D05E82: r600_set_vertex_buffers (r600_state_common.c:528) ==28253== by 0x9C1445D: blitter_restore_vertex_states (u_blitter.c:453) ==28253== by 0x9C14712: util_blitter_clear_custom.constprop.13 (u_blitter.c:1153) ==28253== by 0x9C15768: util_blitter_clear (u_blitter.c:1165) ==28253== by 0x9CDCE96: r600_clear (r600_blit.c:543) ==28253== by 0x9AE5DBA: st_Clear (st_cb_clear.c:512) ==28253== by 0x401940: main (main.cpp:62) ==28253== Address 0x4 is not stack'd, malloc'd or (recently) free'd ==28253== ==28253== ==28253== Process terminating with default action of signal 11 (SIGSEGV) ==28253== Access not within mapped region at address 0x4 ==28253== at 0x9D43974: r600_context_add_resource_size (r600_pipe_common.c:114) ==28253== by 0x9D05E82: r600_set_vertex_buffers (r600_state_common.c:528) ==28253== by 0x9C1445D: blitter_restore_vertex_states (u_blitter.c:453) ==28253== by 0x9C14712: util_blitter_clear_custom.constprop.13 (u_blitter.c:1153) ==28253== by 0x9C15768: util_blitter_clear (u_blitter.c:1165) ==28253== by 0x9CDCE96: r600_clear (r600_blit.c:543) ==28253== by 0x9AE5DBA: st_Clear (st_cb_clear.c:512) ==28253== by 0x401940: main (main.cpp:62) ==28253== If you believe this happened as a result of a stack ==28253== overflow in your program's main thread (unlikely but ==28253== possible), you can try to increase the size of the ==28253== main thread stack using the --main-stacksize= flag. ==28253== The main thread stack size used in this run was 8388608. ==28253== ==28253== HEAP SUMMARY: ==28253== in use at exit: 6,083,960 bytes in 42,837 blocks ==28253== total heap usage: 91,207 allocs, 48,370 frees, 179,045,277 bytes allocated ==28253== ==28253== LEAK SUMMARY: ==28253== definitely lost: 0 bytes in 0 blocks ==28253== indirectly lost: 0 bytes in 0 blocks ==28253== possibly lost: 238,161 bytes in 3,024 blocks ==28253== still reachable: 5,845,799 bytes in 39,813 blocks ==28253== suppressed: 0 bytes in 0 blocks ==28253== Rerun with --leak-check=full to see details of leaked memory ==28253== ==28253== For counts of detected and suppressed errors, rerun with: -v ==28253== Use --track-origins=yes to see where uninitialised values come from ==28253== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 2 from 2)