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: