Strange behaviour when running PGI Fortran code on WinSrv

Hello,

we have compiled the following simple code with PGI Fortran 17.10:

      program prova
      implicit none
      real(8) a(4)
      real(8) x
      real(8) b
      real(8) c
      integer(4) j
!
      a=2.
      x=0.d0
      b=1.d-3
      c=3.
      DO J=1,4
        x=a(j)*b+c
      ENDDO
!
      WRITE(6,*) x
      STOP
      END

The code run correctly on Desktop PC running Windows from 7 to 10.
The same executable fails on WinSrv2012, giving the following error:

Problem signature:
Problem Event Name: APPCRASH
Application Name: prova.exe
Application Version: 0.0.0.0
Application Timestamp: 5bd07bce
Fault Module Name: prova.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 5bd07bce
Exception Code: c000001d
Exception Offset: 000000000000116b
OS Version: 6.3.9600.2.0.0.272.7
Locale ID: 1033
Additional Information 1: 17e0
Additional Information 2: 17e0329eab0c93a7e9658d6bb0d608f0
Additional Information 3: a283
Additional Information 4: a2831258489be3f056d5a8b3fdd99b1b


The same code run correctly if the variable b is initialized to 1. instead of 1.d-3.

Do you know how to fix this problem?

Thank you

Hi Oriano Bottauscio,

My best guess is that the new system doesn’t have the updated Visual Studio 2015 run time libraries installed. Can you try installing the package under “Redistributables and Build Tools” section of the following link and see if the issue continues?

Hope this helps,
Mat