From owner-freebsd-current Thu Apr 30 08:38:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA25858 for freebsd-current-outgoing; Thu, 30 Apr 1998 08:38:09 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id IAA25851 for ; Thu, 30 Apr 1998 08:38:07 -0700 (PDT) (envelope-from luoqi@watermarkgroup.com) Received: by watermarkgroup.com (4.1/SMI-4.1) id AA10192; Thu, 30 Apr 98 11:37:26 EDT Date: Thu, 30 Apr 98 11:37:26 EDT From: luoqi@watermarkgroup.com (Luoqi Chen) Message-Id: <9804301537.AA10192@watermarkgroup.com> To: c5666305@comp.polyu.edu.hk, freebsd-current@FreeBSD.ORG Subject: Re: floating porint exception error Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello, > > I recent encounter an error which I don't know how to fix it. It is an > MesaGL/GLUT application which halt at a statement as following: > > static int > func(int n) > { > return 0.001 + M_PI / asin((2 * n)); > } > > The error is floating point exception (core dump). The same program work > okay under netbsd 1.3E. However it cannot be run under FreeBSD 2.2.6 and > break at return 0.001 + ..... Any idea ? Thanks. > I am suprised that this ever worked. Basic trigonometry...(hint: |sin(x)|<=1). > > Clarence > -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message