POV-Ray : Newsgroups : povray.beta-test : division-by-zero-crash? : Re: division-by-zero-crash? Server Time
4 Nov 2024 13:44:52 EST (-0500)
  Re: division-by-zero-crash?  
From: Ron Parker
Date: 28 Sep 2001 15:23:53
Message: <slrn9r9jic.639.ron.parker@fwi.com>
On 28 Sep 2001 15:20:13 -0400, Ron Parker wrote:
>On Fri, 28 Sep 2001 15:14:56 -0400, Thorsten Froehlich wrote:
>>In article <MPG.161ee9f9c07838c998968f@news.povray.org> , Lutz-Peter Hooge
>><lpv### [at] gmxde>  wrote:
>>
>>> #version 3.5;
>>> camera
>>> {
>>>  location <0,1,-4>
>>>  look_at <0,0,0>
>>> }
>>> #declare f=function {1/x}
>>> plane{z,0 inverse pigment{function{f(x,y,z)}}}
>>
>>Still getting an error message and no crash.
>
>I get a crash here, on Linux:

More details.  I don't have time to track this one down right now, but 
hopefully this stack trace will help.  I have a +fn in my default INI
file; it would help to know what parameters Lutz is rendering with.

#0  0x80bc1fd in PNG_Image::~PNG_Image (this=0x8174ac0, __in_chrg=3)
    at png_pov.cpp:816
#1  0x80cab10 in close_all () at povray.cpp:1885
#2  0x80c93b3 in povray_terminate () at povray.cpp:498
#3  0x80c9401 in povray_exit (i=1) at povray.cpp:543
#4  0x80f53b8 in ErrorAt (filename=0x8177598 "div0.pov", line=7,
    format=0x8117f20 "Floating-point exception detected in function '%s'. Your f
unction either attempted a division by zero, used a function outside its domain
or called an internal function with invalid parameters.") at userio.cpp:419
#5  0x806af4e in POVFPU_Exception (fn=0) at fnpovfpu.cpp:1062
#6  0x806ebc2 in POVFPU_RunDefault (fn=1) at fnpovfpu.cpp:1276
#7  0x80b25c8 in function_pattern (EPoint=0xbffff030, TPat=0x8177928)
    at pattern.cpp:1623
#8  0x80af5a7 in Evaluate_TPat (TPat=0x8177928, EPoint=0xbffff030,
    Intersection=0xbffff928) at pattern.cpp:202
#9  0x80ba413 in Compute_Pigment (Colour=0xbffff630, Pigment=0x8177928,
    EPoint=0xbffff7d0, Intersection=0xbffff928) at pigment.cpp:538
#10 0x8084d74 in compute_lighted_texture (ResCol=0xbffff804,
    Texture=0x8177878, IPoint=0xbffff7d0, Raw_Normal=0xbffff7e8,
    Ray=0x814b320, Weight=1, Intersection=0xbffff928) at lighting.cpp:3857
#11 0x8084872 in do_texture_map (Result_Colour=0xbffff804, Texture=0x8177878,
    IPoint=0xbffff7d0, Raw_Normal=0xbffff7e8, Ray=0x814b320, Weight=1,
    Ray_Intersection=0xbffff928, Shadow_Flag=0) at lighting.cpp:3617
#12 0x807f557 in Determine_Apparent_Colour (Ray_Intersection=0xbffff928,
    Colour=0x81bbc30, Ray=0x814b320, Weight=1) at lighting.cpp:600
#13 0x80d5b92 in Trace (Ray=0x814b320, Colour=0x81bbc30, Weight=1)
    at render.cpp:1903
#14 0x80d6f12 in trace_pixel (x=160, y=0, Colour=0x81bbc30) at render.cpp:2835
#15 0x80d4fc2 in Start_Non_Adaptive_Tracing () at render.cpp:1391
#16 0x80c9a65 in FrameRender () at povray.cpp:993
#17 0x80c9503 in FrameLoop () at povray.cpp:723
#18 0x80c9378 in povray_render (argc=3, argv=0x81698e8) at povray.cpp:455
#19 0x80c90bd in main (argc=3, argv=0xbffffc74) at povray.cpp:246
#20 0x4016db0f in __libc_start_main ()


-- 
#local R=<7084844682857967,0787982,826975826580>;#macro L(P)concat(#while(P)chr(
mod(P,100)),#local P=P/100;#end"")#end background{rgb 1}text{ttf L(R.x)L(R.y)0,0
translate<-.8,0,-1>}text{ttf L(R.x)L(R.z)0,0translate<-1.6,-.75,-1>}sphere{z/9e3
4/26/2001finish{reflection 1}}//ron.parker@povray.org My opinions, nobody else's


Post a reply to this message

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