Crash while using GDB

Started by
2 comments, last by Monder 21 years, 3 months ago
Ok my game crashes when you quit. I wanted to find out why so I fired up GDB and ran the game so I could find out what point it is crashing at. However whenever I debug my game with GDB it crashes in a different place while is just crashes when you quit the game when GDB is not loaded up. I use exactly the same EXE in both cases. So anyone know why having GDB loaded may cause a crash?
Advertisement
There are several things that can cause the error to happen in a different place, but in this case that''s academic. Fix the error that happens when you run GDB; chances are, it''ll be a fubared pointer that just happens to mess with different memory when run under GDB and will go away in release once fixed in debug.

Don''t listen to me. I''ve had too much coffee.
Yeah, usually when the program crashes randomly, and GDB can''t show you the line it crashed, it means that you messed with the stack...

Height Map Editor | Eternal lands
Well it''s working now. By fixing what caused the crash when you quit the game it ran under GDB correctely. Not quite sure why but anyway thanks for the help

This topic is closed to new replies.

Advertisement