From owner-freebsd-bugs Sat Jul 14 10:40:25 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8810B37B40E for ; Sat, 14 Jul 2001 10:40:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6EHeHI29815; Sat, 14 Jul 2001 10:40:17 -0700 (PDT) (envelope-from gnats) Received: from mail.disney.com (mail.disney.com [204.128.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 3768837B401 for ; Sat, 14 Jul 2001 10:34:17 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from pain10.corp.disney.com (root@pain10.corp.disney.com [153.7.110.100]) by mail.disney.com (Switch-2.0.1/Switch-2.0.1) with SMTP id f6EHXPI07951 for ; Sat, 14 Jul 2001 10:33:25 -0700 (PDT) Received: from [172.30.50.1] by pain.corp.disney.com with ESMTP for FreeBSD-gnats-submit@freebsd.org; Sat, 14 Jul 2001 10:35:05 -0700 Received: from plio.fan.fa.disney.com (plio.fan.fa.disney.com [153.7.118.2]) by pecos.fa.disney.com (8.11.3/8.11.3) with ESMTP id f6EHYAs10808 for ; Sat, 14 Jul 2001 10:34:10 -0700 (PDT) Received: from snoopy.fan.fa.disney.com (snoopy.fan.fa.disney.com [153.7.117.170]) by plio.fan.fa.disney.com (8.9.2/8.9.2) with ESMTP id KAA13285 for ; Sat, 14 Jul 2001 10:34:09 -0700 (PDT) (envelope-from Jim.Pirzyk@mailhost) Received: (from Jim.Pirzyk@localhost) by snoopy.fan.fa.disney.com (8.11.3/8.11.3) id f6EHY9i99584; Sat, 14 Jul 2001 10:34:09 -0700 (PDT) (envelope-from Jim.Pirzyk) Message-Id: <200107141734.f6EHY9i99584@snoopy.fan.fa.disney.com> Date: Sat, 14 Jul 2001 10:34:09 -0700 (PDT) From: Jim.Pirzyk@disney.com Reply-To: Jim.Pirzyk@disney.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: kern/28966: math libraries in linux emulation do not return same results Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 28966 >Category: kern >Synopsis: math libraries in linux emulation do not return same results >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 14 10:40:16 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Jim Pirzyk >Release: FreeBSD 4.3-RELEASE i386 >Organization: >Environment: System: FreeBSD snoopy 4.3-RELEASE FreeBSD 4.3-RELEASE #9: Thu Jul 12 12:17:21 PDT 2001 root@snoopy:/auto/roy/dist/pub/FreeBSD/4.3-RELEASE/sys/compile/UP_WORKSTATION i386 >Description: Math libraries under linux emulation do not return the same results as under native FreeBSD nor under native Linux. This is independant of shared libaries (they are the same under Linux emulation as under native linux). >How-To-Repeat: Compile this program on a linux system and run there and on the FreeBSD system. Compare results. #include #include #include int main (int argc, char **argv) { double res, x = 53.278500; if ( argc == 2 ) x = atof(argv[1]); res = exp(x); printf ("x = %lf\n", x); printf ("exp(x) = %lf\n", res); exit (0); } >Fix: I have yet to find a fix. It may have to due with the NPX code word in linux emulation, but I am not sure. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message