This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50201] gfortran with -static causes seg fault at runtime for writing double prec array with precision increased to kind=16
- From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Aug 2011 21:09:42 +0000
- Subject: [Bug fortran/50201] gfortran with -static causes seg fault at runtime for writing double prec array with precision increased to kind=16
- Auto-submitted: auto-generated
- References: <bug-50201-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50201
--- Comment #3 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 2011-08-26 21:09:42 UTC ---
On Fri, Aug 26, 2011 at 09:00:04PM +0000, longb at cray dot com wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50201
>
> --- Comment #2 from Bill Long <longb at cray dot com> 2011-08-26 21:00:04 UTC ---
> OS is Linux SLES 11.
>
> From the output in the test, it looks like you tried only the scalar case,
> which I agree works. The array case (second test code) is the one the fails.
Whoops, Yes, I grabbed the wrong testcase. :(
==4791== Conditional jump or move depends on uninitialised value(s)
==4791== at 0x43F6DF: strlen (in /usr/home/sgk/tmp/z)
==4791== by 0x40B12D: write_integer (write.c:1285)
==4791== by 0x40EB13: _gfortrani_list_formatted_write (write.c:1571)
==4791== by 0x4002FB: MAIN__ (in /usr/home/sgk/tmp/z)
==4791== by 0x4003FE: main (in /usr/home/sgk/tmp/z)
==4791==
16
==4791== Jump to the invalid address stated on the next line
==4791== at 0x0: ???
==4791== by 0x44AB7F: ??? (in /usr/home/sgk/tmp/z)
==4791== by 0x3: ???
==4791== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4791==
==4791==
==4791== Process terminating with default action of signal 11 (SIGSEGV):
dumping core
==4791== Bad permissions for mapped region at address 0x0
==4791== at 0x0: ???
==4791== by 0x44AB7F: ??? (in /usr/home/sgk/tmp/z)
==4791== by 0x3: ???