[chuck-dev] segmentation fault, chubgraph with spork at sample rate

Michael Heuer heuermh at gmail.com
Wed Feb 13 18:10:04 EST 2013


Hello,

The following reliably seg faults chuck (I'm using git master)

$ chuck --help

chuck version: 1.3.2.0-beta-1 (chimera)
   mac os x : intel : 64-bit
   http://chuck.cs.princeton.edu/
   http://chuck.stanford.edu/

$ chuck examples/swirl.ck
Segmentation fault: 11

swirl.ck:

class Swirl extends Chubgraph
{
    Gain _cv;
    inlet => Pan2 pan => outlet;

    {
        _cv => blackhole;
        spork ~ _tickAtSampleRate();
    }

    fun void _tickAtSampleRate()
    {
        while (true)
        {
            1::samp => now;
            tick(_cv.last());
        }
    }

    fun float tick(float cv)
    {
        cv => pan.pan;
    }
}

SqrOsc lfo => blackhole;
0.1 => lfo.freq;
1.0 => lfo.gain;

Swirl swirl;
lfo => swirl._cv;

SinOsc osc;
220.0 => osc.freq;
1.0 => osc.gain;

osc => swirl => dac;

10::second => now;

<<<"done">>>;

---

   michael


More information about the chuck-dev mailing list