POV-Ray : Newsgroups : povray.general : Bug parsing shell-out options in INI-File Server Time
6 Nov 2024 16:32:26 EST (-0500)
  Bug parsing shell-out options in INI-File (Message 1 to 1 of 1)  
From: Jens Heise
Subject: Bug parsing shell-out options in INI-File
Date: 4 Aug 2002 17:59:47
Message: <3d4da3d3$1@news.povray.org>
Hi,
 
 I think I found a bug in the parsing of the shell-out parameters in the ini 
files. I discovered this while running the allscene.sh where the commands for 
pre scene and pre frame never gets executed although I turned off the 
restrictions in the config file and the post-scene command works fine.

Debugging the sources I traced the problem down to the point where the 
attribute object for the command_return parameters are inserted in the 
options lists. Since the command-option and the appropriate return-option 
uses the same identifiers the already parsed option will be removed from the 
list when the other one is parsed. So of I exchange the order of command 
option and return option in the ini-file the command executes properly, but 
since the return option gets overwritten during parsing of the following 
command-option, the return value is not properly interpreted.

The parsing problem occurs in "optin.cpp" around line 1254 where the new 
option object gets registered with the main object, since the call to 
"POVMSObject_Set" removes the first option registerd with this id although it 
has a different type e.g. when the command-option had been parsed a string is 
in the list and an int gets registered for the return-option.
 
I'm using povray 3.50a for unix running on OpenStep 4.2 with gcc/g++ 2.8.1. 
but that shouldn't be a problem since using shell-outs without specifying a 
return-option works and all the other things also.

I hope this is really a bug and my description helps to find it.

Greetings,
Jens Heise


Post a reply to this message

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