public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/66557] New: gfortran gives segfault error when trying to replace file?
@ 2015-06-16 14:42 mail.yogeshyadav at gmail dot com
  2015-06-16 16:03 ` [Bug libfortran/66557] gfortran gives segfault error when trying to replace file kargl at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mail.yogeshyadav at gmail dot com @ 2015-06-16 14:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66557
           Summary: gfortran gives segfault error when trying to replace
                    file?
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mail.yogeshyadav at gmail dot com
  Target Milestone: ---

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libfortran/66557] gfortran gives segfault error when trying to replace file
  2015-06-16 14:42 [Bug libfortran/66557] New: gfortran gives segfault error when trying to replace file? mail.yogeshyadav at gmail dot com
@ 2015-06-16 16:03 ` kargl at gcc dot gnu.org
  2015-06-17 10:40 ` dominiq at lps dot ens.fr
  2015-08-08 19:38 ` fxcoudert at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-06-16 16:03 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libfortran/66557] gfortran gives segfault error when trying to replace file
  2015-06-16 14:42 [Bug libfortran/66557] New: gfortran gives segfault error when trying to replace file? mail.yogeshyadav at gmail dot com
  2015-06-16 16:03 ` [Bug libfortran/66557] gfortran gives segfault error when trying to replace file kargl at gcc dot gnu.org
@ 2015-06-17 10:40 ` dominiq at lps dot ens.fr
  2015-08-08 19:38 ` fxcoudert at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-06-17 10:40 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-06-17
     Ever confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Looks like a MingW problem.  Please, contact MingW.

Works for me too on x86_64-apple-darwin14.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libfortran/66557] gfortran gives segfault error when trying to replace file
  2015-06-16 14:42 [Bug libfortran/66557] New: gfortran gives segfault error when trying to replace file? mail.yogeshyadav at gmail dot com
  2015-06-16 16:03 ` [Bug libfortran/66557] gfortran gives segfault error when trying to replace file kargl at gcc dot gnu.org
  2015-06-17 10:40 ` dominiq at lps dot ens.fr
@ 2015-08-08 19:38 ` fxcoudert at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2015-08-08 19:38 UTC (permalink / raw)
  To: gcc-bugs

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

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |fxcoudert at gcc dot gnu.org
         Resolution|---                         |INVALID


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-08 19:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-16 14:42 [Bug libfortran/66557] New: gfortran gives segfault error when trying to replace file? mail.yogeshyadav at gmail dot com
2015-06-16 16:03 ` [Bug libfortran/66557] gfortran gives segfault error when trying to replace file kargl at gcc dot gnu.org
2015-06-17 10:40 ` dominiq at lps dot ens.fr
2015-08-08 19:38 ` fxcoudert at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).