==8689== Memcheck, a memory error detector ==8689== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==8689== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info ==8689== Command: ./sample-2 -v ==8689== ==8689== Syscall param writev(vector[...]) points to uninitialised byte(s) ==8689== at 0x5E4FA07: writev (writev.c:49) ==8689== by 0x78D04BD: _xcb_conn_wait (xcb_conn.c:248) ==8689== by 0x78D0850: _xcb_out_send (xcb_out.c:367) ==8689== by 0x78D08D0: xcb_writev (xcb_out.c:315) ==8689== by 0x6BA4F05: _XSend (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==8689== by 0x6BA53E7: _XReply (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==8689== by 0x6BA10CC: XSync (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==8689== by 0x5331BAC: _glfwReleaseXErrorHandler (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x5331ADA: createNULLCursor (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x5331D24: _glfwPlatformInit (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x532BB5D: glfwInit (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x4017BD: main (main.cpp:42) ==8689== Address 0x9159b8a is 58 bytes inside a block of size 16,384 alloc'd ==8689== at 0x4C2C510: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==8689== by 0x6B95B93: XOpenDisplay (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==8689== by 0x5331C5E: _glfwPlatformInit (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x532BB5D: glfwInit (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x4017BD: main (main.cpp:42) ==8689== ==8689== Syscall param writev(vector[...]) points to uninitialised byte(s) ==8689== at 0x5E4FA50: writev (writev.c:54) ==8689== by 0x78D04BD: _xcb_conn_wait (xcb_conn.c:248) ==8689== by 0x78D0850: _xcb_out_send (xcb_out.c:367) ==8689== by 0x78D08D0: xcb_writev (xcb_out.c:315) ==8689== by 0x6BA4F05: _XSend (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==8689== by 0x6BA53E7: _XReply (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==8689== by 0x6BA10CC: XSync (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==8689== by 0x5331BAC: _glfwReleaseXErrorHandler (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x5333BE0: createWindow (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x5335AF7: _glfwPlatformCreateWindow (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x532DDC6: glfwCreateWindow (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x40180F: main (main.cpp:46) ==8689== Address 0x9159b91 is 65 bytes inside a block of size 16,384 alloc'd ==8689== at 0x4C2C510: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==8689== by 0x6B95B93: XOpenDisplay (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0) ==8689== by 0x5331C5E: _glfwPlatformInit (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x532BB5D: glfwInit (in /usr/local/lib/libglfw.so.3.1) ==8689== by 0x4017BD: main (main.cpp:42) ==8689== ==8689== Conditional jump or move depends on uninitialised value(s) ==8689== at 0x4C2F792: bcmp (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==8689== by 0x9AE180F: update_scissor (st_atom_scissor.c:88) ==8689== by 0x9ADE8E6: st_validate_state (st_atom.c:222) ==8689== by 0x9AE56AE: st_Clear (st_cb_clear.c:443) ==8689== by 0x401940: main (main.cpp:62) ==8689== ==8689== Conditional jump or move depends on uninitialised value(s) ==8689== at 0x9AE1812: update_scissor (st_atom_scissor.c:88) ==8689== by 0x9ADE8E6: st_validate_state (st_atom.c:222) ==8689== by 0x9AE56AE: st_Clear (st_cb_clear.c:443) ==8689== by 0x401940: main (main.cpp:62) ==8689== ==8689== Invalid read of size 4 ==8689== at 0x9CF9E36: evergreen_emit_vertex_buffers (evergreen_state.c:2479) ==8689== by 0x9D0859B: r600_draw_vbo (r600_pipe.h:479) ==8689== by 0x9C3ED68: u_vbuf_draw_vbo (u_vbuf.c:1146) ==8689== by 0x9AF1EBB: st_draw_vbo (st_draw.c:286) ==8689== by 0x9AC505C: vbo_draw_arrays (vbo_exec_array.c:661) ==8689== by 0x4019D9: main (main.cpp:67) ==8689== Address 0x4 is not stack'd, malloc'd or (recently) free'd ==8689== ==8689== ==8689== Process terminating with default action of signal 11 (SIGSEGV) ==8689== Access not within mapped region at address 0x4 ==8689== at 0x9CF9E36: evergreen_emit_vertex_buffers (evergreen_state.c:2479) ==8689== by 0x9D0859B: r600_draw_vbo (r600_pipe.h:479) ==8689== by 0x9C3ED68: u_vbuf_draw_vbo (u_vbuf.c:1146) ==8689== by 0x9AF1EBB: st_draw_vbo (st_draw.c:286) ==8689== by 0x9AC505C: vbo_draw_arrays (vbo_exec_array.c:661) ==8689== by 0x4019D9: main (main.cpp:67) ==8689== If you believe this happened as a result of a stack ==8689== overflow in your program's main thread (unlikely but ==8689== possible), you can try to increase the size of the ==8689== main thread stack using the --main-stacksize= flag. ==8689== The main thread stack size used in this run was 8388608. ==8689== ==8689== HEAP SUMMARY: ==8689== in use at exit: 3,960,976 bytes in 11,473 blocks ==8689== total heap usage: 33,850 allocs, 22,377 frees, 20,216,681 bytes allocated ==8689== ==8689== LEAK SUMMARY: ==8689== definitely lost: 0 bytes in 0 blocks ==8689== indirectly lost: 0 bytes in 0 blocks ==8689== possibly lost: 238,161 bytes in 3,024 blocks ==8689== still reachable: 3,722,815 bytes in 8,449 blocks ==8689== suppressed: 0 bytes in 0 blocks ==8689== Rerun with --leak-check=full to see details of leaked memory ==8689== ==8689== For counts of detected and suppressed errors, rerun with: -v ==8689== Use --track-origins=yes to see where uninitialised values come from ==8689== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 2 from 2)