Csound Csound-dev Csound-tekno Search About

[Cs-dev] quick chnget (string) question..

Date2014-04-02 14:41
FromRory Walsh
Subject[Cs-dev] quick chnget (string) question..
This code will seg-fault if I start instr1 after instr2. I would have
assumed this is legal? The backtrace is given below.


chn_S "testChan", 3

instr 1
k1 metro 1
krand randh 10, 1
if k1 ==1 then
   Sname sprintfk "chane%d", krand
   chnset Sname, "testChan"
endif
endin

instr 2
Sname chnget "testChan"
endin


Program received signal SIGSEGV, Segmentation fault.
__strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:163
163    ../sysdeps/x86_64/multiarch/strcmp-sse42.S: No such file or directory.
(gdb) bt
#0  __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:163
#1  0x00007ffff793b598 in chnget_opcode_perf_S (csound=0x604010, p=0x773f28)
    at /home/rory/sourcecode/csound/OOps/bus.c:777
#2  0x00007ffff7a601a1 in kperf (csound=0x604010)
    at /home/rory/sourcecode/csound/Top/csound.c:1528
#3  0x00007ffff7a60bb0 in csoundPerform (csound=0x604010)
    at /home/rory/sourcecode/csound/Top/csound.c:1737
#4  0x0000000000401595 in main (argc=2, argv=0x7fffffffe138)
    at /home/rory/sourcecode/csound/frontends/csound/csound_main.c:135
(gdb)

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-02 14:59
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick chnget (string) question..
fixed in GIT.
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 2 Apr 2014, at 14:41, Rory Walsh  wrote:

> This code will seg-fault if I start instr1 after instr2. I would have
> assumed this is legal? The backtrace is given below.
> 
> 
> chn_S "testChan", 3
> 
> instr 1
> k1 metro 1
> krand randh 10, 1
> if k1 ==1 then
>   Sname sprintfk "chane%d", krand
>   chnset Sname, "testChan"
> endif
> endin
> 
> instr 2
> Sname chnget "testChan"
> endin
> 
> 
> Program received signal SIGSEGV, Segmentation fault.
> __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:163
> 163    ../sysdeps/x86_64/multiarch/strcmp-sse42.S: No such file or directory.
> (gdb) bt
> #0  __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:163
> #1  0x00007ffff793b598 in chnget_opcode_perf_S (csound=0x604010, p=0x773f28)
>    at /home/rory/sourcecode/csound/OOps/bus.c:777
> #2  0x00007ffff7a601a1 in kperf (csound=0x604010)
>    at /home/rory/sourcecode/csound/Top/csound.c:1528
> #3  0x00007ffff7a60bb0 in csoundPerform (csound=0x604010)
>    at /home/rory/sourcecode/csound/Top/csound.c:1737
> #4  0x0000000000401595 in main (argc=2, argv=0x7fffffffe138)
>    at /home/rory/sourcecode/csound/frontends/csound/csound_main.c:135
> (gdb)
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-02 15:15
FromRory Walsh
SubjectRe: [Cs-dev] quick chnget (string) question..
Thanks Victor.

On 2 April 2014 14:59, Victor Lazzarini  wrote:
> fixed in GIT.
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 2 Apr 2014, at 14:41, Rory Walsh  wrote:
>
>> This code will seg-fault if I start instr1 after instr2. I would have
>> assumed this is legal? The backtrace is given below.
>>
>>
>> chn_S "testChan", 3
>>
>> instr 1
>> k1 metro 1
>> krand randh 10, 1
>> if k1 ==1 then
>>   Sname sprintfk "chane%d", krand
>>   chnset Sname, "testChan"
>> endif
>> endin
>>
>> instr 2
>> Sname chnget "testChan"
>> endin
>>
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:163
>> 163    ../sysdeps/x86_64/multiarch/strcmp-sse42.S: No such file or directory.
>> (gdb) bt
>> #0  __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:163
>> #1  0x00007ffff793b598 in chnget_opcode_perf_S (csound=0x604010, p=0x773f28)
>>    at /home/rory/sourcecode/csound/OOps/bus.c:777
>> #2  0x00007ffff7a601a1 in kperf (csound=0x604010)
>>    at /home/rory/sourcecode/csound/Top/csound.c:1528
>> #3  0x00007ffff7a60bb0 in csoundPerform (csound=0x604010)
>>    at /home/rory/sourcecode/csound/Top/csound.c:1737
>> #4  0x0000000000401595 in main (argc=2, argv=0x7fffffffe138)
>>    at /home/rory/sourcecode/csound/frontends/csound/csound_main.c:135
>> (gdb)
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net