TotalView Fortran Serial Exercise 2 - Solution

A solution

The index chosen (100000) is outside the boundries of the array. In fact, it is so far outside, the print statement is trying to print from a piece of memory outside the program. This causes a segmentation fault when the attempt is made to access the memory.