|
From: Erik S. L. <Eri...@id...> - 2004-02-13 14:07:56
|
Hi, I'm having some trouble using valgrind. Likely I'm doing something wrong, but I couldn't find any info on this problem on the valgrind homepage. My program uses SDL, SDL_image, opengl and glu (mesa). I know it leaks memory, so it would be great if somebody could help me figure out what I'm doing wrong here. The output from valgrind is pasted below. [eriksul@myhost leved]$ valgrind ./leved ==8422== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==8422== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==8422== Using valgrind-2.0.0, a program supervision framework for x86-linux. ==8422== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==8422== Estimated CPU clock rate is 1106 MHz ==8422== For more details, rerun with: -v ==8422== ==8422== valgrind's libpthread.so: KLUDGED call to: sem_destroy ==8422== Use of uninitialised value of size 4 ==8422== at 0x403E546C: sigfpe_handler (in /usr/lib/libGL.so.1.4.050100) ==8422== by 0x40187CDF: (within /usr/lib/valgrind/valgrind.so) ==8422== by 0x403E4E17: _mesa_init_all_x86_transform_asm (in /usr/lib/libGL.so.1.4.050100) ==8422== by 0x40356053: _math_init_transformation (in /usr/lib/libGL.so.1.4.050100) ==8422== ==8422== Invalid read of size 2 ==8422== at 0x403E546C: sigfpe_handler (in /usr/lib/libGL.so.1.4.050100) ==8422== by 0x40187CDF: (within /usr/lib/valgrind/valgrind.so) ==8422== by 0x403E4E17: _mesa_init_all_x86_transform_asm (in /usr/lib/libGL.so.1.4.050100) ==8422== by 0x40356053: _math_init_transformation (in /usr/lib/libGL.so.1.4.050100) ==8422== Address 0x6E is not stack'd, malloc'd or free'd Segmentation fault |