Jump to content
  • Advertisement
Sign in to follow this  
brunooo

SDL memory leaks?

This topic is 3499 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello. I am new to SDL, and I decided to make a memory check on my little game :) I saw that I got a lot of strange memory errors, than I created a simple application to check if it was SDL fault. When I use valgrind to check for memory errors I got 53 leaks detected! I am compiling the code on Code::Blocks with gcc, I am under Ubuntu. I installed SDL dev files using Synaptic Packet Manager. I used this command to check the application: "valgrind --tool=memcheck --leak-check=full --show-reachable=yes --log-file=output.txt ./Testing" Thank you! Code:
#include <SDL/SDL.h>

int main (int argc,char** argv)
{
    if (SDL_Init(SDL_INIT_VIDEO) < 0)
    {
        printf("Unable to init SDL: %s\n",SDL_GetError());
        while(1); //Added to check if this was failing! But it is not failing...
        return 0;
    }
    SDL_Quit();

    return 1;
}


The valgrind output (Sorry for the output lenght :P):
==4744== Memcheck, a memory error detector.
==4744== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==4744== Using LibVEX rev 1884, a library for dynamic binary translation.
==4744== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==4744== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation framework.
==4744== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==4744== For more details, rerun with: -v
==4744== 
==4744== My PID = 4744, parent PID = 4511.  Prog and args are:
==4744==    ./Testing
==4744== 
==4744== 
==4744== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 89 from 2)
==4744== malloc/free: in use at exit: 77,992 bytes in 969 blocks.
==4744== malloc/free: 14,244 allocs, 13,275 frees, 2,099,270 bytes allocated.
==4744== For counts of detected errors, rerun with: -v
==4744== searching for pointers to 969 not-freed blocks.
==4744== checked 434,576 bytes.
==4744== 
==4744== 1 bytes in 1 blocks are still reachable in loss record 1 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x492502A: _XlcDefaultMapModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49250AE: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40409E6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x8048620: main (main.cpp:5)
==4744== 
==4744== 
==4744== 4 bytes in 1 blocks are still reachable in loss record 2 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x493137C: _XimOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4915089: XOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4075652: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F2AA: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40409E6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x8048620: main (main.cpp:5)
==4744== 
==4744== 
==4744== 6 bytes in 1 blocks are still reachable in loss record 3 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491E101: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 8 bytes in 1 blocks are still reachable in loss record 4 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4923774: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4916F9B: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4917425: _XlcOpenConverter (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491E4E9: _XrmDefaultInitParseInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BA4: _XrmInitParseInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490B610: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490D63E: XrmGetFileDatabase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4902026: _XInitKeysymDB (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49022A4: XStringToKeysym (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4934F99: _XimParseStringFile (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4932A83: _XimLocalOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744== 
==4744== 
==4744== 8 bytes in 1 blocks are still reachable in loss record 5 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491E4C1: _XrmDefaultInitParseInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BA4: _XrmInitParseInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490B610: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490D63E: XrmGetFileDatabase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4902026: _XInitKeysymDB (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49022A4: XStringToKeysym (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4934F99: _XimParseStringFile (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4932A83: _XimLocalOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x493112C: _XimOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4915089: XOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4075652: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 12 bytes in 1 blocks are still reachable in loss record 6 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4924AA3: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40409E6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x8048620: main (main.cpp:5)
==4744== 
==4744== 
==4744== 12 bytes in 1 blocks are still reachable in loss record 7 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491DC9C: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40409E6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 12 bytes in 1 blocks are still reachable in loss record 8 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491AF95: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC39: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 12 bytes in 1 blocks are definitely lost in loss record 9 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x49EBCFD: ???
==4744==    by 0x49EB6ED: ???
==4744==    by 0x49EB804: ???
==4744==    by 0x49EBF9E: ???
==4744==    by 0x49E6D0D: ???
==4744==    by 0x49E711D: ???
==4744==    by 0x407586D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40801DA: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40409E6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 16 bytes in 2 blocks are definitely lost in loss record 10 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4938D72: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4937D11: _XimEncodeLocalICAttr (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4939058: _XimSetICValueData (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4931B7E: _XimLocalCreateIC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4914DF8: XCreateIC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x407EE46: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40409E6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x8048620: main (main.cpp:5)
==4744== 
==4744== 
==4744== 16 bytes in 1 blocks are still reachable in loss record 11 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x490C50E: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490D095: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490D66B: XrmGetFileDatabase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4902026: _XInitKeysymDB (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49022A4: XStringToKeysym (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4934F99: _XimParseStringFile (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4932A83: _XimLocalOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x493112C: _XimOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4915089: XOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4075652: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F2AA: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 16 bytes in 1 blocks are still reachable in loss record 12 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x490B5DE: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490D63E: XrmGetFileDatabase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4902026: _XInitKeysymDB (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49022A4: XStringToKeysym (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4934F99: _XimParseStringFile (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4932A83: _XimLocalOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x493112C: _XimOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4915089: XOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4075652: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F2AA: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 16 bytes in 4 blocks are still reachable in loss record 13 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491C395: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4CF: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 16 bytes in 4 blocks are indirectly lost in loss record 14 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491C395: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4CF: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x493D15A: _XlcDefaultLoader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F21F: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 20 bytes in 1 blocks are still reachable in loss record 15 of 53
==4744==    at 0x4025092: calloc (vg_replace_malloc.c:397)
==4744==    by 0x4421085: _dlerror_run (dlerror.c:142)
==4744==    by 0x4420B20: dlopen@@GLIBC_2.1 (dlopen.c:88)
==4744==    by 0x407203C: SDL_LoadObject (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4075FC9: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407E86B: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DCB0: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40409E6: SDL_Init (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x8048620: main (main.cpp:5)
==4744== 
==4744== 
==4744== 29 bytes in 3 blocks are still reachable in loss record 16 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491692F: _XlcAddCT (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4916A68: _XlcInitCTInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DE27: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F21F: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 132 bytes in 5 blocks are still reachable in loss record 17 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x400C88B: _dl_map_object_deps (dl-deps.c:471)
==4744==    by 0x4012276: dl_open_worker (dl-open.c:330)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x4011C1D: _dl_open (dl-open.c:596)
==4744==    by 0x4420BEB: dlopen_doit (dlopen.c:67)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x442101B: _dlerror_run (dlerror.c:164)
==4744==    by 0x4420B20: dlopen@@GLIBC_2.1 (dlopen.c:88)
==4744==    by 0x407203C: SDL_LoadObject (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4075FC9: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407D2E0: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 144 bytes in 2 blocks are still reachable in loss record 18 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x400C955: _dl_map_object_deps (dl-deps.c:507)
==4744==    by 0x4012276: dl_open_worker (dl-open.c:330)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x4011C1D: _dl_open (dl-open.c:596)
==4744==    by 0x4420BEB: dlopen_doit (dlopen.c:67)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x442101B: _dlerror_run (dlerror.c:164)
==4744==    by 0x4420B20: dlopen@@GLIBC_2.1 (dlopen.c:88)
==4744==    by 0x407203C: SDL_LoadObject (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4075FC9: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407D2E0: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 160 bytes in 7 blocks are still reachable in loss record 19 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x400A251: _dl_new_object (dl-object.c:146)
==4744==    by 0x4005CF2: _dl_map_object_from_fd (dl-load.c:973)
==4744==    by 0x400766C: _dl_map_object (dl-load.c:2239)
==4744==    by 0x4012216: dl_open_worker (dl-open.c:293)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x4011C1D: _dl_open (dl-open.c:596)
==4744==    by 0x4420BEB: dlopen_doit (dlopen.c:67)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x442101B: _dlerror_run (dlerror.c:164)
==4744==    by 0x4420B20: dlopen@@GLIBC_2.1 (dlopen.c:88)
==4744==    by 0x407203C: SDL_LoadObject (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 160 bytes in 7 blocks are still reachable in loss record 20 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4004ABE: local_strdup (dl-load.c:170)
==4744==    by 0x40078FB: _dl_map_object (dl-load.c:2147)
==4744==    by 0x4012216: dl_open_worker (dl-open.c:293)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x4011C1D: _dl_open (dl-open.c:596)
==4744==    by 0x4420BEB: dlopen_doit (dlopen.c:67)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x442101B: _dlerror_run (dlerror.c:164)
==4744==    by 0x4420B20: dlopen@@GLIBC_2.1 (dlopen.c:88)
==4744==    by 0x407203C: SDL_LoadObject (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4075FC9: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 192 bytes in 4 blocks are indirectly lost in loss record 21 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491AEC8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491BBD8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4CF: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x493D15A: _XlcDefaultLoader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F21F: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 224 (16 direct, 208 indirect) bytes in 2 blocks are definitely lost in loss record 22 of 53
==4744==    at 0x40270FC: realloc (vg_replace_malloc.c:429)
==4744==    by 0x491AF04: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491BBD8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4CF: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x493D15A: _XlcDefaultLoader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F21F: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 20 bytes in 1 blocks are still reachable in loss record 23 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x49190FE: _XlcCreateLocaleDataBase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DFA8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 24 bytes in 1 blocks are still reachable in loss record 24 of 53
==4744==    at 0x40270FC: realloc (vg_replace_malloc.c:429)
==4744==    by 0x491A48C: _XlcResolveLocaleName (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DF4C: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 28 bytes in 1 blocks are still reachable in loss record 25 of 53
==4744==    at 0x40270FC: realloc (vg_replace_malloc.c:429)
==4744==    by 0x491AF04: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491BBD8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4CF: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 40 bytes in 3 blocks are still reachable in loss record 26 of 53
==4744==    at 0x40270FC: realloc (vg_replace_malloc.c:429)
==4744==    by 0x491C180: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4CF: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 52 bytes in 3 blocks are still reachable in loss record 27 of 53
==4744==    at 0x40270FC: realloc (vg_replace_malloc.c:429)
==4744==    by 0x4917B80: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491866B: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918907: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918F2C: _XlcCreateLocaleDataBase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DFA8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744== 
==4744== 
==4744== 64 bytes in 1 blocks are still reachable in loss record 28 of 53
==4744==    at 0x40270FC: realloc (vg_replace_malloc.c:429)
==4744==    by 0x48FB9BE: _XrmInternalStringToQuark (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4902181: XStringToKeysym (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4934F99: _XimParseStringFile (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4932A83: _XimLocalOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x493112C: _XimOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4915089: XOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4075652: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F2AA: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 84 bytes in 1 blocks are still reachable in loss record 29 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491AFE3: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC39: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 96 bytes in 1 blocks are still reachable in loss record 30 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491AFC2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC39: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 128 bytes in 4 blocks are still reachable in loss record 31 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4013127: _dl_close_worker (dl-close.c:374)
==4744==    by 0x4013936: _dl_close (dl-close.c:730)
==4744==    by 0x4420C83: dlclose_doit (dlclose.c:37)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x442101B: _dlerror_run (dlerror.c:164)
==4744==    by 0x4420CB9: dlclose (dlclose.c:48)
==4744==    by 0x4071F30: SDL_UnloadObject (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4075F5E: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407D2AE: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406BE5F: SDL_VideoQuit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40407B4: SDL_QuitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 182 bytes in 3 blocks are still reachable in loss record 32 of 53
==4744==    at 0x40270FC: realloc (vg_replace_malloc.c:429)
==4744==    by 0x4917BB9: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491866B: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918907: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918F2C: _XlcCreateLocaleDataBase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DFA8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744== 
==4744== 
==4744== 304 bytes in 38 blocks are still reachable in loss record 33 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4917CD3: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491866B: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918907: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918F2C: _XlcCreateLocaleDataBase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DFA8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744== 
==4744== 
==4744== 320 bytes in 1 blocks are still reachable in loss record 34 of 53
==4744==    at 0x40270FC: realloc (vg_replace_malloc.c:429)
==4744==    by 0x490C464: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490D095: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490D6E6: XrmGetStringDatabase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x48EA279: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x48EA46E: XGetDefault (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4B2E313: _XcursorGetDisplayInfo (in /usr/lib/libXcursor.so.1.0.2)
==4744==    by 0x4B2E54C: XcursorSupportsARGB (in /usr/lib/libXcursor.so.1.0.2)
==4744==    by 0x4B30CA5: XcursorNoticeCreateBitmap (in /usr/lib/libXcursor.so.1.0.2)
==4744==    by 0x48E3E34: _XNoticeCreateBitmap (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x48E408C: XCreatePixmap (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4073F29: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 336 bytes in 7 blocks are still reachable in loss record 35 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491AEC8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491BBD8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4CF: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 362 bytes in 38 blocks are still reachable in loss record 36 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4917C81: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491866B: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918907: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918F2C: _XlcCreateLocaleDataBase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DFA8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744== 
==4744== 
==4744== 416 bytes in 52 blocks are still reachable in loss record 37 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4916C73: _XlcAddCharSet (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49169F4: _XlcAddCT (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4916A68: _XlcInitCTInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DE27: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 492 bytes in 41 blocks are still reachable in loss record 38 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4918558: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918907: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918F2C: _XlcCreateLocaleDataBase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DFA8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 512 bytes in 1 blocks are still reachable in loss record 39 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x490B941: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490D095: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490D66B: XrmGetFileDatabase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4902026: _XInitKeysymDB (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49022A4: XStringToKeysym (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4934F99: _XimParseStringFile (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4932A83: _XimLocalOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x493112C: _XimOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4915089: XOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4075652: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F2AA: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 606 bytes in 41 blocks are still reachable in loss record 40 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491876D: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918907: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918F2C: _XlcCreateLocaleDataBase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DFA8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 672 bytes in 1 blocks are still reachable in loss record 41 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x491908E: _XlcCreateLocaleDataBase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DFA8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F27D: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 677 bytes in 51 blocks are still reachable in loss record 42 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4916D86: _XlcCreateDefaultCharSet (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49169E1: _XlcAddCT (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4916A68: _XlcInitCTInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DE27: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 752 bytes in 7 blocks are still reachable in loss record 43 of 53
==4744==    at 0x4025092: calloc (vg_replace_malloc.c:397)
==4744==    by 0x400FA6D: _dl_check_map_versions (dl-version.c:299)
==4744==    by 0x401250E: dl_open_worker (dl-open.c:336)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x4011C1D: _dl_open (dl-open.c:596)
==4744==    by 0x4420BEB: dlopen_doit (dlopen.c:67)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x442101B: _dlerror_run (dlerror.c:164)
==4744==    by 0x4420B20: dlopen@@GLIBC_2.1 (dlopen.c:88)
==4744==    by 0x407203C: SDL_LoadObject (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4075FC9: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407D2E0: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 820 bytes in 41 blocks are still reachable in loss record 44 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4918505: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918907: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4918F2C: _XlcCreateLocaleDataBase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DFA8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 1,068 bytes in 52 blocks are still reachable in loss record 45 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4916D14: _XlcCreateDefaultCharSet (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49169E1: _XlcAddCT (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4916A68: _XlcInitCTInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DE27: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 1,565 bytes in 48 blocks are still reachable in loss record 46 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x49166EC: _XlcAddCT (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4916A68: _XlcInitCTInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DE27: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F21F: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 2,016 bytes in 63 blocks are still reachable in loss record 47 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4917333: _XlcSetConverter (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4916ADC: _XlcInitCTInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DE27: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F21F: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 2,048 bytes in 1 blocks are still reachable in loss record 48 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4918FD5: _XlcCreateLocaleDataBase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DFA8: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F21F: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 2,496 bytes in 52 blocks are still reachable in loss record 49 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x4916CBF: _XlcCreateDefaultCharSet (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49169E1: _XlcAddCT (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4916A68: _XlcInitCTInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DE27: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924BD2: _XlcCurrentLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4925080: XSetLocaleModifiers (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x40756AD: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 4,381 bytes in 7 blocks are still reachable in loss record 50 of 53
==4744==    at 0x4025092: calloc (vg_replace_malloc.c:397)
==4744==    by 0x4009FDA: _dl_new_object (dl-object.c:52)
==4744==    by 0x4005CF2: _dl_map_object_from_fd (dl-load.c:973)
==4744==    by 0x400766C: _dl_map_object (dl-load.c:2239)
==4744==    by 0x4012216: dl_open_worker (dl-open.c:293)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x4011C1D: _dl_open (dl-open.c:596)
==4744==    by 0x4420BEB: dlopen_doit (dlopen.c:67)
==4744==    by 0x400E035: _dl_catch_error (dl-error.c:178)
==4744==    by 0x442101B: _dlerror_run (dlerror.c:164)
==4744==    by 0x4420B20: dlopen@@GLIBC_2.1 (dlopen.c:88)
==4744==    by 0x407203C: SDL_LoadObject (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 7,335 bytes in 351 blocks are still reachable in loss record 51 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x490C576: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490D095: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x490D66B: XrmGetFileDatabase (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4902026: _XInitKeysymDB (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49022A4: XStringToKeysym (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4934F99: _XimParseStringFile (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4932A83: _XimLocalOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x493112C: _XimOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4915089: XOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4075652: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F2AA: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 16,384 bytes in 1 blocks are still reachable in loss record 52 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x48FB90E: _XrmInternalStringToQuark (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4902181: XStringToKeysym (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4934F99: _XimParseStringFile (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4932A83: _XimLocalOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x493112C: _XimOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4915089: XOpenIM (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4075652: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x407F2AA: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x40800E1: (within /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x406DBE2: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744==    by 0x4040987: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.2)
==4744== 
==4744== 
==4744== 32,704 bytes in 4 blocks are still reachable in loss record 53 of 53
==4744==    at 0x4026FDE: malloc (vg_replace_malloc.c:207)
==4744==    by 0x48FB4E9: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x48FB8EA: _XrmInternalStringToQuark (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x48FBB46: XrmStringToQuark (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4916BFC: _XlcGetCharSet (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49166BE: _XlcAddCT (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4916A68: _XlcInitCTInfo (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DE27: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491D4C2: (within /usr/lib/libX11.so.6.2.0)
==4744==    by 0x491DC57: _XlcCreateLC (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x49411B9: _XlcUtf8Loader (in /usr/lib/libX11.so.6.2.0)
==4744==    by 0x4924A91: _XOpenLC (in /usr/lib/libX11.so.6.2.0)
==4744== 
==4744== LEAK SUMMARY:
==4744==    definitely lost: 44 bytes in 5 blocks.
==4744==    indirectly lost: 208 bytes in 8 blocks.
==4744==      possibly lost: 0 bytes in 0 blocks.
==4744==    still reachable: 77,740 bytes in 956 blocks.
==4744==         suppressed: 0 bytes in 0 blocks.


Thank you!

Share this post


Link to post
Share on other sites
Advertisement
...Congratulations? (i.e. Not sure what you are asking here...)

EDIT: Sorry being thick headed tonight. I see what you are saying now.

Share this post


Link to post
Share on other sites
I've come to learn that graphics drivers (libGL.so, libX11.so) are either messy (losing memory) or make valgrind shoot false positives.

You should also note that your libs are likely optimized, making it easier for valgrind to lose track of blocks.

Either way, if it loses a couple of bytes on initialization, i.e. after inits the number of lost blocks stays more-or-less constant for several hours of uptime, you can ignore it, as it's probably not hurting anyone.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!