This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/18891] write with no open causes core dump


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]