POV-Ray : Newsgroups : povray.unix : Povray and perl Server Time
26 Dec 2024 02:28:25 EST (-0500)
  Povray and perl (Message 1 to 4 of 4)  
From: Dan
Subject: Povray and perl
Date: 28 May 2003 16:00:02
Message: <web.3ed5152da1d66fb4c967fd770@news.povray.org>
I am trying to run povray thru a perl script as part of a cgi page.
When i run povray thru perl from the command line it works just fine,
But when i try and run it through the internet cgi i get a segmentation
fault and a core dump.  I do not believe that permissions are an issue and
when i test in the script for the existance of povray it says its there and
i can even list its permissions.  Does anyone have any idea what may be
happening?

-dan


Post a reply to this message

From: Christoph Hormann
Subject: Re: Povray and perl
Date: 28 May 2003 17:14:52
Message: <3ED526CB.6AAC6C34@gmx.de>
Dan wrote:
> 
> I am trying to run povray thru a perl script as part of a cgi page.
> When i run povray thru perl from the command line it works just fine,
> But when i try and run it through the internet cgi i get a segmentation
> fault and a core dump.  I do not believe that permissions are an issue and
> when i test in the script for the existance of povray it says its there and
> i can even list its permissions.  Does anyone have any idea what may be
> happening?

Make sure you run it with display off ('-d') and make sure you have read
access to the povray.conf file.

Christoph

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


Post a reply to this message

From: Dan
Subject: Re: Povray and perl
Date: 29 May 2003 15:25:01
Message: <web.3ed65d949923d2fbc967fd770@news.povray.org>
I check the povray.conf file and read access was fine,
and i had already tried with the -d parameter. I have found that i can
call povray without any parameters and get it to respond, but the minute i
add an input parameter, it causes a core dump.  More explicitly, i am using
a
system call inside of perl script to execute povray.  Again, there are no
problems from the command line, but it core dumps when run through the web
server.

-dan

Christoph Hormann wrote:
>
>Dan wrote:
>>
>> I am trying to run povray thru a perl script as part of a cgi page.
>> When i run povray thru perl from the command line it works just fine,
>> But when i try and run it through the internet cgi i get a segmentation
>> fault and a core dump.  I do not believe that permissions are an issue and
>> when i test in the script for the existance of povray it says its there and
>> i can even list its permissions.  Does anyone have any idea what may be
>> happening?
>
>Make sure you run it with display off ('-d') and make sure you have read
>access to the povray.conf file.
>
>Christoph
>
>POV-Ray tutorials, include files, Sim-POV,
>HCR-Edit and more: http://www.tu-bs.de/~y0013390/
>Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______
>


Post a reply to this message

From: Steve
Subject: Re: Povray and perl
Date: 30 May 2003 03:16:43
Message: <slrnbde19g.uj0.steve@zeropps.org.uk>
On Thu, 29 May 2003 15:20:52 EDT, Dan wrote:
> I check the povray.conf file and read access was fine,
> and i had already tried with the -d parameter. I have found that i can
> call povray without any parameters and get it to respond, but the minute i
> add an input parameter, it causes a core dump.  More explicitly, i am using
> a
> system call inside of perl script to execute povray.  Again, there are no
> problems from the command line, but it core dumps when run through the web
> server.
> 

Have you tried rendering via the perl script as another user from the 
command line?  And are you running the script with -Tw, if so have a go 
without the T so just run it -w and if that works fine then it means that
the input pov file name needs to be untainted when run with T. 


How about running a little test through your web server to see if it's 
POV that's the problem or something else.  Write a small bash script
and make it executable, something like:

#!/bin/bash

First_Param=$1

Second_Param=$2
 
echo $First_Param

echo $Second_Param

############################  End of Bash script #######################

Now write a very simple cgi script that takes two paramateers in a form 
and runs this shell script giving it the two paramaters, this will be 
easy to test both from the command line and via the web server. 


-- 
sphere{z*5,1pigment{rgb.5}finish{reflection.3specular.5}}box{<-50,-3,-50>
<50,-2,50>pigment{checker/*\__\\__/  * \_\\__*/scale 2}finish{ambient.7}}
light_source/*__\\__\\__\\__\\__\(    ~ )\__\\__\\__\\__\\*/{<2,5,1>*4,1} 
/*\\__\\__\\__\\__\\__\\__\\__\\__\~  -/__\\__\\__\\__\\__\\*//* Steve */


Post a reply to this message

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