Segmentation Fault when run in Linux REGAL

Discussion in 'Programming' started by siddhiinfomedia, Nov 13, 2006.

  1. #1
    Hello Friends...

    I've written a code for Simulating Paging algorithm using LRU...
    The code is in the attached file.

    Now on windows... it is executing perfectly, giving the output i desire...
    but on Linux REGAL gnu compiler, it is giving me the error...
    Error file is attached... as error2.jpg

    SEGMENTATION FAULT

    Can someone help me with this?
    How to solve this problem?
     

    Attached Files:

    siddhiinfomedia, Nov 13, 2006 IP
  2. vid

    vid Peon

    Messages:
    209
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use DDD debuger under Linux to see where is a problem..:)
     
    vid, Nov 14, 2006 IP
  3. weknowtheworld

    weknowtheworld Guest

    Messages:
    306
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can you specify the place from which I can download the editor
     
    weknowtheworld, Nov 14, 2006 IP
  4. vid

    vid Peon

    Messages:
    209
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you are speaking about DDD, it is not a editor, it is debuger, and it's should be under you Linux, just type ddd under your Linux shell. If it is not so just google it, this debuger open source, so you can easily find it..:)
     
    vid, Nov 14, 2006 IP
  5. smallbuzz

    smallbuzz Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    its your while loop, your index out of range for one of the arrays
     
    smallbuzz, Nov 15, 2006 IP