NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-sparc/44389



The following reply was made to PR port-sparc/44389; it has been noted by GNATS.

From: Julian Coleman <jdc%coris.org.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: port-sparc/44389
Date: Tue, 18 Jan 2011 12:17:12 +0000

 Hi,
 
 >  I have managed to isolate exact command causing the problem.
 >  
 >  So, I am trying to install m4 using pkgsrc on NetBSD 5.1/SPARC and with 
 >  higher debug level, I can trace what is happening:
 
 >  + /usr/bin/awk / *-recheck *\| *--recheck.*\)/ { 
 >    print;                                          print "        : Avoid 
 >  regenerating within pkgsrc";     print "        exit 0"; 
 >                    next;                                           } 
 >                                                     { print } configure
 
 >  Context of the line 18792 in m4 ./configure script is:
 
 >  static float
 >  NaN ()
 >  {
 >     static float zero = 0.0f;
 >     return zero / zero;
 >  }
  
 >  and AWK is throwing error parsing the "Nan ()" line:
 
 >  #  echo "NaN ()" | /usr/bin/awk '/ *-recheck *\| *--recheck.*\)/ { print; }'
 >  /usr/bin/awk: floating point exception 8
 >    source line number 1
  
 >  Eventually, the failing command boils down to this simple form:
   
 >  # echo NaN | awk '{print "test"}'
 >  awk: floating point exception 8
 >    source line number 1
  
 >  Just to remind, I'm running the system under QEMU and I believe
 >  this issue is not related to QEMU like it was suggested.
 
 I have run all the above commands on a sparc (SS20) running 5.0_STABLE (which
 has the same awk version as 5.1:
 
   $ awk --version
   awk version 20070501
 
 ) and I get no crashes with awk.
 
 Thanks,
 
 J
 
 -- 
   My other computer also runs NetBSD    /        Sailing at Newbiggin
         http://www.netbsd.org/        /   http://www.newbigginsailingclub.org/
 


Home | Main Index | Thread Index | Old Index