POV-Ray : Newsgroups : povray.programming : PovRay on apache Server Time
3 Jul 2024 05:31:19 EDT (-0400)
  PovRay on apache (Message 1 to 4 of 4)  
From: blazek
Subject: PovRay on apache
Date: 8 Jul 2003 04:45:02
Message: <web.3f0a839eda61587057737bee0@news.povray.org>
I would like to run povray from cgi/apache/linux.
I get Segmentation fault and strace prints:

ioctl(0, TCGETS, 0xbfffe540) = -1 EINVAL (Invalid argument)
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

If I understan this well, it tries to read terminal information
(to use it for output format later?) but there is no terminal
when it is run on apache. Similar problems (?) were already
reported but never answerd:
http://news.povray.org/povray.programming/30970/
http://news.povray.org/povray.unix/27230/

How to go around this? How to disable ioctl() in povray, or
how to define terminal on apache. Or is it something else?

Thanks
Radim


Post a reply to this message

From: Warp
Subject: Re: PovRay on apache
Date: 8 Jul 2003 06:16:22
Message: <3f0a99f6@news.povray.org>
IIRC, someone suggested a fix for this (it's a bug in unix.cpp).
  I suppose it will be fixed in the next release.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: PovRay on apache
Date: 8 Jul 2003 08:51:52
Message: <3f0abe68$1@news.povray.org>
In article <web.3f0a839eda61587057737bee0@news.povray.org> , "blazek" 
<bla### [at] itcit> wrote:

> I would like to run povray from cgi/apache/linux.

That is an extremely bad idea!  By no means POV-Ray is meant for such a
security-sensitive application.

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Warp
Subject: Re: PovRay on apache
Date: 8 Jul 2003 09:25:54
Message: <3f0ac661@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> That is an extremely bad idea!  By no means POV-Ray is meant for such a
> security-sensitive application.

  I don't think it's too dangerous to run POV-Ray under a dedicated
account using file access restrictions (both POV-Ray's own and the ones
provided by the OS).
  The only way to misuse this kind of service would be to make POV-Ray
use tons of memory, but even this can be limited by the OS (man limit).

  Naturally, no-one can guarantee that POV-Ray has no security holes,
but that's the same thing as with *every* software out there (including
apache and linux itself).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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