#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    4
    Rep Power
    0

    Segmentation Faults?


    Hello, i am having trouble with my function. After compiling, it always return segmentation fault. I am a first year student in com sci and the function i am dealing with is a recursive sorting algorithm, quite similar to bubble sort. By the way, i use the cygwin emulator. :(
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    4
    Rep Power
    0
    Basically, what causes a segmentation fault? Thx
  4. #3
  5. No Profile Picture
    Dinesh_P_V
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    India
    Posts
    259
    Rep Power
    0

    Segmentation Faults?


    In your case segmentation fault is due to infinite recursive call which will result in stack over flow.
    Check for the conditions u have in your program.
    Usually segmentation faults occurs due to reference to a memory which has been used for some other purposes

    -Murugesan
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    4
    Rep Power
    0
    thank you. I will look up on that

IMN logo majestic logo threadwatch logo seochat tools logo