[Bug libfortran/66557] gfortran gives segfault error when trying to replace file

kargl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 16 16:03:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66557

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal

--- Comment #1 from kargl at gcc dot gnu.org ---
(In reply to Yogesh Yadav from comment #0)
> program test
> implicit none
> open(100, file="a.dat", status="replace")
> end program test
> 
> When I try to run this program, it runs fine the first time when the file
> has not been created. But an attempt to run the program again (when the file
> a.dat exists and should be replaced) gives segfault error. Here is what I
> found using gdb.
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ff95deb1150 in strcmp () from C:\Windows\system32\msvcrt.dll
> 
> I am using GNU Fortran (x86_64-win32-seh-rev0, Built by MinGW-W64 project)
> 5.1.0 with target as Target: x86_64-w64-mingw32. I didn't use any extra
> compiler flags except -g.
> Also since gdb mentions Windows system files, here is which OS I use -
> Windows 8.1

Looks like a MingW problem.  Please, contact MingW.



More information about the Gcc-bugs mailing list