Csound Csound-dev Csound-tekno Search About

[Cs-dev] setksmps problem

Date2014-12-10 19:18
FromRory Walsh
Subject[Cs-dev] setksmps problem
I just came across a rather serious issue. I can no longer seem to use
any UDOs that calls setksmps. It segfaults and bombs out. Try teh
following:



-+rtaudio=jack -odac -b4096


sr     =     44100
ksmps     =     32
nchnls     =     2
0dbfs    =    1

 opcode SimpleTest, k, a
     aInput xin
     setksmps 1
 endop


instr 1
a1 init 0
k1 SimpleTest a1
endin



i 1 0 10



Here is the backtrace:

#0  0x00007ffff79169a4 in myflt_copy_value (csound=0x604010, dest=0x7e4b80,
    src=0x0)
    at /home/rory/sourcecode/cabbageaudio/csound/Engine/csound_standard_types.c:35
#1  0x00007ffff78fe6ca in useropcd1 (csound=0x604010, p=0x7e4d58)
    at /home/rory/sourcecode/cabbageaudio/csound/Engine/insert.c:1910
#2  0x00007ffff7a5c5f7 in kperf_nodebug (csound=0x604010)
    at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:1533
#3  0x00007ffff7a5dd4f in csoundPerform (csound=0x604010)
    at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:2011
#4  0x00000000004017c4 in main (argc=2, argv=0x7fffffffdfa8)
    at /home/rory/sourcecode/cabbageaudio/csound/frontends/csound/csound_main.c:318

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 19:27
Fromjpff
SubjectRe: [Cs-dev] setksmps problem
Clearly copying something from nowhere (src=0x0)
Not code I know much about -- think you need Steven
==John


On Wed, 10 Dec 2014, Rory Walsh wrote:

> I just came across a rather serious issue. I can no longer seem to use
> any UDOs that calls setksmps. It segfaults and bombs out. Try teh
> following:
>
> 
> 
> -+rtaudio=jack -odac -b4096
> 
> 
> sr     =     44100
> ksmps     =     32
> nchnls     =     2
> 0dbfs    =    1
>
> opcode SimpleTest, k, a
>     aInput xin
>     setksmps 1
> endop
>
>
> instr 1
> a1 init 0
> k1 SimpleTest a1
> endin
>
> 
> 
> i 1 0 10
> 
> 
>
> Here is the backtrace:
>
> #0  0x00007ffff79169a4 in myflt_copy_value (csound=0x604010, dest=0x7e4b80,
>    src=0x0)
>    at /home/rory/sourcecode/cabbageaudio/csound/Engine/csound_standard_types.c:35
> #1  0x00007ffff78fe6ca in useropcd1 (csound=0x604010, p=0x7e4d58)
>    at /home/rory/sourcecode/cabbageaudio/csound/Engine/insert.c:1910
> #2  0x00007ffff7a5c5f7 in kperf_nodebug (csound=0x604010)
>    at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:1533
> #3  0x00007ffff7a5dd4f in csoundPerform (csound=0x604010)
>    at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:2011
> #4  0x00000000004017c4 in main (argc=2, argv=0x7fffffffdfa8)
>    at /home/rory/sourcecode/cabbageaudio/csound/frontends/csound/csound_main.c:318
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 19:37
Fromjpff
SubjectRe: [Cs-dev] setksmps problem
PS setksmps 16 also crashes


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 19:38
FromVictor Lazzarini
SubjectRe: [Cs-dev] setksmps problem
setksmps generally needs to be the first line in the UDO. Does that make any difference?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 10 Dec 2014, at 19:18, Rory Walsh  wrote:
> 
> I just came across a rather serious issue. I can no longer seem to use
> any UDOs that calls setksmps. It segfaults and bombs out. Try teh
> following:
> 
> 
> 
> -+rtaudio=jack -odac -b4096
> 
> 
> sr     =     44100
> ksmps     =     32
> nchnls     =     2
> 0dbfs    =    1
> 
> opcode SimpleTest, k, a
>     aInput xin
>     setksmps 1
> endop
> 
> 
> instr 1
> a1 init 0
> k1 SimpleTest a1
> endin
> 
> 
> 
> i 1 0 10
> 
> 
> 
> Here is the backtrace:
> 
> #0  0x00007ffff79169a4 in myflt_copy_value (csound=0x604010, dest=0x7e4b80,
>    src=0x0)
>    at /home/rory/sourcecode/cabbageaudio/csound/Engine/csound_standard_types.c:35
> #1  0x00007ffff78fe6ca in useropcd1 (csound=0x604010, p=0x7e4d58)
>    at /home/rory/sourcecode/cabbageaudio/csound/Engine/insert.c:1910
> #2  0x00007ffff7a5c5f7 in kperf_nodebug (csound=0x604010)
>    at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:1533
> #3  0x00007ffff7a5dd4f in csoundPerform (csound=0x604010)
>    at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:2011
> #4  0x00000000004017c4 in main (argc=2, argv=0x7fffffffdfa8)
>    at /home/rory/sourcecode/cabbageaudio/csound/frontends/csound/csound_main.c:318
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 19:45
Fromjpff
SubjectRe: [Cs-dev] setksmps problem
still crashes for me; lookslike setksmps


On Wed, 10 Dec 2014, Victor Lazzarini wrote:

> setksmps generally needs to be the first line in the UDO. Does that make any difference?
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 10 Dec 2014, at 19:18, Rory Walsh  wrote:
>>
>> I just came across a rather serious issue. I can no longer seem to use
>> any UDOs that calls setksmps. It segfaults and bombs out. Try teh
>> following:
>>
>> 
>> 
>> -+rtaudio=jack -odac -b4096
>> 
>> 
>> sr     =     44100
>> ksmps     =     32
>> nchnls     =     2
>> 0dbfs    =    1
>>
>> opcode SimpleTest, k, a
>>     aInput xin
>>     setksmps 1
>> endop
>>
>>
>> instr 1
>> a1 init 0
>> k1 SimpleTest a1
>> endin
>>
>> 
>> 
>> i 1 0 10
>> 
>> 
>>
>> Here is the backtrace:
>>
>> #0  0x00007ffff79169a4 in myflt_copy_value (csound=0x604010, dest=0x7e4b80,
>>    src=0x0)
>>    at /home/rory/sourcecode/cabbageaudio/csound/Engine/csound_standard_types.c:35
>> #1  0x00007ffff78fe6ca in useropcd1 (csound=0x604010, p=0x7e4d58)
>>    at /home/rory/sourcecode/cabbageaudio/csound/Engine/insert.c:1910
>> #2  0x00007ffff7a5c5f7 in kperf_nodebug (csound=0x604010)
>>    at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:1533
>> #3  0x00007ffff7a5dd4f in csoundPerform (csound=0x604010)
>>    at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:2011
>> #4  0x00000000004017c4 in main (argc=2, argv=0x7fffffffdfa8)
>>    at /home/rory/sourcecode/cabbageaudio/csound/frontends/csound/csound_main.c:318
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 19:50
FromVictor Lazzarini
SubjectRe: [Cs-dev] setksmps problem
Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 10 Dec 2014, at 19:45, jpff  wrote:
> 
> still crashes for me; lookslike setksmps
> 
> 
>> On Wed, 10 Dec 2014, Victor Lazzarini wrote:
>> 
>> setksmps generally needs to be the first line in the UDO. Does that make any difference?
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>> On 10 Dec 2014, at 19:18, Rory Walsh  wrote:
>>> 
>>> I just came across a rather serious issue. I can no longer seem to use
>>> any UDOs that calls setksmps. It segfaults and bombs out. Try teh
>>> following:
>>> 
>>> 
>>> 
>>> -+rtaudio=jack -odac -b4096
>>> 
>>> 
>>> sr     =     44100
>>> ksmps     =     32
>>> nchnls     =     2
>>> 0dbfs    =    1
>>> 
>>> opcode SimpleTest, k, a
>>>    aInput xin
>>>    setksmps 1
>>> endop
>>> 
>>> 
>>> instr 1
>>> a1 init 0
>>> k1 SimpleTest a1
>>> endin
>>> 
>>> 
>>> 
>>> i 1 0 10
>>> 
>>> 
>>> 
>>> Here is the backtrace:
>>> 
>>> #0  0x00007ffff79169a4 in myflt_copy_value (csound=0x604010, dest=0x7e4b80,
>>>   src=0x0)
>>>   at /home/rory/sourcecode/cabbageaudio/csound/Engine/csound_standard_types.c:35
>>> #1  0x00007ffff78fe6ca in useropcd1 (csound=0x604010, p=0x7e4d58)
>>>   at /home/rory/sourcecode/cabbageaudio/csound/Engine/insert.c:1910
>>> #2  0x00007ffff7a5c5f7 in kperf_nodebug (csound=0x604010)
>>>   at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:1533
>>> #3  0x00007ffff7a5dd4f in csoundPerform (csound=0x604010)
>>>   at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:2011
>>> #4  0x00000000004017c4 in main (argc=2, argv=0x7fffffffdfa8)
>>>   at /home/rory/sourcecode/cabbageaudio/csound/frontends/csound/csound_main.c:318
>>> 
>>> ------------------------------------------------------------------------------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> Get technology previously reserved for billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 19:51
FromSteven Yi
SubjectRe: [Cs-dev] setksmps problem
I've reproduced the crash here.  I thought this worked too, not sure
what's going on. I'll create a hotfix branch with git-flow as 6.04.1.
It will be branched from master so it won't have any newer
in-development changes from the dev branch.

On Wed, Dec 10, 2014 at 2:50 PM, Victor Lazzarini
 wrote:
> Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 10 Dec 2014, at 19:45, jpff  wrote:
>>
>> still crashes for me; lookslike setksmps
>>
>>
>>> On Wed, 10 Dec 2014, Victor Lazzarini wrote:
>>>
>>> setksmps generally needs to be the first line in the UDO. Does that make any difference?
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>>> On 10 Dec 2014, at 19:18, Rory Walsh  wrote:
>>>>
>>>> I just came across a rather serious issue. I can no longer seem to use
>>>> any UDOs that calls setksmps. It segfaults and bombs out. Try teh
>>>> following:
>>>>
>>>> 
>>>> 
>>>> -+rtaudio=jack -odac -b4096
>>>> 
>>>> 
>>>> sr     =     44100
>>>> ksmps     =     32
>>>> nchnls     =     2
>>>> 0dbfs    =    1
>>>>
>>>> opcode SimpleTest, k, a
>>>>    aInput xin
>>>>    setksmps 1
>>>> endop
>>>>
>>>>
>>>> instr 1
>>>> a1 init 0
>>>> k1 SimpleTest a1
>>>> endin
>>>>
>>>> 
>>>> 
>>>> i 1 0 10
>>>> 
>>>> 
>>>>
>>>> Here is the backtrace:
>>>>
>>>> #0  0x00007ffff79169a4 in myflt_copy_value (csound=0x604010, dest=0x7e4b80,
>>>>   src=0x0)
>>>>   at /home/rory/sourcecode/cabbageaudio/csound/Engine/csound_standard_types.c:35
>>>> #1  0x00007ffff78fe6ca in useropcd1 (csound=0x604010, p=0x7e4d58)
>>>>   at /home/rory/sourcecode/cabbageaudio/csound/Engine/insert.c:1910
>>>> #2  0x00007ffff7a5c5f7 in kperf_nodebug (csound=0x604010)
>>>>   at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:1533
>>>> #3  0x00007ffff7a5dd4f in csoundPerform (csound=0x604010)
>>>>   at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:2011
>>>> #4  0x00000000004017c4 in main (argc=2, argv=0x7fffffffdfa8)
>>>>   at /home/rory/sourcecode/cabbageaudio/csound/frontends/csound/csound_main.c:318
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>>> Get technology previously reserved for billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> Get technology previously reserved for billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 19:53
FromSteven Yi
SubjectRe: [Cs-dev] setksmps problem
I've created hotfix/6.04.1 branch and pushed it to github.  You can
check it out by doing:

git pull
git checkout hotfix/6.04.1

I'll take a look to see what's going on.

On Wed, Dec 10, 2014 at 2:51 PM, Steven Yi  wrote:
> I've reproduced the crash here.  I thought this worked too, not sure
> what's going on. I'll create a hotfix branch with git-flow as 6.04.1.
> It will be branched from master so it won't have any newer
> in-development changes from the dev branch.
>
> On Wed, Dec 10, 2014 at 2:50 PM, Victor Lazzarini
>  wrote:
>> Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 10 Dec 2014, at 19:45, jpff  wrote:
>>>
>>> still crashes for me; lookslike setksmps
>>>
>>>
>>>> On Wed, 10 Dec 2014, Victor Lazzarini wrote:
>>>>
>>>> setksmps generally needs to be the first line in the UDO. Does that make any difference?
>>>>
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>>
>>>>> On 10 Dec 2014, at 19:18, Rory Walsh  wrote:
>>>>>
>>>>> I just came across a rather serious issue. I can no longer seem to use
>>>>> any UDOs that calls setksmps. It segfaults and bombs out. Try teh
>>>>> following:
>>>>>
>>>>> 
>>>>> 
>>>>> -+rtaudio=jack -odac -b4096
>>>>> 
>>>>> 
>>>>> sr     =     44100
>>>>> ksmps     =     32
>>>>> nchnls     =     2
>>>>> 0dbfs    =    1
>>>>>
>>>>> opcode SimpleTest, k, a
>>>>>    aInput xin
>>>>>    setksmps 1
>>>>> endop
>>>>>
>>>>>
>>>>> instr 1
>>>>> a1 init 0
>>>>> k1 SimpleTest a1
>>>>> endin
>>>>>
>>>>> 
>>>>> 
>>>>> i 1 0 10
>>>>> 
>>>>> 
>>>>>
>>>>> Here is the backtrace:
>>>>>
>>>>> #0  0x00007ffff79169a4 in myflt_copy_value (csound=0x604010, dest=0x7e4b80,
>>>>>   src=0x0)
>>>>>   at /home/rory/sourcecode/cabbageaudio/csound/Engine/csound_standard_types.c:35
>>>>> #1  0x00007ffff78fe6ca in useropcd1 (csound=0x604010, p=0x7e4d58)
>>>>>   at /home/rory/sourcecode/cabbageaudio/csound/Engine/insert.c:1910
>>>>> #2  0x00007ffff7a5c5f7 in kperf_nodebug (csound=0x604010)
>>>>>   at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:1533
>>>>> #3  0x00007ffff7a5dd4f in csoundPerform (csound=0x604010)
>>>>>   at /home/rory/sourcecode/cabbageaudio/csound/Top/csound.c:2011
>>>>> #4  0x00000000004017c4 in main (argc=2, argv=0x7fffffffdfa8)
>>>>>   at /home/rory/sourcecode/cabbageaudio/csound/frontends/csound/csound_main.c:318
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>>>> Get technology previously reserved for billion-dollar corporations, FREE
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>>> Get technology previously reserved for billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> Get technology previously reserved for billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 19:56
Fromjpff
SubjectRe: [Cs-dev] setksmps problem
There is a test in tests/commandline; the test there passes all cases

Also insoak test but that was not run

On Wed, 10 Dec 2014, Victor Lazzarini wrote:

> Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 10 Dec 2014, at 19:45, jpff  wrote:
>>
>> still crashes for me; lookslike setksmps
>>
>>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 20:02
FromSteven Yi
SubjectRe: [Cs-dev] setksmps problem
I found a clue: the example has only an xin but no xout, though an out
was specified in the UDO.  If you add an "xout 0" it works. That would
explain why the current csound works with the examples and with my
current music projects.  Still investigating the root cause.

On Wed, Dec 10, 2014 at 2:56 PM, jpff  wrote:
> There is a test in tests/commandline; the test there passes all cases
>
> Also insoak test but that was not run
>
> On Wed, 10 Dec 2014, Victor Lazzarini wrote:
>
>> Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 10 Dec 2014, at 19:45, jpff  wrote:
>>>
>>> still crashes for me; lookslike setksmps
>>>
>>>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 20:02
Fromjpff
SubjectRe: [Cs-dev] setksmps problem
another data pooint.  AAdding a linexout k(aInput)]
and it works.  Looks as if some variable is not being created.

==John


On Wed, 10 Dec 2014, jpff wrote:

> There is a test in tests/commandline; the test there passes all cases
>
> Also insoak test but that was not run
>
> On Wed, 10 Dec 2014, Victor Lazzarini wrote:
>
>> Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 10 Dec 2014, at 19:45, jpff  wrote:
>>>
>>> still crashes for me; lookslike setksmps
>>>
>>>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 20:09
FromSteven Yi
SubjectRe: [Cs-dev] setksmps problem
So xoutset in insert.c is what sets up the pointers for where to copy
from and to for output args.  Since xoutset was never called, the
from-pointers are in the initialized state of NULL.  So when the code
in useropcd1 that copies values tries to copy values from the
from-pointer, we get the segfault.

We should check if the from or to is not NULL and if so, either skip
it or report an error.  I'm inclined to report an error at that point
as the user has essentially written code that isn't really doing what
the arg types say it is doing. I'll experiment with that right now to
see how that works.


On Wed, Dec 10, 2014 at 3:02 PM, jpff  wrote:
> another data pooint.  AAdding a linexout k(aInput)]
> and it works.  Looks as if some variable is not being created.
>
> ==John
>
>
> On Wed, 10 Dec 2014, jpff wrote:
>
>> There is a test in tests/commandline; the test there passes all cases
>>
>> Also insoak test but that was not run
>>
>> On Wed, 10 Dec 2014, Victor Lazzarini wrote:
>>
>>> Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>>> On 10 Dec 2014, at 19:45, jpff  wrote:
>>>>
>>>> still crashes for me; lookslike setksmps
>>>>
>>>>
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 20:12
FromVictor Lazzarini
SubjectRe: [Cs-dev] setksmps problem
It looks like user error to me, so do we need to build all the packages again to fix this, or just postpone it to the next release?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 10 Dec 2014, at 20:09, Steven Yi  wrote:
> 
> So xoutset in insert.c is what sets up the pointers for where to copy
> from and to for output args.  Since xoutset was never called, the
> from-pointers are in the initialized state of NULL.  So when the code
> in useropcd1 that copies values tries to copy values from the
> from-pointer, we get the segfault.
> 
> We should check if the from or to is not NULL and if so, either skip
> it or report an error.  I'm inclined to report an error at that point
> as the user has essentially written code that isn't really doing what
> the arg types say it is doing. I'll experiment with that right now to
> see how that works.
> 
> 
>> On Wed, Dec 10, 2014 at 3:02 PM, jpff  wrote:
>> another data pooint.  AAdding a linexout k(aInput)]
>> and it works.  Looks as if some variable is not being created.
>> 
>> ==John
>> 
>> 
>>> On Wed, 10 Dec 2014, jpff wrote:
>>> 
>>> There is a test in tests/commandline; the test there passes all cases
>>> 
>>> Also insoak test but that was not run
>>> 
>>>> On Wed, 10 Dec 2014, Victor Lazzarini wrote:
>>>> 
>>>> Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?
>>>> 
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>> 
>>>>> On 10 Dec 2014, at 19:45, jpff  wrote:
>>>>> 
>>>>> still crashes for me; lookslike setksmps
>>> 
>>> ------------------------------------------------------------------------------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> Get technology previously reserved for billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 20:21
Fromjpff
SubjectRe: [Cs-dev] setksmps problem
I tink it is user error; we fix/check for next release and in develop 
branch
==John

On Wed, 10 Dec 2014, Victor Lazzarini wrote:

> It looks like user error to me, so do we need to build all the packages again to fix this, or just postpone it to the next release?
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 10 Dec 2014, at 20:09, Steven Yi  wrote:
>>
>> So xoutset in insert.c is what sets up the pointers for where to copy
>> from and to for output args.  Since xoutset was never called, the
>> from-pointers are in the initialized state of NULL.  So when the code
>> in useropcd1 that copies values tries to copy values from the
>> from-pointer, we get the segfault.
>>
>> We should check if the from or to is not NULL and if so, either skip
>> it or report an error.  I'm inclined to report an error at that point
>> as the user has essentially written code that isn't really doing what
>> the arg types say it is doing. I'll experiment with that right now to
>> see how that works.
>>
>>
>>> On Wed, Dec 10, 2014 at 3:02 PM, jpff  wrote:
>>> another data pooint.  AAdding a linexout k(aInput)]
>>> and it works.  Looks as if some variable is not being created.
>>>
>>> ==John
>>>
>>>
>>>> On Wed, 10 Dec 2014, jpff wrote:
>>>>
>>>> There is a test in tests/commandline; the test there passes all cases
>>>>
>>>> Also insoak test but that was not run
>>>>
>>>>> On Wed, 10 Dec 2014, Victor Lazzarini wrote:
>>>>>
>>>>> Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?
>>>>>
>>>>> Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>> Maynooth University
>>>>> Ireland
>>>>>
>>>>>> On 10 Dec 2014, at 19:45, jpff  wrote:
>>>>>>
>>>>>> still crashes for me; lookslike setksmps
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>>> Get technology previously reserved for billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> Get technology previously reserved for billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 20:22
FromSteven Yi
SubjectRe: [Cs-dev] setksmps problem
I was implementing this with a check on each in/out, but then realized
that's a bit much of extra work on each pass.  It seems better to do a
one-time check that there does indeed exist an xin and xout if
something was specified, but then again, we also have the ticket to do
arg type checking on xin/xout.  Ideally both would get addressed at
the same time. The current behavior is definitely not good but I can
live with this for now.

On Wed, Dec 10, 2014 at 3:12 PM, Victor Lazzarini
 wrote:
> It looks like user error to me, so do we need to build all the packages again to fix this, or just postpone it to the next release?
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 10 Dec 2014, at 20:09, Steven Yi  wrote:
>>
>> So xoutset in insert.c is what sets up the pointers for where to copy
>> from and to for output args.  Since xoutset was never called, the
>> from-pointers are in the initialized state of NULL.  So when the code
>> in useropcd1 that copies values tries to copy values from the
>> from-pointer, we get the segfault.
>>
>> We should check if the from or to is not NULL and if so, either skip
>> it or report an error.  I'm inclined to report an error at that point
>> as the user has essentially written code that isn't really doing what
>> the arg types say it is doing. I'll experiment with that right now to
>> see how that works.
>>
>>
>>> On Wed, Dec 10, 2014 at 3:02 PM, jpff  wrote:
>>> another data pooint.  AAdding a linexout k(aInput)]
>>> and it works.  Looks as if some variable is not being created.
>>>
>>> ==John
>>>
>>>
>>>> On Wed, 10 Dec 2014, jpff wrote:
>>>>
>>>> There is a test in tests/commandline; the test there passes all cases
>>>>
>>>> Also insoak test but that was not run
>>>>
>>>>> On Wed, 10 Dec 2014, Victor Lazzarini wrote:
>>>>>
>>>>> Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?
>>>>>
>>>>> Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>> Maynooth University
>>>>> Ireland
>>>>>
>>>>>> On 10 Dec 2014, at 19:45, jpff  wrote:
>>>>>>
>>>>>> still crashes for me; lookslike setksmps
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>>> Get technology previously reserved for billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> Get technology previously reserved for billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 20:24
FromSteven Yi
SubjectRe: [Cs-dev] setksmps problem
Okay, I've deleted the hotfix/6.04.1 branch from github.  Will plan to
look at it all and put into develop.

On Wed, Dec 10, 2014 at 3:22 PM, Steven Yi  wrote:
> I was implementing this with a check on each in/out, but then realized
> that's a bit much of extra work on each pass.  It seems better to do a
> one-time check that there does indeed exist an xin and xout if
> something was specified, but then again, we also have the ticket to do
> arg type checking on xin/xout.  Ideally both would get addressed at
> the same time. The current behavior is definitely not good but I can
> live with this for now.
>
> On Wed, Dec 10, 2014 at 3:12 PM, Victor Lazzarini
>  wrote:
>> It looks like user error to me, so do we need to build all the packages again to fix this, or just postpone it to the next release?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 10 Dec 2014, at 20:09, Steven Yi  wrote:
>>>
>>> So xoutset in insert.c is what sets up the pointers for where to copy
>>> from and to for output args.  Since xoutset was never called, the
>>> from-pointers are in the initialized state of NULL.  So when the code
>>> in useropcd1 that copies values tries to copy values from the
>>> from-pointer, we get the segfault.
>>>
>>> We should check if the from or to is not NULL and if so, either skip
>>> it or report an error.  I'm inclined to report an error at that point
>>> as the user has essentially written code that isn't really doing what
>>> the arg types say it is doing. I'll experiment with that right now to
>>> see how that works.
>>>
>>>
>>>> On Wed, Dec 10, 2014 at 3:02 PM, jpff  wrote:
>>>> another data pooint.  AAdding a linexout k(aInput)]
>>>> and it works.  Looks as if some variable is not being created.
>>>>
>>>> ==John
>>>>
>>>>
>>>>> On Wed, 10 Dec 2014, jpff wrote:
>>>>>
>>>>> There is a test in tests/commandline; the test there passes all cases
>>>>>
>>>>> Also insoak test but that was not run
>>>>>
>>>>>> On Wed, 10 Dec 2014, Victor Lazzarini wrote:
>>>>>>
>>>>>> Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?
>>>>>>
>>>>>> Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>> Maynooth University
>>>>>> Ireland
>>>>>>
>>>>>>> On 10 Dec 2014, at 19:45, jpff  wrote:
>>>>>>>
>>>>>>> still crashes for me; lookslike setksmps
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>>>> Get technology previously reserved for billion-dollar corporations, FREE
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>>> Get technology previously reserved for billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> Get technology previously reserved for billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-10 20:25
FromRory Walsh
SubjectRe: [Cs-dev] setksmps problem
I can live with it too. Thanks for looking into it.

On 10 December 2014 at 20:22, Steven Yi  wrote:
> I was implementing this with a check on each in/out, but then realized
> that's a bit much of extra work on each pass.  It seems better to do a
> one-time check that there does indeed exist an xin and xout if
> something was specified, but then again, we also have the ticket to do
> arg type checking on xin/xout.  Ideally both would get addressed at
> the same time. The current behavior is definitely not good but I can
> live with this for now.
>
> On Wed, Dec 10, 2014 at 3:12 PM, Victor Lazzarini
>  wrote:
>> It looks like user error to me, so do we need to build all the packages again to fix this, or just postpone it to the next release?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 10 Dec 2014, at 20:09, Steven Yi  wrote:
>>>
>>> So xoutset in insert.c is what sets up the pointers for where to copy
>>> from and to for output args.  Since xoutset was never called, the
>>> from-pointers are in the initialized state of NULL.  So when the code
>>> in useropcd1 that copies values tries to copy values from the
>>> from-pointer, we get the segfault.
>>>
>>> We should check if the from or to is not NULL and if so, either skip
>>> it or report an error.  I'm inclined to report an error at that point
>>> as the user has essentially written code that isn't really doing what
>>> the arg types say it is doing. I'll experiment with that right now to
>>> see how that works.
>>>
>>>
>>>> On Wed, Dec 10, 2014 at 3:02 PM, jpff  wrote:
>>>> another data pooint.  AAdding a linexout k(aInput)]
>>>> and it works.  Looks as if some variable is not being created.
>>>>
>>>> ==John
>>>>
>>>>
>>>>> On Wed, 10 Dec 2014, jpff wrote:
>>>>>
>>>>> There is a test in tests/commandline; the test there passes all cases
>>>>>
>>>>> Also insoak test but that was not run
>>>>>
>>>>>> On Wed, 10 Dec 2014, Victor Lazzarini wrote:
>>>>>>
>>>>>> Could be to do with the new way args to udos are handled. Might have broken setksmps. I thought he had tested it. Don't we have a setksmps test in the suite?
>>>>>>
>>>>>> Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>> Maynooth University
>>>>>> Ireland
>>>>>>
>>>>>>> On 10 Dec 2014, at 19:45, jpff  wrote:
>>>>>>>
>>>>>>> still crashes for me; lookslike setksmps
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>>>> Get technology previously reserved for billion-dollar corporations, FREE
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>>> Get technology previously reserved for billion-dollar corporations, FREE
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> Get technology previously reserved for billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net