Re: [Csnd-dev] Possible bug in init time array output UDO
Hlöðver Sigurðsson <[email protected]> Mon, 8 Dec 2025 08:45:10 +0200
| Newsgroups | gmane.comp.audio.csound.devel |
|---|---|
| Message-ID | <CAB8vR8+ksoS=-wOkyNOFsBEzSPGa5J4O7FO_F5wyA1-VbybGrg@mail.gmail.com> |
this could have (maybe) been a change I made that broke this. I'll take a look at this today, and prepare a test-case to catch this. On Mon, 8 Dec 2025 at 01:33, Richard Knight <[email protected]> wrote: > Hi > I'm using the latest commit and noticed that a UDO defined like the > following causes a segfault with "free(): invalid pointer" > > opcode test1, i[]i, 0 > iout[] fillarray 1, 2, 3 > inum = 123 > xout iout, inum > endop > > instr 1 > iout[], inum test1 > endin > > > > This only seems to happen if a primitive follows an array (i[]i and > ii[]i do not work, but ii[] and i[]i[] work OK), and only occurs with > init parameters, the same at k-rate works OK. > Shall I raise this as a bug on github? > > thanks > RK >