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

--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 
2011-08-26 21:29:41 UTC ---
On Fri, Aug 26, 2011 at 09:09:42PM +0000, sgk at troutmask dot
apl.washington.edu wrote:
> 
> ==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: ???

Some additional debugging.

(gdb) run
Starting program: /usr/home/sgk/tmp/z 
          16

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x000000000040c2e2 in write_float (dtp=0x7fffffffd2f0, f=0x200820588, 
    source=Unhandled dwarf expression opcode 0xf3
) at ../../../gcc4x/libgfortran/io/write_float.def:1062
#2  0x00000000004049b6 in formatted_transfer_scalar_write (dtp=0x7fffffffd2f0, 
    type=BT_REAL, p=0x7fffffffd4d0, kind=16, size=16, nelems=4)
    at ../../../gcc4x/libgfortran/io/transfer.c:1630
#3  formatted_transfer (dtp=0x7fffffffd2f0, type=BT_REAL, p=0x7fffffffd4d0, 
    kind=16, size=16, nelems=4)
    at ../../../gcc4x/libgfortran/io/transfer.c:1868
#4  0x0000000000402e80 in transfer_array (dtp=0x7fffffffd2f0, desc=Unhandled
dwarf expression opcode 0xf3
)
    at ../../../gcc4x/libgfortran/io/transfer.c:2036
#5  0x00000000004003ba in MAIN__ () at a.f90:4

Reply via email to