delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/16/22:25:19

Sender: nate AT cartsys DOT com
Message-ID: <35871890.8BC9B576@cartsys.com>
Date: Tue, 16 Jun 1998 18:14:56 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Shue-Cheng CHEN <scchen AT ohriki DOT t DOT u-tokyo DOT ac DOT jp>
CC: djgpp AT delorie DOT com
Subject: Re: SIGFPE, Arithmetic exception?
References: <3584A3FE DOT 6363F01 AT ohriki DOT t DOT u-tokyo DOT ac DOT jp>

Shue-Cheng CHEN wrote:
> 
> Hi! Everyone,
> 
>     I'm using RHIDE to do my C++ programming and debugging. It
> always works well. But recently I often get the following
> message when running the same program
> 
>   "Program has received signal: SIGFPE, Arithmetic exception"
> 
> and the program terminates. I can't run the same program in DOS
> (without RHIDE) too. It crashes.
> 
>     I don't know why it happens, because the program is always
> the same one. It worked so well before.

Most likely a bug in your code. SIGFPE is raised when math errors
occur-- sqrt(negative) and division by zero are the most usual causes. 
The traceback should help you find where the problem lies.

If you can't find anything, try to reduce the program to the smallest
that reproduces the problem, and post it.
-- 

Nate Eldredge
nate AT cartsys DOT com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019