Hi Phil, Just wanted to say I didn't test your file but I've seen this before and can confirm the bug. I think it might be a parser bug, where it's looking for an irate variable if the current word is longer than 2 characters, but I could be wrong. Either way, until it can get sorted out, it can be a very tricky bug to find when coding up an instrument, and thanks for noting it here! steven On 2/2/06, Phil wrote: > Hi, > > First off, apologies if this has already been noted - I lodged a bug > in the sourceforge bug tracker (1422179), but I then noticed that bugs > were requested to be sent to this list. Anyway, here's the bug: > > Lack of whitespace in if statement causes segfault > For if statements, if there is not a space between the if and the evaluated > expression, csound (5.00, as well as 5.00rc2 and 5.00rc3 and possibly > MacCSound) crashes. > > For example, the following code would work: > > if (kthing1 == 0) then > printk 1, kthing1 > endif > > Whereas this code would cause a segmentation fault: > > if(kthing1 == 0) then > printk 1, kthing1 > endif > > The same seems to apply to elseif statements. > > attached is an example file, testif.csd, which should exhibit the problem. > > Thanks, > Phil > > >