algebraic sddsprocess crash

Moderators: michael_borland, soliday

Post Reply
petrenko
Posts: 43
Joined: 09 Jun 2008, 02:53
Contact:

algebraic sddsprocess crash

Post by petrenko » 01 Sep 2008, 07:35

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
Attachments
crash.png

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: algebraic sddsprocess crash

Post by soliday » 02 Sep 2008, 16:15

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.

petrenko
Posts: 43
Joined: 09 Jun 2008, 02:53
Contact:

Re: algebraic sddsprocess crash

Post by petrenko » 04 Sep 2008, 02:59

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.

Post Reply