A fresh install of codeblocks-17.12mingw_fortran-setup yields Segmentation fault In strcmp () (C:\Windows\syswow64\msvcrt.dll) at a fortran statement as open(unit = 21, file = "Settings.dat", status='unknown')
see details below:
Hello World, bj!
PATH=.;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBl
ocks\MinGW;C:\Users\iuri\Desktop\Projeto_micelle\nlopt;C:\msys64\mingw32\bin;C:\
msys64\mingw32;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist
\intel64\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\red
ist\ia32\compiler;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Win
dows\System32\WindowsPowerShell\v1.0;C:\Program Files\Java\jre7\bin
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#0 ffffffff
Starting debugger: C:\MinGW\bin\gdb.exe -nx -fullname -quiet -args C:/Users/iuri/Desktop/testeeeeeee/bin/Debug/testeeeeeee.exe
done
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.6.1
Child process PID: 1608
Program received signal SIGSEGV, Segmentation fault.
In strcmp () (C:\Windows\syswow64\msvcrt.dll)
#0 0x757c8b21 strcmp() (C:\Windows\syswow64\msvcrt.dll:??)
#1 0x6f6c2817 libgfortran-3!clog10l() (C:\Program Files (x86)\CodeBlocks\MinGW\bin\libgfortran-3.dll:??)
#2 0x6836a0 ?? () (??:??)
´C:\Program Files (x86)\CodeBlocks\MinGW´
! A fortran95 program for G95
! By WQY
program main
implicit none
integer re_i
write(*,*) "Hello World, bj!"
re_i= system("path")
open(unit = 21, file = "Settings.dat", status='unknown')
re_i = system("pause")
end
I am able to use codeblocks properly with an independent installation of mingw both via www.mingw.org/ and via https://www.msys2.org/ .
There are many problems with the peovided fortran compiler
http://forums.codeblocks.org/index.php/topic,22683.0.html
but officially codeblocks does not support compiler issues....
I think there is no such problem with the current C::B v20.03. I would say this ticket can be closed.