URL: <http://gna.org/bugs/?10179>
Summary: Warzone svn leaking like a sieve Project: Warzone Resurrection Project Submitted by: shevek Submitted on: Sunday 21/10/07 at 15:15 Category: Engine: Graphics Severity: 5 - Blocker Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Release: svn/trunk Operating System: GNU/Linux Planned Release: None _______________________________________________________ Details: While playing, warzone leaks memory at about 4mb/sec. Naturally, this limits the maximum time for which the game can be played. So, I ran valgrind warone, loaded the title screen, and quit, and I got the following: Can I strongly, strongly request that all of these be fixed at the highest priority. ==22359== ERROR SUMMARY: 717 errors from 8 contexts (suppressed: 20 from 2) ==22359== malloc/free: in use at exit: 20,009,251 bytes in 19,255 blocks. ==22359== malloc/free: 151,885 allocs, 132,628 frees, 72,901,203 bytes allocated . ==22359== For counts of detected errors, rerun with: -v ==22359== searching for pointers to 19,255 not-freed blocks. ==22359== checked 47,580,932 bytes. ==22359== ==22359== Thread 1: ==22359== ==22359== 6 bytes in 1 blocks are definitely lost in loss record 15 of 380 ==22359== at 0x4021E9A: calloc (vg_replace_malloc.c:279) ==22359== by 0x4228BDD: XF86DRIGetClientDriverName (in /usr/lib/opengl/ati/li b/libGL.so.1.2) ==22359== by 0x5D841EE: s6769 (in /usr/lib/dri/fglrx_dri.so) ==22359== by 0x5D84639: __driCreateScreen (in /usr/lib/dri/fglrx_dri.so) ==22359== by 0x4212889: AllocAndFetchScreenConfigs (in /usr/lib/opengl/ati/li b/libGL.so.1.2) ==22359== by 0x421133C: __glXInitialize (in /usr/lib/opengl/ati/lib/libGL.so. 1.2) ==22359== by 0x420CCA9: glXGetConfig (in /usr/lib/opengl/ati/lib/libGL.so.1.2 ) ==22359== by 0x420D1BA: glXChooseVisual (in /usr/lib/opengl/ati/lib/libGL.so. 1.2) ==22359== by 0x4081580: X11_GL_GetVisual (SDL_x11gl.c:197) ==22359== by 0x4086743: X11_SetVideoMode (SDL_x11video.c:783) ==22359== by 0x4078B55: SDL_SetVideoMode (SDL_video.c:670) ==22359== by 0x819AC16: screenInitialise (screen.c:151) ==22359== ==22359== ==22359== 28 bytes in 1 blocks are definitely lost in loss record 74 of 380 ==22359== at 0x4020724: malloc (vg_replace_malloc.c:149) ==22359== by 0x5D67B80: s17198 (in /usr/lib/dri/fglrx_dri.so) ==22359== by 0x5D6A477: s11721 (in /usr/lib/dri/fglrx_dri.so) ==22359== by 0x5D6A428: s2604 (in /usr/lib/dri/fglrx_dri.so) ==22359== by 0x5D6A174: s11011 (in /usr/lib/dri/fglrx_dri.so) ==22359== by 0x5D88A8B: s2760 (in /usr/lib/dri/fglrx_dri.so) ==22359== by 0x5D86BD9: s2741 (in /usr/lib/dri/fglrx_dri.so) ==22359== by 0x4211BBF: glXMakeCurrent (in /usr/lib/opengl/ati/lib/libGL.so.1 .2) ==22359== by 0x4080C51: X11_GL_MakeCurrent (SDL_x11gl.c:321) ==22359== by 0x4080D3B: X11_GL_CreateContext (SDL_x11gl.c:267) ==22359== by 0x40865A2: X11_SetVideoMode (SDL_x11video.c:917) ==22359== by 0x4078B55: SDL_SetVideoMode (SDL_video.c:670) ==22359== ==22359== ==22359== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 120 of 380 ==22359== at 0x4020724: malloc (vg_replace_malloc.c:149) ==22359== by 0x43A40DB: nss_parse_service_list (nsswitch.c:520) ==22359== by 0x43A470E: __nss_database_lookup (nsswitch.c:135) ==22359== by 0x80371D9: ??? ==22359== by 0x8037AF8: ??? ==22359== by 0x43605D1: getgrnam_r@@GLIBC_2.1.2 (getXXbyYY_r.c:207) ==22359== by 0x435FD3F: getgrnam (getXXbyYY.c:135) ==22359== by 0x7FF8222: snd_pcm_direct_parse_open_conf (in /usr/lib/libasound .so.2.0.0) ==22359== by 0x7FF1389: _snd_pcm_dmix_open (in /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FB932C: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FB99E4: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FB9C46: snd_pcm_open_slave (in /usr/lib/libasound.so.2.0.0) ==22359== ==22359== ==22359== 160 bytes in 8 blocks are possibly lost in loss record 182 of 380 ==22359== at 0x4020724: malloc (vg_replace_malloc.c:149) ==22359== by 0x7F9F9A9: snd_dlobj_cache_add (in /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FB9356: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FB99E4: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FB9C46: snd_pcm_open_slave (in /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FFBC64: _snd_pcm_softvol_open (in /usr/lib/libasound.so.2.0.0 ) ==22359== by 0x7FB932C: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FB9C75: snd_pcm_open_slave (in /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FDCC17: _snd_pcm_plug_open (in /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FB932C: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FB9C75: snd_pcm_open_slave (in /usr/lib/libasound.so.2.0.0) ==22359== by 0x7FF854C: _snd_pcm_asym_open (in /usr/lib/libasound.so.2.0.0) ==22359== ==22359== ==22359== 272 bytes in 2 blocks are possibly lost in loss record 207 of 380 ==22359== at 0x4021E9A: calloc (vg_replace_malloc.c:279) ==22359== by 0x40101A8: allocate_dtv (dl-tls.c:304) ==22359== by 0x40104CB: _dl_allocate_tls (dl-tls.c:467) ==22359== by 0x40AFECD: pthread_create@@GLIBC_2.1 (allocatestack.c:518) ==22359== by 0x4152449: _alCreateThread (al_threadlib.c:41) ==22359== ==22359== ==22359== 5,457 bytes in 3 blocks are definitely lost in loss record 305 of 380 ==22359== at 0x4021F9E: realloc (vg_replace_malloc.c:306) ==22359== by 0x4186383: __glcRealloc (misc.c:45) ==22359== by 0x4184043: __glcReallocFunc (global.c:205) ==22359== by 0x464917F: ft_mem_qrealloc (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x46491EE: ft_mem_realloc (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x4689144: (within /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x46893FB: (within /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x4691DBF: (within /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x464FA30: FT_Load_Glyph (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x4188F29: __glcFaceDescLoadFreeTypeGlyph (ofacedesc.c:342) ==22359== by 0x4189A89: __glcRenderChar (render.c:299) ==22359== by 0x418655C: __glcProcessChar (misc.c:194) ==22359== ==22359== ==22359== 29,700 bytes in 825 blocks are possibly lost in loss record 353 of 380 ==22359== at 0x4021E9A: calloc (vg_replace_malloc.c:279) ==22359== by 0x7F95676: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7F95745: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7F95AAA: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7F96366: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7F95FDB: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7F960FF: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7F960FF: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7F960FF: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7F96F3A: (within /usr/lib/libasound.so.2.0.0) ==22359== by 0x7F9B40F: snd_config_update_r (in /usr/lib/libasound.so.2.0.0) ==22359== by 0x7F9B875: snd_config_update (in /usr/lib/libasound.so.2.0.0) ==22359== ==22359== ==22359== 133,816 bytes in 88 blocks are possibly lost in loss record 367 of 380 ==22359== at 0x4020724: malloc (vg_replace_malloc.c:149) ==22359== by 0x418631C: __glcMalloc (misc.c:35) ==22359== by 0x4183FDC: __glcAllocFunc (global.c:193) ==22359== by 0x4648F6E: ft_mem_qalloc (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x4648FE2: ft_mem_alloc (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x46490CF: ft_mem_qrealloc (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x46491EE: ft_mem_realloc (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x4689144: (within /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x46893FB: (within /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x4691DBF: (within /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x464FA30: FT_Load_Glyph (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x4188F29: __glcFaceDescLoadFreeTypeGlyph (ofacedesc.c:342) ==22359== ==22359== ==22359== 950,474 bytes in 638 blocks are definitely lost in loss record 376 of 380 ==22359== at 0x4020724: malloc (vg_replace_malloc.c:149) ==22359== by 0x418631C: __glcMalloc (misc.c:35) ==22359== by 0x4183FDC: __glcAllocFunc (global.c:193) ==22359== by 0x4648F6E: ft_mem_qalloc (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x4648FE2: ft_mem_alloc (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x46490CF: ft_mem_qrealloc (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x46491EE: ft_mem_realloc (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x4689144: (within /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x46893FB: (within /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x4691DBF: (within /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x464FA30: FT_Load_Glyph (in /usr/lib/libfreetype.so.6.3.8) ==22359== by 0x4188F29: __glcFaceDescLoadFreeTypeGlyph (ofacedesc.c:342) ==22359== ==22359== LEAK SUMMARY: ==22359== definitely lost: 956,001 bytes in 644 blocks. ==22359== indirectly lost: 120 bytes in 10 blocks. ==22359== possibly lost: 163,948 bytes in 923 blocks. ==22359== still reachable: 18,889,182 bytes in 17,678 blocks. ==22359== suppressed: 0 bytes in 0 blocks. ==22359== Reachable blocks (those to which a pointer was found) are not shown. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?10179> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev