[Csnd] slicearray problem?
Date | 2018-04-07 15:43 |
From | Dave Seidel |
Subject | [Csnd] slicearray problem? |
Hi all,
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
I am having an issue with slicearry, and have boiled it down to the following code. Unless I comment out the call to slicearray, the program terminates with "csound command: Segmentation fault", and never even prints the usual message about OSC initialization. Am I doing something wrong? Thanks, Dave <CsoundSynthesizer> <CsOptions> -m7 </CsOptions> <CsInstruments> sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 giosc OSCinit 7110 instr 1 kArr[] init 25 kSlice[] init 5 kk = OSClisten(giosc, "/foo", "A", kArr) if (kk == 0) then goto DONE endif kSlice = slicearray(kArr, 0, 4) DONE: endin </CsInstruments> <CsScore> </CsScore> </CsoundSynthesizer> |
Date | 2018-04-07 16:54 |
From | jpff |
Subject | Re: [Csnd] slicearray problem? |
It is crashing earlier than calling slicearray, actually in the semantic pass after the parse. For Steven!! (gdb) where #0 0x00007ffff7b1e9f9 in create_array_arg_type (csound=csound@entry=0x6044a0, arrayVar=0x80e220) at /home/jpff/csound6/Engine/csound_orc_semantics.c:188 #1 0x00007ffff7b217e5 in get_arg_type2 (csound=csound@entry=0x6044a0, tree=0x7f5580, typeTable=typeTable@entry=0x786860) at /home/jpff/csound6/Engine/csound_orc_semantics.c:554 #2 0x00007ffff7b262bc in collapse_last_assigment (typeTable=0x786860, anchor=0x80df70, csound=0x6044a0) at /home/jpff/csound6/Engine/csound_orc_expressions.c:893 #3 expand_statement (csound=csound@entry=0x6044a0, current=current@entry=0x7f5850, typeTable=typeTable@entry=0x786860) at /home/jpff/csound6/Engine/csound_orc_expressions.c:1074 #4 0x00007ffff7b238a4 in verify_tree (csound=csound@entry=0x6044a0, root= |
Date | 2018-04-07 17:03 |
From | jpff |
Subject | Re: [Csnd] slicearray problem? |
More investigation; if you replace the functional form by the old style kSlice slicearray kArr, 0, 4 it does not crash. A problem in the xpansion of assignments ==John On Sat, 7 Apr 2018, Dave Seidel wrote: > Hi all, > I am having an issue with slicearry, and have boiled it down to the following > code. Unless I comment out the call to slicearray, the program terminates with > "csound command: Segmentation fault", and never even prints the usual message > about OSC initialization. Am I doing something wrong? > > Thanks, > Dave > > |
Date | 2018-04-07 19:37 |
From | Dave Seidel |
Subject | Re: [Csnd] slicearray problem? |
Thanks John, will try that when I get back home this evening. On Sat, Apr 7, 2018, 12:04 PM jpff <jpff@codemist.co.uk> wrote: More investigation; if you replace the functional form by the old style |
Date | 2018-04-07 20:44 |
From | John ff |
Subject | Re: [Csnd] slicearray problem? |
Yes, but there is still a bug to fix.
Sent from Blue
On 7 Apr 2018, at 19:38, Dave Seidel <dave.seidel@GMAIL.COM> wrote:
|
Date | 2018-04-07 22:54 |
From | Dave Seidel |
Subject | Re: [Csnd] slicearray problem? |
Looking forward to the fix, but in the meantime I can confirm that the workaround works both in my example and in the actual program. On Sat, Apr 7, 2018 at 3:44 PM, John ff <jpff@codemist.co.uk> wrote:
|
Date | 2018-04-07 23:52 |
From | Dave Seidel |
Subject | Re: [Csnd] slicearray problem? |
I will enter a ticket. On Sat, Apr 7, 2018 at 5:54 PM, Dave Seidel <dave.seidel@gmail.com> wrote:
|