Subject: port-vax/18483: atan() SIGILL on 1.6, vax 4000/90
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jarkko.teppo@er-grp.com>
List: netbsd-bugs
Date: 09/30/2002 22:54:08
>Number:         18483
>Category:       port-vax
>Synopsis:       atan() SIGILL on 1.6, vax 4000/90
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-vax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 30 22:55:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jarkko Teppo
>Release:        1.6
>Organization:
>Environment:
NetBSD 192.168.0.231 1.6 NetBSD 1.6 (GENERIC) #0: Wed Sep 11 10:14:37 UTC 2002
autobuild@tgm.daemon.org:/autobuild/vax/OBJ/autobuild/src/sys/arch/vax/compile/GENERIC vax
>Description:
Using atan() seems to cause a SIGILL. Discovered when trying to run
bytebench from pkgsrc (whets.c)

>How-To-Repeat:
#include <stdio.h>
#include <math.h>

void main()
{

double x=0.5;
double y=0.1;

printf("%f\n",atan(x+y));

}
192:~/Development/c/vax$ cc -o atan atan.c -lm
atan.c: In function `main':
atan.c:5: warning: return type of `main' is not `int'
192:~/Development/c/vax$ ./atan
Illegal instruction (core dumped)
192:~/Development/c/vax$


The values to atan don't matter, it SIGILL's anyway.
>Fix:
No idea.
>Release-Note:
>Audit-Trail:
>Unformatted: