TotalView Fortran Serial Exercise 2 - Details

Details

cut and paste the code into the file seg.f

ifort -g -o seg seg.f

./seg

A segmentation fault results when a program tries to access a memory segment that has not been allocated to the program.