POV-Ray : Newsgroups : povray.general : Segmentation fault Server Time
1 Nov 2024 11:15:44 EDT (-0400)
  Segmentation fault (Message 1 to 10 of 19)  
Goto Latest 10 Messages Next 9 Messages >>>
From: Florian Brucker
Subject: Segmentation fault
Date: 21 Oct 2004 12:36:09
Message: <4177e579$1@news.povray.org>
The following code snippet causes both POV 3.5 and 3.6 to exit with a 
segmentation fault on my Gentoo 2.4.25, Athlon XP 2600+, 1 Gig RAM:

<POV>
#macro F_Plane ()
   #local fn_p=function (x,y,z) { y };
   fn_p
#end

#local F1= F_Plane();

#declare fn_crash = function(x,y,z) { F1(x,y,z) }
</POV>

Can anyone confirm this behaviour?

Thanks,
Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

From: Ross
Subject: Re: Segmentation fault
Date: 21 Oct 2004 12:45:22
Message: <4177e7a2$1@news.povray.org>
"Florian Brucker" <tor### [at] torfboldcom> wrote in message
news:4177e579$1@news.povray.org...
> The following code snippet causes both POV 3.5 and 3.6 to exit with a
> segmentation fault on my Gentoo 2.4.25, Athlon XP 2600+, 1 Gig RAM:
>
> <POV>
> #macro F_Plane ()
>    #local fn_p=function (x,y,z) { y };
>    fn_p
> #end
>
> #local F1= F_Plane();
>
> #declare fn_crash = function(x,y,z) { F1(x,y,z) }
> </POV>
>
> Can anyone confirm this behaviour?
>
> Thanks,
> Florian

well it sure make 3.6 on Windows XP to act upset.

"The POV-Ray code rendering code threw an unhandled exception..." But that
was after I added a basic scene setup. Otherwise, just trying to render the
code you gave cause pov to hang.


Post a reply to this message

From: Severi Salminen
Subject: Re: Segmentation fault
Date: 21 Oct 2004 12:51:07
Message: <4177e8fb$1@news.povray.org>
Ross wrote:

>>The following code snippet causes both POV 3.5 and 3.6 to exit with a
>>segmentation fault on my Gentoo 2.4.25, Athlon XP 2600+, 1 Gig RAM:
> 
> well it sure make 3.6 on Windows XP to act upset.

Do you guys talk about 3.6.1 which is the latest version?

Sevei S.


Post a reply to this message

From: Florian Brucker
Subject: Re: Segmentation fault
Date: 21 Oct 2004 13:04:25
Message: <4177ec19@news.povray.org>
> Do you guys talk about 3.6.1 which is the latest version?
It happens for me on 3.5, 3.6.0 and 3.6.1 (the last one freshly 
installed after your question).

Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

From: Mark Ulrich
Subject: Re: Segmentation fault
Date: 21 Oct 2004 17:50:00
Message: <web.41782ecaca09a488188eee560@news.povray.org>
> Can anyone confirm this behaviour?
>

yes.

I use povray 3.6.1-fbdev-0.1.tar.gz , which is a small patch for povray to
use the framebuffer-device instead of the normal X-Display (I use a special
extension for my sis-graphicscard)

Linux-Mandrake 9.2, X.org 6.8.0

Mark


Post a reply to this message

From: Warp
Subject: Re: Segmentation fault
Date: 22 Oct 2004 04:30:10
Message: <4178c512@news.povray.org>
Florian Brucker <tor### [at] torfboldcom> wrote:
> The following code snippet causes both POV 3.5 and 3.6 to exit with a 
> segmentation fault on my Gentoo 2.4.25, Athlon XP 2600+, 1 Gig RAM:

  "Doctor, it really hurts when I touch here."
  "Then don't touch there."

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Florian Brucker
Subject: Re: Segmentation fault
Date: 22 Oct 2004 07:01:47
Message: <4178e89b@news.povray.org>
> "Doctor, it really hurts when I touch here."
> "Then don't touch there."
If this is meant to be a joke, then fine :)

If it's no joke, then I really disagree with that attitude...

Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

From: Florian Brucker
Subject: Re: Segmentation fault
Date: 22 Oct 2004 13:43:30
Message: <417946c2$1@news.povray.org>
> It's a Groucho Marx line. We use it all the time around here.
Ah, didn't know that.

> "Every time I assign data to a version of the program too old to handle 
> it, the reports come out funny."
Well, IMHO the code snippet is valid SDL. And even if that's not the 
case: a segmentation fault is in no way a good idea to treat syntax 
errors (Debugging POV SDL would be much more interesting if all syntax 
errors were treated that way :). And about the program being too old to 
handle it - 3.6.1 too old? POV 4 came faster than I thought ;)

Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

From: Christoph Hormann
Subject: Re: Segmentation fault
Date: 22 Oct 2004 14:05:02
Message: <clbhv6$6eu$1@chho.imagico.de>
Florian Brucker wrote:
> The following code snippet causes both POV 3.5 and 3.6 to exit with a 
> segmentation fault on my Gentoo 2.4.25, Athlon XP 2600+, 1 Gig RAM:
> 
> <POV>
> #macro F_Plane ()
>   #local fn_p=function (x,y,z) { y };
>   fn_p
> #end
> 
> #local F1= F_Plane();
> 
> #declare fn_crash = function(x,y,z) { F1(x,y,z) }
> </POV>

BTW the correct way to do what you seem to be trying to do is 
demostrated in the IsoCSG library.  What you wrote can't work although 
it should of course not crash but return with an error.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Daniel Hulme
Subject: Re: Segmentation fault
Date: 22 Oct 2004 15:13:30
Message: <20041022201329.3183eb65@dh286.pem.cam.ac.uk>
> > "Every time I assign data to a version of the program too old to
> > handle it, the reports come out funny."
> Well, IMHO the code snippet is valid SDL. And even if that's not the 
> case: a segmentation fault is in no way a good idea to treat syntax 
> errors (Debugging POV SDL would be much more interesting if all syntax
> errors were treated that way :). And about the program being too old
> to handle it - 3.6.1 too old? POV 4 came faster than I thought ;)
I think that was another joke. Do try to keep up :->

Daniel

-- 
A most peculiar man    With the windows closed      And Mrs Reardon says
He died last Saturday  So he'd never wake up  He has a brother somewhere
He turned on the gas   To his silent world   Who should be notified soon
And he went to sleep   And his tiny room    .oO( http://sad.istic.org/ )


Post a reply to this message

Goto Latest 10 Messages Next 9 Messages >>>

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