Jump to content
  • Advertisement
Sign in to follow this  
Acid rain

Debugging problem..... (Please read!)

This topic is 4165 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

Howdy, I am using the Code::Blocks IDE and debugger. I can build and run my project fine but whenever I try to debug, a window pops up and starts to display a long list of strange number sequences. After the window goes away the debugger returns this: Program received signal (SIGSEGV) Segmentation fault Previous frame inner to this frame (corrupt stack?) error This also happened when I used to use Dev-C++. Any help? Thanks [Edited by - Acid rain on April 24, 2007 8:48:27 PM]

Share this post


Link to post
Share on other sites
Advertisement
The segmentation fault is likely caused by writing outside of your allocated memory area.

The stack corruption is possibly caused by writing all over the stack.

I'd look at access to arrays stored on the stack and make sure there's not a buffer overflow going on there.

Share this post


Link to post
Share on other sites
If you declare an array like this

int array[8];

and then access it like this

array[9]=1;

you've written outside the bounds of the array and could cause problems.

If the code is really simple you could just post it and have people take a look

just use [ source ] [ /source ] tags (w/o the spaces) so you get nice formatting

Share this post


Link to post
Share on other sites
I don't know if I should post the code or not. It is a very simple program, but I am using a template/wrapper that I wrote myself, and the code for that is kinda long, like 500+ lines (long to post). If I decide to post it, it will be soon......

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!