From owner-freebsd-questions Fri Jun 18 17:58: 6 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 8D08F15129 for ; Fri, 18 Jun 1999 17:58:03 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.9.3/8.9.3) with ESMTP id RAA59121; Fri, 18 Jun 1999 17:58:00 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Fri, 18 Jun 1999 17:58:00 -0700 (PDT) From: Doug White To: "Ronald 'Ko' Klop" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ghostscript 5.5 floating point exception In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 17 Jun 1999, Ronald 'Ko' Klop wrote: > I compiled ghostscript 5.5 from the ports collection. When I run this > program it immediately crashes with a floating point exception. I have a > Cyrix 486DX and the kernel detects npx0 while booting. So, I have a FPU. > > Gs gets the signal in png_push_fill_buffer() which is an empty > function in gdevpnm.c. I don't understand how a FPU exception can > occure in an empty function. Did you use the port? This is a common Linux-ism. Linux masks all FPU exceptions by default, where FreeBSD does not. The offending calls simply need to be bracketed with fpgetmask()/fpsetmask() calls. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message