Csound Csound-dev Csound-tekno Search About

[Cs-dev] problem with arrays..

Date2014-05-01 22:16
FromRory Walsh
Subject[Cs-dev] problem with arrays..
The following code causes a segfault for me.

instr 1
KCheckValues[] init 16
kCheckValues[0] chnget "check1box1"
endin


Here's the backtrace:

#0  0x00007ffff7b389ad in create_array_arg_type (csound=0x604010,
    arrayVar=0x78f140)
    at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:182
#1  0x00007ffff7b398b5 in get_arg_type2 (csound=0x604010, tree=0x775b60,
    typeTable=0x7109f0)
    at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:478
#2  0x00007ffff7b3abab in get_arg_string_from_tree (csound=0x604010,
    tree=0x775b60, typeTable=0x7109f0)
    at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1007
#3  0x00007ffff7b3b6a7 in verify_opcode (csound=0x604010, root=0x775d00,
    typeTable=0x7109f0)
    at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1324
#4  0x00007ffff7b3c0e3 in verify_tree (csound=0x604010, root=0x775d00,
    typeTable=0x7109f0)
    at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1591
#5  0x00007ffff7b3bed1 in verify_tree (csound=0x604010, root=0x70fb50,
    typeTable=0x7109f0)
    at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1522
#6  0x00007ffff7b48d1a in csoundParseOrc (csound=0x604010, str=0x0)
    at /home/rory/sourcecode/csound/Engine/new_orc_parser.c:240
#7  0x00007ffff7b46fbd in csoundCompileOrc (csound=0x604010, str=0x0)
    at /home/rory/sourcecode/csound/Engine/csound_orc_compile.c:1680
#8  0x00007ffff7a648c3 in csoundCompileArgs (csound=0x604010, argc=1,
---Type  to continue, or q  to quit---

I haven't pulled in a few days because I got caught with an error on
Windows when trying to build with yesterday's git.

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-05-01 22:22
FromRory Walsh
SubjectRe: [Cs-dev] problem with arrays..
Please pardon that last message, I've been staring at the screen too long :)

On 1 May 2014 23:16, Rory Walsh  wrote:
> The following code causes a segfault for me.
>
> instr 1
> KCheckValues[] init 16
> kCheckValues[0] chnget "check1box1"
> endin
>
>
> Here's the backtrace:
>
> #0  0x00007ffff7b389ad in create_array_arg_type (csound=0x604010,
>     arrayVar=0x78f140)
>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:182
> #1  0x00007ffff7b398b5 in get_arg_type2 (csound=0x604010, tree=0x775b60,
>     typeTable=0x7109f0)
>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:478
> #2  0x00007ffff7b3abab in get_arg_string_from_tree (csound=0x604010,
>     tree=0x775b60, typeTable=0x7109f0)
>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1007
> #3  0x00007ffff7b3b6a7 in verify_opcode (csound=0x604010, root=0x775d00,
>     typeTable=0x7109f0)
>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1324
> #4  0x00007ffff7b3c0e3 in verify_tree (csound=0x604010, root=0x775d00,
>     typeTable=0x7109f0)
>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1591
> #5  0x00007ffff7b3bed1 in verify_tree (csound=0x604010, root=0x70fb50,
>     typeTable=0x7109f0)
>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1522
> #6  0x00007ffff7b48d1a in csoundParseOrc (csound=0x604010, str=0x0)
>     at /home/rory/sourcecode/csound/Engine/new_orc_parser.c:240
> #7  0x00007ffff7b46fbd in csoundCompileOrc (csound=0x604010, str=0x0)
>     at /home/rory/sourcecode/csound/Engine/csound_orc_compile.c:1680
> #8  0x00007ffff7a648c3 in csoundCompileArgs (csound=0x604010, argc=1,
> ---Type  to continue, or q  to quit---
>
> I haven't pulled in a few days because I got caught with an error on
> Windows when trying to build with yesterday's git.

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-05-01 22:29
FromSteven Yi
SubjectRe: [Cs-dev] problem with arrays..
Well, the capital K caused an error which makes sense, but crashing is
a bad thing which is something that should be fixed.  Could you file
an issue on github for that?

On Thu, May 1, 2014 at 11:22 PM, Rory Walsh  wrote:
> Please pardon that last message, I've been staring at the screen too long :)
>
> On 1 May 2014 23:16, Rory Walsh  wrote:
>> The following code causes a segfault for me.
>>
>> instr 1
>> KCheckValues[] init 16
>> kCheckValues[0] chnget "check1box1"
>> endin
>>
>>
>> Here's the backtrace:
>>
>> #0  0x00007ffff7b389ad in create_array_arg_type (csound=0x604010,
>>     arrayVar=0x78f140)
>>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:182
>> #1  0x00007ffff7b398b5 in get_arg_type2 (csound=0x604010, tree=0x775b60,
>>     typeTable=0x7109f0)
>>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:478
>> #2  0x00007ffff7b3abab in get_arg_string_from_tree (csound=0x604010,
>>     tree=0x775b60, typeTable=0x7109f0)
>>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1007
>> #3  0x00007ffff7b3b6a7 in verify_opcode (csound=0x604010, root=0x775d00,
>>     typeTable=0x7109f0)
>>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1324
>> #4  0x00007ffff7b3c0e3 in verify_tree (csound=0x604010, root=0x775d00,
>>     typeTable=0x7109f0)
>>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1591
>> #5  0x00007ffff7b3bed1 in verify_tree (csound=0x604010, root=0x70fb50,
>>     typeTable=0x7109f0)
>>     at /home/rory/sourcecode/csound/Engine/csound_orc_semantics.c:1522
>> #6  0x00007ffff7b48d1a in csoundParseOrc (csound=0x604010, str=0x0)
>>     at /home/rory/sourcecode/csound/Engine/new_orc_parser.c:240
>> #7  0x00007ffff7b46fbd in csoundCompileOrc (csound=0x604010, str=0x0)
>>     at /home/rory/sourcecode/csound/Engine/csound_orc_compile.c:1680
>> #8  0x00007ffff7a648c3 in csoundCompileArgs (csound=0x604010, argc=1,
>> ---Type  to continue, or q  to quit---
>>
>> I haven't pulled in a few days because I got caught with an error on
>> Windows when trying to build with yesterday's git.
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net