Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jul 2001 10:34:09 -0700 (PDT)
From:      Jim.Pirzyk@disney.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/28966: math libraries in linux emulation do not return same results
Message-ID:  <200107141734.f6EHY9i99584@snoopy.fan.fa.disney.com>

next in thread | raw e-mail | index | archive | help

>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 <stdio.h>
#include <math.h>
#include <stdlib.h>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107141734.f6EHY9i99584>