Sender: nate AT cartsys DOT com Message-ID: <35871890.8BC9B576@cartsys.com> Date: Tue, 16 Jun 1998 18:14:56 -0700 From: Nate Eldredge MIME-Version: 1.0 To: Shue-Cheng CHEN 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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