seg. fault when program runs

  • bugsdeepak
  • Novice
  • Novice
  • No Avatar
  • Joined: Nov 08, 2004
  • Posts: 26
  • Loc: Banglore-India
  • Status: Offline

Post December 26th, 2004, 11:53 pm

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.


cheers.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 26th, 2004, 11:53 pm

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post December 27th, 2004, 6:14 am

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.

Cheers.
"It's always a long day, 86,400 won't fit into a short."
  • Cii
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Oct 03, 2004
  • Posts: 49
  • Loc: Canada
  • Status: Offline

Post January 9th, 2005, 9:37 pm

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 104 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.