www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/02/10:55:24

Date: Sun, 2 May 1999 11:28:13 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Federica <ica AT bergamoexport DOT it>
cc: djgpp AT delorie DOT com
Subject: Re: HelpMePlease
In-Reply-To: <372EF63F.F5DBD092@bergamoexport.it>
Message-ID: <Pine.SUN.3.91.990502112754.563Z-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 4 May 1999, Federica wrote:

> My program crashes (at run time ) if compiled in my machine but runs OK
> when compiled in friend of mine one (then my machine can't compile it
> well).

It's most probably a bug in your program, which you should debug.

The crash traceback you posted indicates that you are using DJGPP
version 2.01.  If your friend uses v2.02, then the reason that the
program doesn't crash when compiled on your friend's machine is that
v2.02 masks all numeric exceptions in the startup code.

When numeric exceptions are masked, they produce NaN's and Inf's
(that's Not-a-Number and Infinity, in case you didn't know) instead of
aborting the program.  However, the results of such calculations are
still incorrect in many cases.  So I think you should debug your
program near the place where it crashes (line 388 of eulerod.c, as the
traceback says).  Almost certainly, it has some problem like divide by
zero or square root of a negative number.

> I've readed all your FAQ list (great strain for me , I'm italian ) but
> it haven't help me.

Please consider translating the FAQ into Italian and contributing the
translation to the DJGPP project.  We sure could use more features
that are friendly to people who don't command English too well.

Section 12.2 of the FAQ explains a great deal of details about how to
begin debugging your program using the traceback as the starting
point.

- Raw text -


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