[SDL] Need help tracking down a SegFault
David Olofson
david at olofson.net
Sun Feb 24 09:20:58 PST 2008
On Sunday 24 February 2008, Michael Sullivan wrote:
> I need help finding the source of a SegFault. I believe that I have
> the search narrowed down to a single line of code. Here's the build
> and run output:
[...]
Compile the code with the -g option, and make sure your build scripts
aren't stripping the debug info. That should get some more sensible
info out of gdb and Valgrind.
Also, compile with -O0 or possibly -O1. Modern compilers mess around
quite a bit with the code at higher optimization levels, so the code
you're trying to debug may not even exist in the form you'd expect.
//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 --'
More information about the SDL
mailing list