seg. fault when program runs

  • bugsdeepak
  • Novice
  • Novice
  • bugsdeepak
  • Posts: 26
  • Loc: Banglore-India

Post 3+ Months Ago

hello there,

i read the other topic about seg. fault. when i run a 'c' program using sring functions in my fedora os i get segmentaion fault.this query may be similar to the other one.but i need some specific answers.

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2696
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

I am not sure I fully understand you.

A segfault is a segmentation fault; a problem (most likely in the code) which tries to access memory (or any other used resource) that is not assigned to it. The OS shuts down the program so as to not affect other running procs.

When you say "run a 'c' program..." did you mean you compiled it, and then attempted to execute it? Which program is it? You will have to be a bit more specific with the details.

  • Cii
  • Beginner
  • Beginner
  • Cii
  • Posts: 49
  • Loc: Canada

Post 3+ Months Ago

strings in a c program? are you using gets by any chance?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 26 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.