[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#518642: marked as done (/usr/bin/gfortran: "-malign-double" induces segmentation fault in presence of format string)



Your message dated Sat, 18 Sep 2010 18:33:52 -0400
with message-id <AANLkTi=eVUS9T=TsTaMxDdEbndoTVjaWT9tXr2_iNvXh@mail.gmail.com>
and subject line Re: see this in gcc-snapshot too
has caused the Debian Bug report #518642,
regarding /usr/bin/gfortran: "-malign-double" induces segmentation fault in presence of format string
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
518642: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518642
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gfortran
Version: 4:4.3.2-2
Severity: normal
File: /usr/bin/gfortran


The fortran program

write(6,*) 'string1'
write(6,'(A)') 'string2'
end

outputs string1 and issues a segmentation fault before printing string2
when compiled with gfortran and flag -malign-double. Without this flag
the program ends normally.

Best regards,
João


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=pt_PT (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages gfortran depends on:
ii  cpp                           4:4.3.2-2  The GNU C preprocessor (cpp)
ii  gcc                           4:4.3.2-2  The GNU C compiler
ii  gfortran-4.3                  4.3.2-1.1  The GNU Fortran 95 compiler

gfortran recommends no packages.

Versions of packages gfortran suggests:
ii  gfortran-doc                  5:2        documentation for the GNU Fortran 
pn  gfortran-multilib             <none>     (no description available)

-- no debconf information



--- End Message ---
--- Begin Message ---
On Sat, Sep 18, 2010 at 3:37 PM, kamaraju kusumanchi
<raju.mailinglists@gmail.com> wrote:
> reported it upstream as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45724
>

According to the upstream this is not a bug. The reason is as follows.

-malign-double is an ABI changing option, it means that source, compiled with
this option, violates the convention on how variables are passed and/or
accessed in the memory. So, when you use -malign-double, you should link your
program with libraries that are also compiled with -malign-double. This
includes ALL libraries, including system libraries.

Closing the bug report.

raju
-- 
Kamaraju S Kusumanchi
http://malayamaarutham.blogspot.com/


--- End Message ---

Reply to: