This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Sep 2006 22:50:23 -0000
- Subject: [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
- References: <bug-29302-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from howarth at nitro dot med dot uc dot edu 2006-09-30 22:50 -------
Jerry,
I've run this with guardmalloc...
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/libgmalloc.3.html
using all the permutations and nothing gets triggered.
Jack
ps It seems the crashes are specific to those lines that have...
write(l,fmt=fmt)pos_inf
or
write(l,fmt=fmt)neg_inf
The lines with...
write(l,fmt=fmt)nan
never cause a segfault so a minimal failing testcase is...
implicit none
character*40 l
character*12 fmt
real zero, pos_inf
zero = 0.0
pos_inf = 1.0/zero
fmt = '(F0.0)'
write(l,fmt=fmt)pos_inf
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302