[TuxKart-devel] Valgrind: hunting possible leaks
Status: Alpha
Brought to you by:
sjbaker
From: Pascal G. <pa...@gu...> - 2004-09-03 21:55:10
|
With valgrind 2.2, i used the following: valgrind --tool=memcheck --leak-check=yes ./tuxkart 2> /tmp/leaks.log the first thing i notice is that the following apears very frequently (27 times just by making my way thru until i reach the track selection screen) along the way: ==1520== Syscall param ioctl(generic) contains uninitialised or unaddressable byte(s) ==1520== at 0x4334AA54: ioctl (in /lib/tls/libc-2.3.2.so) ==1520== by 0x4497DA91: (within /usr/lib/tls/libGL.so.1.0.5336) ==1520== Address 0x52BFE3B0 is on thread 1's stack Some other interesting parts: ----------------------------- ==1520== Use of uninitialised value of size 2 ==1520== at 0x4EED76EA: slSample::changeRate(int) (in /usr/lib/libplibsl.so.1.8.3) ==1520== by 0x4EED7366: slSample::autoMatch(slDSP const*) (in /usr/lib/libplibsl.so.1.8.3) ==1520== by 0x8070AD9: SoundSystem::SoundSystem() (sl.h:240) ==1520== by 0x8070F71: initTuxKart(int, int, int) (start_tuxkart.cxx:87) ==1520== Conditional jump or move depends on uninitialised value(s) ==1520== at 0x1B904A38: strcmp (mac_replace_strmem.c:251) ==1520== by 0x80702D1: SoundSystem::change_track(char const*) (sound.cxx:57) ==1520== by 0x8070B18: SoundSystem::SoundSystem() (sound.cxx:113) ==1520== by 0x8070F71: initTuxKart(int, int, int) (start_tuxkart.cxx:87) Another one that appears frequently: ------------------------------------ ==1520== Use of uninitialised value of size 4 ==1520== at 0x4EEF6E0F: sgBox::extend(float const*) (in /usr/lib/libplibsg.so.1.8.3) ==1520== by 0x4F021436: ssgVtxTable::recalcBSphere() (in /usr/lib/libplibssg.so.1.8.3) ==1520== by 0x4F02030C: ssgVtxTable::ssgVtxTable(unsigned, ssgVertexArray*, ssgNormalArray*, ssgTexCoordArray*, ssgColourArray*) (in /usr/lib/libplibssg.so.1.8.3) ==1520== by 0x80798F5: ParticleSystem::ParticleSystem(int, int, float, int, float, float) (ssg.h:159) I'll stop here for now... To say the least, i don't really understand how i should react to those informations... Almost all entries mention my /usr/lib/tls/libGL.so.1.0.5336, but if it gets called the wrong way, it's just plain normal. I'll try kcachegrind to see if i can get to understand more. -Pascal -- Projet MoviXMaker (http://sv.gnu.org/projects/movixmaker) Projet [e]MoviX[2] (http://movix.sf.net) Debian Project (http://www.debian.org) TuxKart (Wiki (GOTM): http://netpanzer.berlios.de/tuxkart/index.php) |