Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26758 Discussions

catastrophic error in fort 2019 with F90 max/minval function and -check all option

Yann_D_
Beginner
220 Views

Hello,

The compilation crashes with this example (not the real application, just to show)

      PROGRAM minval_example
      IMPLICIT NONE
!
      integer,  parameter  ::  rp = 8
!
      type phy
         real(rp), dimension(:,:), pointer      :: v,c,p,T,H,Mach,S
      end type phy
      type(phy), save                           :: phys
!
      real(rp), dimension(:,:,:), pointer      :: U
!
      real(rp), dimension(:),  allocatable  ::   bp, bm
!
      real(rp)  ::  a
      integer  ::  nx, i

      read (5,*) nx

      allocate (phys%p(nx,3), phys%v(nx,3), phys%c(nx,3), phys%T(nx,3), phys%H(nx,3), phys%Mach(nx,3), phys%S(nx,3) ) 
      allocate (bp(2:nx), bm(2:nx), U(3,nx,3)  )


      do i=2,nx
         a = max(maxval(U(1,i-1,:)*phys%c(i-1,:)),maxval(U(1,i,:)*phys%c(i,:)))
         bp(i) = maxval (phys%v(i  ,:) + a / U(1,i  ,:) )
         bm(i) = minval (phys%v(i-1,:) - a / U(1,i-1,:) )
      end do

      write (6,*) bp(3), bm(6), a
      deallocate(bp, bm, phys%p, phys%v, phys%c, phys%T, phys%H, phys%Mach, phys%S, U)

      STOP
      END PROGRAM minval_example

 

 

 

$ ifort --version

ifort (IFORT) 19.0.0.117 20180804

Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.

 

$ ifort -132  -O0 -g -traceback   -check all -warn all  minval_example.f

minval_example.f: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.

compilation aborted for minval_example.f (code 1)

 

The compilation is successful if one removes the '-check all' option, without any warning.

 

Regards,

   Guy.

0 Kudos
8 Replies
Steve_Lionel
Black Belt Retired Employee
220 Views

Please report this to Intel using the Online Service Center.

Juergen_R_R
Valued Contributor I
220 Views

I cannot reproduce this with the Update 1, i.e. ifort (IFORT) 19.0.1.144 20181018.

 

Yann_D_
Beginner
220 Views

Thanks for your help.

 

I have downloaded and upgraded with 2019 update 1.

I still reproduce the problem.

ifort --version

ifort (IFORT) 19.0.1.144 20181018

Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.

 

ifort -132  -O0 -g -traceback   -check all -warn all  minval_example.f

minval_example.f: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.

compilation aborted for minval_example.f (code 1)

 

 

I will follow advice of Mr. Lionel

 

Regards,

 

 

Juergen_R_R
Valued Contributor I
220 Views

Again, I cannot reproduce this ICE with any of the v17, v18 or v19 compilers.

Yann_D_
Beginner
220 Views

Hello,
We have several versions of Intel Fortran Compiler available through module. Only the 2019 versions show the problem.


$ module load intel/2018.0.128 
$ ifort --version
ifort (IFORT) 18.0.0 20170811
Copyright (C) 1985-2017 Intel Corporation.  All rights reserved.
$ ifort -132  -O0 -g -traceback   -check all -warn all  minval_example.f 

$ module purge
$ module load intel/2018.1.163 
$ ifort --version
ifort (IFORT) 18.0.1 20171018
Copyright (C) 1985-2017 Intel Corporation.  All rights reserved.
$ ifort -132  -O0 -g -traceback   -check all -warn all  minval_example.f 

$ module purge
$ module load intel/2018.3.222 
$ ifort --version
ifort (IFORT) 18.0.3 20180410
Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.
$ ifort -132  -O0 -g -traceback   -check all -warn all  minval_example.f 

$ module purge
$ module load intel/2018.5.274 
$ ifort --version
ifort (IFORT) 18.0.5 20180823
Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.
$ ifort -132  -O0 -g -traceback   -check all -warn all  minval_example.f 

$ module purge
$ module load intel/2019.0.117 
$ ifort -132  -O0 -g -traceback   -check all -warn all  minval_example.f X11 connection rejected because of wrong authentication.
$ ifort --version
ifort (IFORT) 19.0.0.117 20180804
Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.
$ ifort -132  -O0 -g -traceback   -check all -warn all  minval_example.f 
minval_example.f: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.
compilation aborted for minval_example.f (code 1)

$ module purge
$ module load intel/2019.1.144 
$ ifort --version
ifort (IFORT) 19.0.1.144 20181018
Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.
$ ifort -132  -O0 -g -traceback   -check all -warn all  minval_example.f 
minval_example.f: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.
compilation aborted for minval_example.f (code 1)
 

I put the original source file in attachment.

 

Regards,

 

Juergen_R_R
Valued Contributor I
220 Views

$ ifort2019 -V
Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.0.1.144 Build 20181018
Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.

reuter@t00pcx27704:~/Computing/fortran/ifort_pseudo_ICE$ ifort2019 -132  -O0 -g -traceback   -check all -warn all  minval_example.f

This compiles without problems. Seems like something is wrong with your installation. Which type of computer is this? 32bit maybe? Do you source the compilervars correctly?

 

Yann_D_
Beginner
220 Views

Applications run on Linux servers, CentOS 7.5, 64bits.

I test with the configuration file :

$ . /trinity/shared/apps/ccipl/machine-dependant/machine-dependant/soft/intel/2019.0.117/compilers_and_libraries_2019.1.144/linux/bin/compilervars_global.sh  intel64

 

$ ifort -V

Intel(R) Visual Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.0.1.144 Build 20181018

Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.

 

$ ifort -132  -O0 -g -traceback   -check all -warn all  minval_example.f

minval_example.f: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.

compilation aborted for minval_example.f (code 1)

 

Juergen_R_R
Valued Contributor I
220 Views

I just also tested on CentOS 7.5.1804. No ICE.

Reply