==10496== Memcheck, a memory error detector ==10496== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==10496== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info ==10496== Command: /usr/libexec/xscreensaver/endgame -fps ==10496== --10496-- Valgrind options: --10496-- -v --10496-- Contents of /proc/version: --10496-- Linux version 2.6.33.5 (chris@volcano.underworld) (gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC) ) #1 SMP PREEMPT Thu May 27 01:43:46 BST 2010 --10496-- Arch and hwcaps: X86, x86-sse1-sse2 --10496-- Page sizes: currently 4096, max supported 4096 --10496-- Valgrind library directory: /usr/lib/valgrind --10496-- Reading syms from /usr/libexec/xscreensaver/endgame (0x8045000) --10496-- Reading debug info from /usr/lib/debug/usr/libexec/xscreensaver/endgame.debug .. --10496-- Reading syms from /usr/lib/valgrind/memcheck-x86-linux (0x38000000) --10496-- object doesn't have a dynamic symbol table --10496-- Reading syms from /lib/ld-2.12.so (0x47fb4000) --10496-- Reading debug info from /usr/lib/debug/lib/ld-2.12.so.debug .. --10496-- Reading suppressions file: /usr/lib/valgrind/default.supp --10496-- REDIR: 0x47fcb930 (index) redirected to 0x3803e023 (vgPlain_x86_linux_REDIR_FOR_index) --10496-- Reading syms from /usr/lib/valgrind/vgpreload_core-x86-linux.so (0x4001000) --10496-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so (0x4003000) ==10496== WARNING: new redirection conflicts with existing -- ignoring it --10496-- new: 0x47fcb930 (index ) R-> 0x04006920 index --10496-- REDIR: 0x47fcbb00 (strlen) redirected to 0x4006d40 (strlen) --10496-- Reading syms from /home/chris/Programs/local-mesa/lib/libGL.so.1.2 (0x400a000) --10496-- Reading syms from /home/chris/Programs/local-mesa/lib/libGLU.so.1.3.070900 (0x4060000) --10496-- Reading syms from /usr/lib/libXxf86vm.so.1.0.0 (0x49625000) --10496-- Reading debug info from /usr/lib/debug/usr/lib/libXxf86vm.so.1.0.0.debug .. --10496-- Reading syms from /lib/libpthread-2.12.so (0x48197000) --10496-- Reading debug info from /usr/lib/debug/lib/libpthread-2.12.so.debug .. --10496-- Reading syms from /usr/lib/libSM.so.6.0.0 (0x486cb000) --10496-- Reading debug info from /usr/lib/debug/usr/lib/libSM.so.6.0.0.debug .. --10496-- Reading syms from /usr/lib/libICE.so.6.3.0 (0x486d5000) --10496-- Reading debug info from /usr/lib/debug/usr/lib/libICE.so.6.3.0.debug .. --10496-- Reading syms from /usr/lib/libXt.so.6.0.0 (0x48ea0000) --10496-- Reading debug info from /usr/lib/debug/usr/lib/libXt.so.6.0.0.debug .. --10496-- Reading syms from /usr/lib/libX11.so.6.3.0 (0x481d9000) --10496-- Reading debug info from /usr/lib/debug/usr/lib/libX11.so.6.3.0.debug .. --10496-- Reading syms from /usr/lib/libXmu.so.6.2.0 (0x48fee000) --10496-- Reading debug info from /usr/lib/debug/usr/lib/libXmu.so.6.2.0.debug .. --10496-- Reading syms from /usr/lib/libXext.so.6.4.0 (0x48455000) --10496-- Reading debug info from /usr/lib/debug/usr/lib/libXext.so.6.4.0.debug .. --10496-- Reading syms from /lib/libm-2.12.so (0x48164000) --10496-- Reading debug info from /usr/lib/debug/lib/libm-2.12.so.debug .. --10496-- Reading syms from /lib/libc-2.12.so (0x47fd6000) --10496-- Reading debug info from /usr/lib/debug/lib/libc-2.12.so.debug .. --10496-- Reading syms from /usr/lib/libXdamage.so.1.1.0 (0x485f5000) --10496-- Reading debug info from /usr/lib/debug/usr/lib/libXdamage.so.1.1.0.debug .. --10496-- Reading syms from /usr/lib/libXfixes.so.3.1.0 (0x485bd000) --10496-- Reading debug info from /usr/lib/debug/usr/lib/libXfixes.so.3.1.0.debug .. --10496-- Reading syms from /usr/lib/libdrm.so.2.4.0 (0x496f5000) --10496-- object doesn't have a symbol table --10496-- Reading syms from /lib/libdl-2.12.so (0x48190000) --10496-- Reading debug info from /usr/lib/debug/lib/libdl-2.12.so.debug .. --10496-- Reading syms from /usr/lib/libstdc++.so.6.0.13 (0x48eff000) --10496-- object doesn't have a symbol table --10496-- Reading syms from /lib/libgcc_s-4.4.4-20100503.so.1 (0x48e80000) --10496-- object doesn't have a symbol table --10496-- Reading syms from /lib/libuuid.so.1.3.0 (0x485c4000) --10496-- object doesn't have a symbol table --10496-- Reading syms from /usr/lib/libxcb.so.1.1.0 (0x48313000) --10496-- object doesn't have a symbol table --10496-- Reading syms from /lib/librt-2.12.so (0x481b4000) --10496-- Reading debug info from /usr/lib/debug/lib/librt-2.12.so.debug .. --10496-- Reading syms from /usr/lib/libXau.so.6.0.0 (0x481d4000) --10496-- object doesn't have a symbol table --10496-- REDIR: 0x4804d1d0 (index) redirected to 0x4006890 (index) --10496-- REDIR: 0x4804e670 (memchr) redirected to 0x4007480 (memchr) --10496-- REDIR: 0x4804ddb0 (rindex) redirected to 0x40067a0 (rindex) --10496-- REDIR: 0x48048cf0 (calloc) redirected to 0x4004e67 (calloc) --10496-- REDIR: 0x4804d940 (strlen) redirected to 0x4001400 (_vgnU_ifunc_wrapper) --10496-- REDIR: 0x4804d980 (__strlen_sse2) redirected to 0x4006d00 (strlen) --10496-- REDIR: 0x48049000 (malloc) redirected to 0x4005b57 (malloc) --10496-- REDIR: 0x4804d020 (strcat) redirected to 0x40069b0 (strcat) --10496-- REDIR: 0x4804da00 (__GI_strlen) redirected to 0x4006d20 (__GI_strlen) --10496-- REDIR: 0x480cb590 (__strcpy_chk) redirected to 0x4008770 (__strcpy_chk) --10496-- REDIR: 0x48049bd0 (free) redirected to 0x4005771 (free) --10496-- REDIR: 0x4804f1f0 (memcpy) redirected to 0x4001400 (_vgnU_ifunc_wrapper) --10496-- REDIR: 0x480ffd30 (__memcpy_ssse3) redirected to 0x40074c0 (memcpy) --10496-- REDIR: 0x4804d400 (strcpy) redirected to 0x4006d80 (strcpy) --10496-- REDIR: 0x4804ec00 (memset) redirected to 0x4001400 (_vgnU_ifunc_wrapper) --10496-- REDIR: 0x480fec20 (__memset_sse2) redirected to 0x40080f0 (memset) --10496-- REDIR: 0x48050670 (rawmemchr) redirected to 0x4008210 (rawmemchr) --10496-- REDIR: 0x4804eb40 (memmove) redirected to 0x4001400 (_vgnU_ifunc_wrapper) --10496-- REDIR: 0x48101c20 (__memmove_ssse3) redirected to 0x4008160 (memmove) --10496-- REDIR: 0x4804d340 (strcmp) redirected to 0x4001400 (_vgnU_ifunc_wrapper) --10496-- REDIR: 0x48107f70 (__strcmp_ssse3) redirected to 0x4007300 (strcmp) --10496-- REDIR: 0x4804dc40 (strncpy) redirected to 0x4006f40 (strncpy) --10496-- REDIR: 0x48050740 (strchrnul) redirected to 0x40081e0 (strchrnul) --10496-- REDIR: 0x4804dbf0 (strncmp) redirected to 0x4001400 (_vgnU_ifunc_wrapper) --10496-- REDIR: 0x481093e0 (__strncmp_ssse3) redirected to 0x4007220 (strncmp) --10496-- REDIR: 0x4804a050 (realloc) redirected to 0x4005c06 (realloc) --10496-- REDIR: 0x48054830 (__GI_strncmp) redirected to 0x4007290 (__GI_strncmp) --10496-- REDIR: 0x4804dac0 (strnlen) redirected to 0x4006ca0 (strnlen) --10496-- Reading syms from /home/chris/Programs/local-mesa/lib/dri/radeong_dri.so (0x44f0000) --10496-- Reading syms from /lib/libexpat.so.1.5.2 (0x48593000) --10496-- object doesn't have a symbol table --10496-- Reading syms from /usr/lib/libdrm_radeon.so.1.0.0 (0x477b000) --10496-- object doesn't have a symbol table ==10496== Syscall param ioctl(generic) points to uninitialised byte(s) ==10496== at 0x480AB1F9: ioctl (syscall-template.S:82) ==10496== by 0x496F7DAB: drmCommandWriteRead (in /usr/lib/libdrm.so.2.4.0) ==10496== by 0x477CA9F: radeon_cs_manager_gem_ctor (in /usr/lib/libdrm_radeon.so.1.0.0) ==10496== by 0x4500861: radeon_setup_winsys (radeon_r300.c:299) ==10496== by 0x45005C8: radeon_create_screen (radeon_drm.c:171) ==10496== by 0x44FF82D: dri2_init_screen (dri2.c:521) ==10496== by 0x44FBAC9: dri2CreateNewScreen (dri_util.c:868) ==10496== by 0x40472DB: dri2CreateScreen (dri2_glx.c:677) ==10496== by 0x40238F6: __glXInitialize (glxext.c:794) ==10496== by 0x401E899: GetGLXPrivScreenConfig (glxcmds.c:194) ==10496== by 0x401F8C5: glXChooseVisual (glxcmds.c:1507) ==10496== by 0x805450D: ??? (in /usr/libexec/xscreensaver/endgame) ==10496== Address 0xbe835414 is on thread 1's stack ==10496== --10496-- Reading syms from /usr/lib/libtxc_dxtn.so (0x4780000) --10496-- REDIR: 0x48049b40 (posix_memalign) redirected to 0x4004e19 (posix_memalign) ==10496== Syscall param ioctl(generic) points to uninitialised byte(s) ==10496== at 0x480AB1F9: ioctl (syscall-template.S:82) ==10496== by 0x496F7DAB: drmCommandWriteRead (in /usr/lib/libdrm.so.2.4.0) ==10496== by 0x477C040: ??? (in /usr/lib/libdrm_radeon.so.1.0.0) ==10496== by 0x477D8A2: radeon_bo_get_tiling (in /usr/lib/libdrm_radeon.so.1.0.0) ==10496== by 0x45014CC: radeon_drm_bufmgr_get_tiling (radeon_drm_buffer.c:298) ==10496== by 0x4500BBA: radeon_r300_winsys_buffer_get_tiling (radeon_r300.c:90) ==10496== by 0x450ECEF: r300_texture_from_handle (r300_texture.c:1105) ==10496== by 0x45175D3: r300_resource_from_handle (r300_resource.c:49) ==10496== by 0x44FFF4B: dri2_allocate_textures (dri2.c:334) ==10496== by 0x44FF136: dri_st_framebuffer_validate (dri_drawable.c:74) ==10496== by 0x45C8437: st_framebuffer_validate (st_manager.c:162) ==10496== by 0x45C97D7: st_api_make_current (st_manager.c:675) ==10496== Address 0xbe835818 is on thread 1's stack ==10496== --10496-- Reading syms from /usr/lib/libXcursor.so.1.0.2 (0x48d90000) --10496-- object doesn't have a symbol table --10496-- Reading syms from /usr/lib/libXrender.so.1.3.0 (0x486f1000) --10496-- Reading debug info from /usr/lib/debug/usr/lib/libXrender.so.1.3.0.debug .. ==10496== Invalid write of size 8 ==10496== at 0x5005289: ??? ==10496== by 0x4667387: fetch_pipeline_generic (draw_pt_fetch_shade_pipeline.c:188) ==10496== by 0x4667577: fetch_pipeline_run (draw_pt_fetch_shade_pipeline.c:312) ==10496== by 0x46692E0: vcache_run_extras (draw_pt_vcache.c:80) ==10496== by 0x4665EAC: draw_arrays_instanced (draw_pt.c:127) ==10496== by 0x4666025: draw_arrays (draw_pt.c:310) ==10496== by 0x4649C20: st_feedback_draw_vbo (st_draw_feedback.c:257) ==10496== by 0x464430C: st_RasterPos (st_cb_rasterpos.c:254) ==10496== by 0x4596C37: rasterpos (rastpos.c:63) ==10496== by 0x4597168: _mesa_RasterPos2f (rastpos.c:76) ==10496== by 0x80513E5: get_gl_visual (visual-gl.c:65) ==10496== by 0x8051FD0: make_random_colormap (colors.c:649) ==10496== Address 0x4d819e0 is not stack'd, malloc'd or (recently) free'd ==10496== ==10496== Invalid write of size 8 ==10496== at 0x500528C: ??? ==10496== by 0x4667387: fetch_pipeline_generic (draw_pt_fetch_shade_pipeline.c:188) ==10496== by 0x4667577: fetch_pipeline_run (draw_pt_fetch_shade_pipeline.c:312) ==10496== by 0x46692E0: vcache_run_extras (draw_pt_vcache.c:80) ==10496== by 0x4665EAC: draw_arrays_instanced (draw_pt.c:127) ==10496== by 0x4666025: draw_arrays (draw_pt.c:310) ==10496== by 0x4649C20: st_feedback_draw_vbo (st_draw_feedback.c:257) ==10496== by 0x464430C: st_RasterPos (st_cb_rasterpos.c:254) ==10496== by 0x4596C37: rasterpos (rastpos.c:63) ==10496== by 0x4597168: _mesa_RasterPos2f (rastpos.c:76) ==10496== by 0x80513E5: get_gl_visual (visual-gl.c:65) ==10496== by 0x8051FD0: make_random_colormap (colors.c:649) ==10496== Address 0x4d819e8 is not stack'd, malloc'd or (recently) free'd ==10496== ==10496== Invalid write of size 8 ==10496== at 0x5005292: ??? ==10496== by 0x4667387: fetch_pipeline_generic (draw_pt_fetch_shade_pipeline.c:188) ==10496== by 0x4667577: fetch_pipeline_run (draw_pt_fetch_shade_pipeline.c:312) ==10496== by 0x46692E0: vcache_run_extras (draw_pt_vcache.c:80) ==10496== by 0x4665EAC: draw_arrays_instanced (draw_pt.c:127) ==10496== by 0x4666025: draw_arrays (draw_pt.c:310) ==10496== by 0x4649C20: st_feedback_draw_vbo (st_draw_feedback.c:257) ==10496== by 0x464430C: st_RasterPos (st_cb_rasterpos.c:254) ==10496== by 0x4596C37: rasterpos (rastpos.c:63) ==10496== by 0x4597168: _mesa_RasterPos2f (rastpos.c:76) ==10496== by 0x80513E5: get_gl_visual (visual-gl.c:65) ==10496== by 0x8051FD0: make_random_colormap (colors.c:649) ==10496== Address 0x4d81a14 is not stack'd, malloc'd or (recently) free'd ==10496== ==10496== Invalid write of size 8 ==10496== at 0x5005295: ??? ==10496== by 0x4667387: fetch_pipeline_generic (draw_pt_fetch_shade_pipeline.c:188) ==10496== by 0x4667577: fetch_pipeline_run (draw_pt_fetch_shade_pipeline.c:312) ==10496== by 0x46692E0: vcache_run_extras (draw_pt_vcache.c:80) ==10496== by 0x4665EAC: draw_arrays_instanced (draw_pt.c:127) ==10496== by 0x4666025: draw_arrays (draw_pt.c:310) ==10496== by 0x4649C20: st_feedback_draw_vbo (st_draw_feedback.c:257) ==10496== by 0x464430C: st_RasterPos (st_cb_rasterpos.c:254) ==10496== by 0x4596C37: rasterpos (rastpos.c:63) ==10496== by 0x4597168: _mesa_RasterPos2f (rastpos.c:76) ==10496== by 0x80513E5: get_gl_visual (visual-gl.c:65) ==10496== by 0x8051FD0: make_random_colormap (colors.c:649) ==10496== Address 0x4d81a1c is not stack'd, malloc'd or (recently) free'd ==10496== ==10496== Invalid write of size 8 ==10496== at 0x500529B: ??? ==10496== by 0x4667387: fetch_pipeline_generic (draw_pt_fetch_shade_pipeline.c:188) ==10496== by 0x4667577: fetch_pipeline_run (draw_pt_fetch_shade_pipeline.c:312) ==10496== by 0x46692E0: vcache_run_extras (draw_pt_vcache.c:80) ==10496== by 0x4665EAC: draw_arrays_instanced (draw_pt.c:127) ==10496== by 0x4666025: draw_arrays (draw_pt.c:310) ==10496== by 0x4649C20: st_feedback_draw_vbo (st_draw_feedback.c:257) ==10496== by 0x464430C: st_RasterPos (st_cb_rasterpos.c:254) ==10496== by 0x4596C37: rasterpos (rastpos.c:63) ==10496== by 0x4597168: _mesa_RasterPos2f (rastpos.c:76) ==10496== by 0x80513E5: get_gl_visual (visual-gl.c:65) ==10496== by 0x8051FD0: make_random_colormap (colors.c:649) ==10496== Address 0x4d81a48 is not stack'd, malloc'd or (recently) free'd ==10496== ==10496== Invalid write of size 8 ==10496== at 0x500529E: ??? ==10496== by 0x4667387: fetch_pipeline_generic (draw_pt_fetch_shade_pipeline.c:188) ==10496== by 0x4667577: fetch_pipeline_run (draw_pt_fetch_shade_pipeline.c:312) ==10496== by 0x46692E0: vcache_run_extras (draw_pt_vcache.c:80) ==10496== by 0x4665EAC: draw_arrays_instanced (draw_pt.c:127) ==10496== by 0x4666025: draw_arrays (draw_pt.c:310) ==10496== by 0x4649C20: st_feedback_draw_vbo (st_draw_feedback.c:257) ==10496== by 0x464430C: st_RasterPos (st_cb_rasterpos.c:254) ==10496== by 0x4596C37: rasterpos (rastpos.c:63) ==10496== by 0x4597168: _mesa_RasterPos2f (rastpos.c:76) ==10496== by 0x80513E5: get_gl_visual (visual-gl.c:65) ==10496== by 0x8051FD0: make_random_colormap (colors.c:649) ==10496== Address 0x4d81a50 is not stack'd, malloc'd or (recently) free'd ==10496== valgrind: m_mallocfree.c:225 (mk_plain_bszB): Assertion 'bszB != 0' failed. valgrind: This is probably caused by your program erroneously writing past the end of a heap block and corrupting heap metadata. If you fix any invalid writes reported by Memcheck, this assertion failure will probably go away. Please try that before reporting this as a bug. ==10496== at 0x380273F0: report_and_quit (m_libcassert.c:145) ==10496== by 0x3802762C: vgPlain_assert_fail (m_libcassert.c:217) ==10496== by 0x38033F13: vgPlain_arena_malloc (m_mallocfree.c:225) ==10496== by 0x38062967: vgPlain_cli_malloc (replacemalloc_core.c:86) ==10496== by 0x38002F88: vgMemCheck_new_block (mc_malloc_wrappers.c:199) ==10496== by 0x3800323F: vgMemCheck_calloc (mc_malloc_wrappers.c:276) ==10496== by 0x38065198: vgPlain_scheduler (scheduler.c:1371) ==10496== by 0x38091C04: run_a_thread_NORETURN (syswrap-linux.c:91) sched status: running_tid=1 Thread 1: status = VgTs_Runnable ==10496== at 0x4004F1B: calloc (vg_replace_malloc.c:418) ==10496== by 0x46B3D59: u_default_get_transfer (u_transfer.c:85) ==10496== by 0x46B3F2D: u_get_transfer_vtbl (u_resource.c:42) ==10496== by 0x463F57E: st_bufferobj_map_range (u_inlines.h:195) ==10496== by 0x463175F: vbo_exec_vtx_map (vbo_exec_draw.c:314) ==10496== by 0x462C5CD: vbo_exec_BeginVertices (vbo_exec_api.c:865) ==10496== by 0x45C24C1: neutral_CallList (vtxfmt_tmp.h:296) ==10496== by 0x805147F: get_gl_visual (visual-gl.c:65) ==10496== by 0x8051FD0: make_random_colormap (colors.c:649) ==10496== by 0x804B83F: main (screenhack.c:215) Note: see also the FAQ in the source distribution. It contains workarounds to several common problems. In particular, if Valgrind aborted or crashed after identifying problems in your program, there's a good chance that fixing those problems will prevent Valgrind aborting or crashing, especially if it happened in m_mallocfree.c. If that doesn't help, please report this bug to: www.valgrind.org In the bug report, send all the above text, the valgrind version, and what OS and version you are using. Thanks.