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>