This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18891] write with no open causes core dump
- From: "sje at cup dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2004 18:47:25 -0000
- Subject: [Bug fortran/18891] write with no open causes core dump
- References: <20041208175546.18891.sje@cup.hp.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sje at cup dot hp dot com 2004-12-08 18:47 -------
I did some more digging and found that my program was dying in us_write
(io/transfer.c) at the line containing '*p = 0;'. I think the problem is one of
alignment. p is a pointer to gfc_offset, which is off_t, which is long (at
least on IA64) but I do not believe that salloc_w is required to return a
pointer to an aligned location. Thus the store of 0 could be to an unaligned
location which will cause an abort on ia64-hp-hpux11.20.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18891