Menu

#320 TDM-GCC 5.1.0-tdm-1 : gfortran segfault at reading file

None
open
nobody
1
2016-11-08
2016-11-04
No
  1. OS: Windows 7 (64-bit) and Vista (32-bit)
    after updating TDM-GCC, gfortran programs do not work anymore

  2. minimal program source:
    ----------- a.f90 ------

integer x
open(1, file='y.txt')
read(1, *) x
close(1)
end
  1. compile with 'gfortran a.f90'

3. start the program: we get

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
 #0  ffffffff

and freeze.

  1. for 64-bit version (gfortran -m64 a.f90),
    we get the same but 'fffffffff's are longer and go about 15 times

  2. It is caused by both tdm-gcc-5.1.0-3.exe and tdm64-gcc-5.1.0-2.exe
    if I choose

  3. either 32- or 64-bit version
  4. any installation directory (default or another)
  5. default SourceForge mirror (another not tried)
  6. option 'TDM-GCC Recommended, All Packages',
    or 'TDM-GCC Recommended, C/C++ ' and check in addition 'fortran' + 'opemnp'

But everything is all right
if I run tdm-gcc-5.1.0-3.exe
and choose 'MinGW Stable, All Packages' (which is missing in 64-bit installer)
then all fortran programs run good.

I.e. version 5.1.0-tdm-1 does not work, 4.8.1-4 does.

Not very urgent, as older version helps, but rather unexpected

Discussion

  • Petr Kartsev

    Petr Kartsev - 2016-11-04

    (P.S. Sorry for font and numbered lines, little experience with editor!)

     
  • Anonymous

    Anonymous - 2016-11-08
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel