#4 Assigning a string to a global string variable crashes Csound 6

1.0
closed
globals (1)
2013-03-04
2013-03-04
Michael Gogins
No

In Csound6, assigning a value to a global string variable (gSsomething), either in the orchestra header, or in an instrument definition, causes Csound to crash. It is possible to assign a value to a local string variable in an instrument definition. The following csd can be used to reproduce the problem.

<CsoundSynthesizer>
<CsOptions>
-RWdfo test.wav
</CsOptions>
<CsInstruments>
sr = 48000
ksmps = 20
nchnls = 2
;gSnapshotfile = "Untouching-1.snap"
instr 1
print p1, p2, p3
;gSnapshotfile = "Untouching-1.snap"
;printf "Snapshotfile: %s\n", 1, gSnapshotfile
Snapshotfile = "Untouching-1.snap"
printf "Snapshotfile: %s\n", 1, Snapshotfile
endin
</CsInstruments>
<CsScore>
i 1 1 1
</CsScore>
</CsoundSynthesizer>

Discussion

  • Steven Yi
    Steven Yi
    2013-03-04

    This should now be fixed in GIT; error was due to wrong size allocated for String VAR's.

     

Cancel   Add attachment