NetBSD Problem Report #18483
Received: (qmail 17810 invoked by uid 605); 1 Oct 2002 05:54:09 -0000
Message-Id: <20021001055408.597B011122@narn.netbsd.org>
Date: Mon, 30 Sep 2002 22:54:08 -0700 (PDT)
From: jarkko.teppo@er-grp.com
Sender: gnats-bugs-owner@netbsd.org
Reply-To: jarkko.teppo@er-grp.com
To: gnats-bugs@gnats.netbsd.org
Subject: atan() SIGILL on 1.6, vax 4000/90
X-Send-Pr-Version: www-1.0
>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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 01 05:55:01 +0000 2002
>Closed-Date: Wed Nov 26 22:34:22 +0000 2008
>Last-Modified: Wed Nov 26 22:34:22 +0000 2008
>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:
From: "Jarkko Teppo" <jarkko.teppo@er-grp.com>
To: <gnats-bugs@netbsd.org>
Cc:
Subject: Re: port-vax/18483: atan SIGILL on 1.6, vax 4000/90
Date: Tue, 15 Oct 2002 12:17:04 +0300 (EEST)
Things get funnier all the time:
bash-2.05# cat atan.c
#include <stdio.h>
#include <math.h>
void main()
{
double x=0.5;
printf("%f\n",atan(x));
}
bash-2.05# cc -o atan atan.c -lm
atan.c: In function `main':
atan.c:5: warning: return type of `main' is not `int'
bash-2.05# ./atan
Illegal instruction (core dumped)
bash-2.05# cc -o atan -static atan.c -lm
atan.c: In function `main':
atan.c:5: warning: return type of `main' is not `int'
bash-2.05# ./atan
0.463648
bash-2.05#
So if I link it statically I see no problems. Unfortunately this doesn't
help bytebench (whets.c, line 692). I haven't tried lame or bladeenc yet.
(They SIGILL in a similar way)
--
jht
State-Changed-From-To: open->closed
State-Changed-By: oster@NetBSD.org
State-Changed-When: Wed, 26 Nov 2008 22:34:22 +0000
State-Changed-Why:
Johnny Billquist confirmed this is fixed these days. Thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.