943,512 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1259
  • C RSS
Dec 7th, 2006
0

guess who! Run-time error!

Expand Post »
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.
Similar Threads
Reputation Points: 46
Solved Threads: 2
Posting Whiz in Training
FireSBurnsmuP is offline Offline
237 posts
since Sep 2006
Dec 7th, 2006
0

Re: guess who! Run-time error!

There's probably something wrong with an array or something like that, please post your code.
Last edited by Nick Evan; Apr 27th, 2011 at 7:00 am.
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Nick Evan is offline Offline
4,132 posts
since Oct 2006
Dec 7th, 2006
0

Re: guess who! Run-time error!

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.
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Dec 7th, 2006
0

Re: guess who! Run-time error!

Reputation Points: 251
Solved Threads: 29
Posting Whiz in Training
andor is offline Offline
274 posts
since Jun 2005
Dec 11th, 2006
0

Re: guess who! Run-time error!

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!
Last edited by FireSBurnsmuP; Dec 11th, 2006 at 6:17 pm.
Reputation Points: 46
Solved Threads: 2
Posting Whiz in Training
FireSBurnsmuP is offline Offline
237 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Segmentation Fault error
Next Thread in C Forum Timeline: Random Numbers to create sentences





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC