954,124 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

guess who! Run-time error!

Just what I need. In the midst of the two busiest weeks of the semester, and I get a friggin run-time error. I am running 64-bit Debian etch, and running the program from a terminal. It gets to some perfectly good code (I've said that before, and I was wrong), and kills, saying "segmentation fault".

What does that mean? I'll post the code if I have to, but if anyone knows what this means to me, that would be great.

FireSBurnsmuP
Posting Whiz in Training
237 posts since Sep 2006
Reputation Points: 46
Solved Threads: 2
 

There's probably something wrong with an array or something like that, please post your code.

Nick Evan
Not a Llama
Moderator
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
 

A seg fault typically refers to when you start touching memory you shouldn't be. As Niek mentioned, this often occurs when an invalid index into an array. It also happens when using uninitialized pointers, or pointers which have already had their data deleted or freed.

Infarction
Posting Virtuoso
1,580 posts since May 2006
Reputation Points: 683
Solved Threads: 53
 
andor
Posting Whiz in Training
276 posts since Jun 2005
Reputation Points: 251
Solved Threads: 29
 

Alright, so it basically means the same thing as DOS saying "vector sub-script out of range" then.
That makes it easier for me, I'll try to find out what's going on. I was only looking for what it meant, in the case that it was this simple. Thanks a lot guys!

FireSBurnsmuP
Posting Whiz in Training
237 posts since Sep 2006
Reputation Points: 46
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You