Skip to main content
gamedev.net
🔒 Locked

Crash while using GDB

Started by Monder 2 replies 250+ views
Original Post
Monder
Monder
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?
Sneftel
Sneftel
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.
Monder
Monder
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.