[chuck-dev] segmentation fault on function call

Michael Heuer heuermh at gmail.com
Mon Jan 28 17:48:11 EST 2013


Hello,

The following crashes ChucK

$ chuck --version

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


funCrash.ck:
class Foo
{
    1.0 => float _f;

    fun float foo(float f)
    {
        f => _f;
        return _f;
    }
}

Foo f;
42.0 => f.foo;
<<<"foo", f.foo>>>;

$ chuck funCrash.ck
Segmentation fault: 11

Both the write and read are necessary to make ChucK crash.

   michael


More information about the chuck-dev mailing list