I provide the following test case (Fortran 77): stef...@debsim2:~/prova$ cat test.f program test double precision a(10000000) a(1)=1 write(6,*) a(1) stop end stef...@debsim2:~/prova$ gfortran-4.4 -fopenmp -o test test.f stef...@debsim2:~/prova$ ./test Segmentation fault
I get a segmentation fault also if I copy the program in a Fortran 90 file. My gfortran-4.4 version is Package: gfortran-4.4 Status: install ok installed Priority: optional Section: devel Installed-Size: 11788 Maintainer: Debian GCC Maintainers <debian-...@lists.debian.org> Architecture: amd64 Source: gcc-4.4 Version: 4.4.2-1 Replaces: libgfortran3-dev Provides: fortran95-compiler Depends: gcc-4.4-base (= 4.4.2-1), gcc-4.4 (= 4.4.2-1), libgfortran3 (>= 4.4.2-1), libc6-dev (>= 2.5), libc6 (>= 2.3), libgmp3c2, libmpfr1ldbl Suggests: gfortran-4.4-multilib, gfortran-4.4-doc, libgfortran3-dbg Description: The GNU Fortran 95 compiler This is the GNU Fortran compiler, which compiles Fortran 95 on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. Homepage: http://gcc.gnu.org/ --------------------------------------------------------------- Next I have upgraded gfortran-4.4 dpkg -s gfortran-4.4 Package: gfortran-4.4 Status: install ok installed Priority: optional Section: devel Installed-Size: 11768 Maintainer: Debian GCC Maintainers <debian-...@lists.debian.org> Architecture: amd64 Source: gcc-4.4 Version: 4.4.2-8 Replaces: libgfortran3-dev Provides: fortran95-compiler Depends: gcc-4.4-base (= 4.4.2-8), gcc-4.4 (= 4.4.2-8), libgfortran3 (>= 4.4.2-8), libc6-dev (>= 2.5), libc6 (>= 2.3), libgmp3c2, libmpfr1ldbl Suggests: gfortran-4.4-multilib, gfortran-4.4-doc, libgfortran3-dbg Description: The GNU Fortran 95 compiler This is the GNU Fortran compiler, which compiles Fortran 95 on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. Homepage: http://gcc.gnu.org/ but I get the same thing stef...@debsim2:~/prova$ gfortran-4.4 -fopenmp -o test test.f90 stef...@debsim2:~/prova$ ./test Segmentation fault ------------------------ Finally I have installed the gcc-snapshot 20091228-2 and I have compiled the test.f but I get a segmentation fault. stef...@debsim2:~/prova$ /usr/lib/gcc-snapshot/bin/gfortran -fopenmp -o test test.f stef...@debsim2:~/prova$ ./test Segmentation fault Thanks and best regards Stefano Simonucci -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org