I tryied PGI 616 and 713 compilers on a Scientific Linux 4.5 (Scientific Linux is a porting of RedHat Enterprise 4.5) running on a Dell Precision Xeon 5120 with 2GB RAM. I compile a fortran program without problem, but during the execution the program stops.
If I use -fast FLAG (the default) in the compilation, the program exit with
0: ALLOCATE: 2665758560 bytes requested; not enough memory
If I remove -fast and put -O0, the program exit with:
*** glibc detected *** double free or corruption (!prev): 0x08a6c788 ***
./Run2: line 4: 17165 Aborted /prog/cyana <<EOF
I use the PGI compilers (616) in another old machine (running Gentoo) and the same program works fine, so I think that the problem is the distribution or its old libraries (glibc 2.3.4-2.36). But SL should be more ‘standard’ than Gentoo.
What can I do to compile my programs to run properly in this distro?