[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [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 () gcc ! gnu ! org>
Date:       2006-09-30 22:50:23
Message-ID: 20060930225023.11439.qmail () sourceware ! org
[Download RAW message or body]



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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic