POV-Ray : Newsgroups : povray.advanced-users : Divide by Zero Error ? : Re: Divide by Zero Error ? Server Time
4 Jul 2024 11:50:48 EDT (-0400)
  Re: Divide by Zero Error ?  
From: Thorsten Froehlich
Date: 10 Aug 1999 03:43:48
Message: <37afd834@news.povray.org>
In article <37afd18c@news.povray.org> , Nieminen Mika <war### [at] cctutfi>  
wrote:

>   The fact that a program doesn't crash in certain platforms doesn't mean
> that the program is bugless.
>   I once made a program which worked just fine in SunOS and Digital Unix
> but crashed in a malloc()-call in Linux. Was there some problem with Linux
> memory management?
>   Not at all! Actually the memory management of Linux was better than the
> ones in SunOS or Digital Unix. The bug was in my program (I made an
> off-by-one mistake when writing to a table). The memory management of
> Linux saw this and crashed the program while SunOS and Digital Unix were
> unable to. Thanx to Linux I found the problem and was able to fix it.
>   So the bug _may_ be in the program although it works in some systems.

Yes, I know. As I said, with a different Mac compiler (= different C
libraries) we get problems like that, too. Unfortunately  you never know
(without knowing where in the code it happens) if a compiler bug or a code
bug causes writing to an invalid location.


     Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.