9 Feb 10:27
gfortran -fstack-check valgrind Segmentation fault
José Rui Faustino Sousa <jrfsousa <at> teor.fis.uc.pt>
2012-02-09 09:27:55 GMT
2012-02-09 09:27:55 GMT
Hi all! I am not sure if this should go to valgrind or to gfortran, so it goes both ways...(Continue reading)I may be doing something wrong and Google is not very helpful, but it does look buggy to me: $ cat ./tst.f90 program empty implicit none stop end program empty $ gfortran -g -fstack-check -o ./tst ./tst.f90 $ valgrind --tool=memcheck ./tst ==****== Memcheck, a memory error detector [...] ==****== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 4) Segmentation fault $ gfortran -g -o ./tst ./tst.f90 $ valgrind --tool=memcheck ./tst ==****== Memcheck, a memory error detector [...] ==****== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4) $ $ gfortran --version GNU Fortran (Ubuntu 4.4.3-4ubuntu5) 4.4.3 Copyright (C) 2010 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
I may be doing something wrong and Google is not very helpful, but it
does look buggy to me:
$ cat ./tst.f90
program empty
implicit none
stop
end program empty
$ gfortran -g -fstack-check -o ./tst ./tst.f90
$ valgrind --tool=memcheck ./tst
==****== Memcheck, a memory error detector
[...]
==****== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 4)
Segmentation fault
$ gfortran -g -o ./tst ./tst.f90
$ valgrind --tool=memcheck ./tst
==****== Memcheck, a memory error detector
[...]
==****== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4)
$
$ gfortran --version
GNU Fortran (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2010 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
RSS Feed