public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44026]  New: Segfault on internal read  with -malign-double
@ 2010-05-07 14:29 Igor dot Katchaev at cern dot ch
  2010-05-07 14:36 ` [Bug fortran/44026] " kargl at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Igor dot Katchaev at cern dot ch @ 2010-05-07 14:29 UTC (permalink / raw)
  To: gcc-bugs

Results and status of internal read are wrong if -malign-double
option is specified. Seen on (32 bit)
SLC4 gfortran 4.3.3 (i686-pc-linux-gnu),
Ubuntu9 gfortran 4.4.1 (Ubuntu 4.4.1-4ubuntu9),
rhel6 beta (4.4.3-1.el6.i386).

No problem on g77 and gfortran (4.1.2-44.EL4_8.1.i386) on SLC4,
gfortran (4.1.2-48.el5.i386) on slc5.

Under Ubuntu9 gfortran 4.4.1:

% gfortran -malign-double ttest.f && ./a.out
Segmentation fault

Under SLC4 gfortran 4.3.3:

% gfortran -malign-double ttest.f && ./a.out
 Bad input 1 iostat          -1
 ival =      4685168

------ ttest.f ------
      program ttest
      implicit none
      integer ival, ierr
      character*1 str

      str = "1"
      read(str,*,iostat=ierr) ival
      if (ierr.ne.0) then
        write(0,*) 'Bad input ',str,' iostat',ierr
      endif
      write(0,*) 'ival = ', ival
      end
------ EOF ------

Regards, Igor


-- 
           Summary: Segfault on internal read  with -malign-double
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Igor dot Katchaev at cern dot ch
 GCC build triplet: gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)
  GCC host triplet: Linux pcbecn 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12
                    05:23:0
GCC target triplet: i486-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44026


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

* [Bug fortran/44026] Segfault on internal read  with -malign-double
  2010-05-07 14:29 [Bug fortran/44026] New: Segfault on internal read with -malign-double Igor dot Katchaev at cern dot ch
@ 2010-05-07 14:36 ` kargl at gcc dot gnu dot org
  2010-05-07 14:47 ` Igor dot Katchaev at cern dot ch
  2010-05-07 15:43 ` burnus at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu dot org @ 2010-05-07 14:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from kargl at gcc dot gnu dot org  2010-05-07 14:35 -------
DO NOT USE -malign-double.

You need to recompile gfortran's runtime library if this
option is to be used.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44026


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

* [Bug fortran/44026] Segfault on internal read  with -malign-double
  2010-05-07 14:29 [Bug fortran/44026] New: Segfault on internal read with -malign-double Igor dot Katchaev at cern dot ch
  2010-05-07 14:36 ` [Bug fortran/44026] " kargl at gcc dot gnu dot org
@ 2010-05-07 14:47 ` Igor dot Katchaev at cern dot ch
  2010-05-07 15:43 ` burnus at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: Igor dot Katchaev at cern dot ch @ 2010-05-07 14:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from Igor dot Katchaev at cern dot ch  2010-05-07 14:47 -------
Subject: Re:  Segfault on internal read  with -malign-double

Ok, thanks.

Please remove duplicate #44027, sorry.

Igor

On Fri, 7 May 2010, kargl at gcc dot gnu dot org wrote:

------- Comment #1 from kargl at gcc dot gnu dot org  2010-05-07 14:35 -------
DO NOT USE -malign-double.

You need to recompile gfortran's runtime library if this
option is to be used.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44026


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

* [Bug fortran/44026] Segfault on internal read  with -malign-double
  2010-05-07 14:29 [Bug fortran/44026] New: Segfault on internal read with -malign-double Igor dot Katchaev at cern dot ch
  2010-05-07 14:36 ` [Bug fortran/44026] " kargl at gcc dot gnu dot org
  2010-05-07 14:47 ` Igor dot Katchaev at cern dot ch
@ 2010-05-07 15:43 ` burnus at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-05-07 15:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2010-05-07 15:42 -------
*** Bug 44027 has been marked as a duplicate of this bug. ***


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44026


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

end of thread, other threads:[~2010-05-07 15:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-07 14:29 [Bug fortran/44026] New: Segfault on internal read with -malign-double Igor dot Katchaev at cern dot ch
2010-05-07 14:36 ` [Bug fortran/44026] " kargl at gcc dot gnu dot org
2010-05-07 14:47 ` Igor dot Katchaev at cern dot ch
2010-05-07 15:43 ` burnus at gcc dot gnu dot 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).