[SDL] SDL_Init issue

chris.2.dobbs at bt.com chris.2.dobbs at bt.com
Wed May 2 16:42:29 PDT 2007


I had forgoton about that tool, tried it ages ago  - thanks for the reminder as this seems to have located my problem:
%valgrind --tool=memcheck --leak-check=full --show-reachable=yes

Exellent tool, it even manages to trap thread specific signals.
Thanks,
-Chris


-----Original Message-----
From: sdl-bounces at lists.libsdl.org on behalf of David Olofson
Sent: Wed 5/2/2007 10:18 PM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] SDL_Init issue
 
On Wednesday 02 May 2007 20:58, Ryan C. Gordon wrote:
> 
> > NJAMD/free: Address 0x0 not from malloc
> >         called from ./transcoder_client[0x8058baf]
> >         called from ./transcoder_client[0x804c4e6]
> 
> free(NULL) is not an error. If I'm understanding what this is
> reporting, that's probably not the problem.
> 
> Try valgrind?

Valgrind has been my primary debugging tool for a few years now. It 
can save countless debugging hours, and often points you right 
at "sleeping" bugs you wouldn't even find with a normal debugger.

Highly recommended!


//David Olofson - Programmer, Composer, Open Source Advocate

.-------  http://olofson.net - Games, SDL examples  -------.
|        http://zeespace.net - 2.5D rendering engine       |
|       http://audiality.org - Music/audio engine          |
|     http://eel.olofson.net - Real time scripting         |
'--  http://www.reologica.se - Rheology instrumentation  --'
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3489 bytes
Desc: not available
Url : http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070503/2bb8cc8b/attachment.bin 


More information about the SDL mailing list