@@ -8,11 +8,11 @@ title: Debugging Submitty Output
88
99Your code is not tested locally first, Submitty should be used as the
1010final submission server, not as a debugger. Before submitting anything
11- make sure that you are able to run your code locally without error .
11+ make sure that you are able to run your code locally without errors .
1212In addition the instructor may decide to use hidden tests which still
1313reveal the grade. Often these tests check corner cases and exactly what those
1414could vary by your program but common cases to consider are positive,
15- negative, zero, and floating point values and how your code performs give
15+ negative, zero, and floating point values and how your code performs given
1616unexpected but valid input.
1717
1818Often times there may be a missing punctuation or small typo in the output
@@ -45,21 +45,21 @@ perform operations slower than hashmaps or trees-like structures. If your code
4545gets a kill signal and you are using specific data structures be sure you are
4646using them correctly
4747
48- If you are using python, ineffeicant use of dictionaries, and sets can cause this error to occur.
48+ If you are using python, inefficient use of dictionaries, and sets can cause this error to occur.
4949
5050![ ] ( /images/killSignal.png )
5151
5252### Segmentation Fault
5353
5454For anyone who has ever programmed in a language with explicit memory management such as C/C++
55- you are probably familiar with the infamous and seemingly unhelpful error know as Segmentation Fault.
55+ you are probably familiar with the infamous and seemingly unhelpful error known as Segmentation Fault.
5656In short however a SegFault is the result of a memory access violation.
5757
5858This can occur for a number of reasons, first case we will look at is going out of bounds.
5959If while iterating over a list your index is out of the range of the list this can
6060result in a memory SegFault.
6161
62- Another possibly is when using pointers, if a pointer on the stack is initialzied to NULL
62+ Another possibility is when using pointers, if a pointer on the stack is initialzied to NULL
6363or never initialized in the first place but you try to dereference it this is the same thing
6464as a NUllPointerException in Java and is a very common issue when dealing with pointers
6565which are commonly found when dealing with Tree structures and and linked lists.
@@ -70,6 +70,6 @@ but since submitty is a teaching tool lets assume the problems given are
7070not so large that you run out of memory trying to solve it. A common example
7171of this is infinite recursion. Make sure the base case is eventually called.
7272
73- There are other reasosn for SegFaults but these are very common examples.
73+ There are other reasons for SegFaults but these are very common examples.
7474However what ever the reason DrMemory/Valgrind and gdb are excellent tools to
7575help with more advanced errors if print debugging isn't cutting it.
0 commit comments