From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59662 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfFj2-0000mF-Rw for qemu-devel@nongnu.org; Tue, 18 Jan 2011 12:52:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfFj1-00037U-AR for qemu-devel@nongnu.org; Tue, 18 Jan 2011 12:52:12 -0500 Received: from mail-pv0-f173.google.com ([74.125.83.173]:33490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfFj1-00037P-2H for qemu-devel@nongnu.org; Tue, 18 Jan 2011 12:52:11 -0500 Received: by pvh11 with SMTP id 11so1501530pvh.4 for ; Tue, 18 Jan 2011 09:52:10 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <4D30C320.3090605@loskot.net> From: Blue Swirl Date: Tue, 18 Jan 2011 17:51:49 +0000 Message-ID: Subject: Re: [Qemu-devel] Re: Fwd: Re: port-sparc/44389: awk failure during m4 installation with pkgsrc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mateusz Loskot Cc: qemu-devel@nongnu.org On Tue, Jan 18, 2011 at 11:40 AM, Mateusz Loskot wrote= : > Blue Swirl gmail.com> writes: >> Mateusz Loskot loskot.net> wrote: >> > Hi, >> > >> > I emulate SPARC with NetBSD 5.0 installed and I've experienced a probl= em >> > with pkgsrc installing one of packages. >> > I submitted bug report to NetBSD team and received short response >> > suggesting it is likely QEMU problem (see original message below). >> > >> > Shortly, the problem is that AWK throws "floating point exception" >> > Here is the bug report with details: >> > >> > http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=3D44389 >> > >> > Given the nature of the problem, it "feels" the issue is unrelated to >> > QEMU, but I'm not on position to judge the suggestion posted by NetBSD >> > team is pointless. >> > >> > I have no idea how to isolate the problem on NetBSD, so I replied to >> > NetBSD team asking: >> > =3D=3D=3D >> > Could you suggest how to isolate the problem, find exact awk command >> > causing the error, so I can debug it or forward to QEMU developers wit= h >> > details necessary to reproduce it? >> > =3D=3D=3D >> > >> > In the meantime, I thought I will attack qemu-devel hoping it may ring >> > some bells here as well. >> > >> > Any ideas? >> >> It's entirely possible that the floating point support for Sparc can >> be buggy, there have been a few fixes to softfloat recently for other >> architectures. >> >> I'd check if NaN handling or floating point exception support works >> correctly, regular programs don't use those. But a reproducible test >> case is essential. > > > I think I have managed to isolate reproducible test for this problem > and it seems the issue is in NetBSD userland. > See my last update to the problem reprot: > > http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=3D44389 > > Long story short, the problem boils down to the following command: > > # echo NaN | awk '{print "test"}' > awk: floating point exception 8 > =C2=A0source line number 1 > > which interprets "NaN" as a number when it isn't asked to. FYI: also this succeeds on 4.0: $ echo NaN | awk '{print "test"}' test