POV-Ray : Newsgroups : povray.general : Segfault on 3.6.1 : Segfault on 3.6.1 Server Time
1 Aug 2024 12:19:22 EDT (-0400)
  Segfault on 3.6.1  
From: Sebastian H 
Date: 3 Oct 2005 20:14:10
Message: <4341c952$1@news.povray.org>
There is a scene I wrote which produced a segfault.
It could be reduced to the following two files:
break.pov & break.inc

/* file break.inc */

#macro M()

   #local aspect_ratio=1.0;

   #if(aspect_ratio)

   #end

#end

/* end of file */


/* file: break.pov */

#include "break.inc"

M()

#if (UNDEFINED_VARIABLE)

#end

#
/* end of file */

Things that I observed:
- The macro must be included with #include
- #declare or #local within the macro both have same result
- Without #if() condition test in macro scene "works"
- Without #if() condition test in break.pov scene "works" too
- Too much coffee to get some sleep

PoV-Ray:
...
Persistence of Vision(tm) Ray Tracer Version 3.6.1 (g++-3.4 3.4.4 @
  i686-pc-linux-gnu)
...

Sorry, I'm not sure where to post this.

Good night,
Sebastian


Post a reply to this message

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