Page 1 of 1

algebraic sddsprocess crash

Posted: 01 Sep 2008, 07:35
by petrenko
In Windows I have a strange crash of sddsprocess executed with "algebraic" option:

Code: Select all

#!/usr/bin/tclsh

exec \
    sddssequence -pipe=out -define=Index -sequence=begin=1,number=10,delta=1 | \
    sddsconvert -ascii -pipe | \
    sddsprocess -pipe \
	"-define=col,x, \
	    11111*(1 + 1)/1 - \
	    11111*(1 + 1)/1 + \
	    11111*(1*1*1 - 111111)/(1+1) ,algebraic" \
    >@ stdout
If you write, for example, "11111*(1*1*1 - 11111111)/(1+1)" instead of "11111*(1*1*1 - 111111)/(1+1)" it works fine.

In linux the same code works fine.

I have Win XP + ActiveTcl + latest SDDSToolkit.exe

Re: algebraic sddsprocess crash

Posted: 02 Sep 2008, 16:15
by soliday
I could not recreate the problem. I have windows XP and from the command line I ran:

Code: Select all

sddsprocess input.sdds output.sdds "-define=col,x,11111*(1 + 1)/1 - 11111*(1 + 1)/1 + 11111*(1*1*1 - 111111)/(1+1) ,algebraic"
This did not produce an error. I also tried other variations without seeing the error.

Re: algebraic sddsprocess crash

Posted: 04 Sep 2008, 02:59
by petrenko
Error happens only then the script is executed as a tcl-file.
Try to copy the script as it is into a file and run it as "tclsh85 script.tcl" or something.

Also if you write the definition in a single line no error happens.