On Thu, Feb 02, 2006 at 10:47:53PM -0800, Steven Yi wrote: > 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 Here's another instance where csound crashes when encountering an unexpected parentheses configuration, though in this case the mistake was mine: aright = (amainosc/2)+)ahdetosc*(1-kpan))+(aldetosc*kpan) But a segfault can never be good, even if it's the user's fault... Cheers, S.M. > 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 > > > > > > > -- > Send bugs reports to this list. > To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk > -- smassy@sdf.lonestar.org