For debugging multi-threaded parallel processing code, whether in C/C++/Fortran, you need more than a few debug print statements. Intel Inspector allow tracing out memory leaks and improper memory accesses. There is a very large memory and CPU overhead for this work. The Intel Inspector GUI works with GNU and Intel compilers.
From the Intel Compiler setup program
install_GUI.sh, select Intel Inspector and install – sudo is NOT required.
. ~/intel/inspector/inspxe-vars.sh inspxe-gui
inspxe-gui is in