Tcl Source Code

View Ticket
Login
Ticket UUID: 1444305
Title: expr failed tests in NetBSD 3.0 x86
Type: Bug Version: obsolete: 8.5a4
Submitter: georgeps Created on: 2006-03-06 17:48:45
Subsystem: 16. Commands A-H Assigned To: kennykb
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-04-07 00:57:59
Resolution: Invalid Closed By: kennykb
    Closed on: 2006-04-06 17:57:59
Description:
I examined the existing expr report 1381715 and found
that I'm experiencing some test bugs in NetBSD 3.0 x86
that aren't occuring in 1381715.

The gcc version used is 3.3.3.  The processor I'm using
is a dual-core 2.8 GHz Pentium 4, so I think there
probably is not an FPU bug.

I have attached the full log from make test.

I use an automated Tcl script to do test builds.  The
script created a new build directory outside of the
/gps/src/cvs/HEAD/tcl source tree.

The $install_prefix is:
/gps/src/cvs/HEAD/Mon-Mar-06-runtime

sh ../tcl/unix/configure --prefix=$install_prefix
make install
make test >& test.log
User Comments: kennykb added on 2006-04-07 00:57:59:
Logged In: YES 
user_id=99768

Per a conversation with the submitter today, the program:

#include <stdio.h>
#include <math.h>
int main(int argc, const char* argv[]) {
    double f; int e;
    f = frexp(ldexp(1.,-1074), &e);
    printf("%g %d\n", f, e);
}

prints '0.5 -1022' rather than the correct
'0.5 -1073'.  This appears to be a problem in the
C runtime library on NetBSD, rather than in Tcl.

georgeps added on 2006-04-07 00:24:11:

File Added - 173664: test.log

georgeps added on 2006-03-07 00:48:47:

File Added - 169946: test.log

Attachments: