From owner-freebsd-current Thu Apr 30 01:15:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA00232 for freebsd-current-outgoing; Thu, 30 Apr 1998 01:15:17 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from comp.polyu.edu.hk (csns02.COMP.POLYU.EDU.HK [158.132.25.95]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id BAA00226 for ; Thu, 30 Apr 1998 01:15:14 -0700 (PDT) (envelope-from c5666305@comp.polyu.edu.hk) Received: from cssolar82.COMP.HKP.HK by comp.polyu.edu.hk (SMI-8.6/SMI-SVR4) id QAA21918; Thu, 30 Apr 1998 16:14:54 +0800 Received: (from c5666305@localhost) by cssolar82.COMP.HKP.HK (SMI-8.6/) id QAA12446 for freebsd-current@freebsd.org; Thu, 30 Apr 1998 16:14:53 +0800 Message-Id: <199804300814.QAA12446@cssolar82.COMP.HKP.HK> Subject: floating porint exception error To: freebsd-current@FreeBSD.ORG Date: Thu, 30 Apr 1998 16:14:53 +0800 (HKT) From: "c5666305" X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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. Clarence To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message