Csound Csound-dev Csound-tekno Search About

lack of whitespace in if statement causes segfault

Date2006-02-03 00:12
FromPhil
Subjectlack of whitespace in if statement causes segfault
AttachmentsNone  testif.csd  

Date2006-02-03 06:47
FromSteven Yi
SubjectRe: lack of whitespace in if statement causes segfault
AttachmentsNone  

Date2006-02-03 07:34
From"S. Massy"
SubjectRe: lack of whitespace in if statement causes segfault
AttachmentsNone  

Date2006-02-03 09:47
FromIstvan Varga
SubjectRe: lack of whitespace in if statement causes segfault
AttachmentsNone  

Date2006-02-03 10:08
FromIstvan Varga
SubjectRe: lack of whitespace in if statement causes segfault
AttachmentsNone  

Date2006-02-03 15:06
FromIstvan Varga
SubjectRe: lack of whitespace in if statement causes segfault
AttachmentsNone  

Date2006-02-04 00:51
FromPMA
SubjectRe: lack of whitespace in if statement causes segfault
I remember tripping over this early on, finding the
adjustment (space), then just mindlessly carrying
on.  Never thought to report.  Apologies!

PA

Istvan Varga wrote:
> What is even more interesting is that this bug was already present
> in version 4.05 (and probably much older, this is just one random
> old release I have around). It is really surprising how it was not
> noticed for many years.
> 
> On Friday 03 February 2006 10:47, Istvan Varga wrote:
> 
> 
>>On Friday 03 February 2006 07:47, Steven Yi wrote:
>>
>>
>>>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.
>>
>>Actually, the parser looks for a space or a tab to terminate an
>>if or elseif keyword, and if it is not there, the 'if' is then
>>interpreted as a function (if()) and confuses the code.
>>I will try fixing this later today.