Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Bug in gen31?

Date2018-01-19 16:13
FromJohn
Subject[Csnd-dev] Bug in gen31?
Just reviewing my collection of csd files for reported bugs I found
this one, buggen31.csd from Sept 2016 crashes spectacularly

*** Error in `./csound': corrupted double-linked list: 0x0000000001ccae20 ***

and more
==14576== Invalid read of size 8
==14576==    at 0x4E8B3D5: gen31 (fgens.c:1821)
==14576==    by 0x4E84AED: hfgens (fgens.c:288)
==14576==    by 0x4FD2932: ftgen_ (ftgen.c:155)
==14576==    by 0x4FD2932: ftgen (ftgen.c:165)
==14576==    by 0x4E8EFB8: init0 (insert.c:238)
==14576==    by 0x4E98A71: musmon (musmon.c:253)
==14576==    by 0x4FB14A6: csoundStart (main.c:492)
==14576==    by 0x401476: main (csound_main.c:322)
==14576==  Address 0x9bbccb0 is 0 bytes after a block of size 4,128 alloc'd
==14576==    at 0x4C2B240: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==14576==    by 0x4E95C77: mcalloc (memalloc.c:113)
==14576==    by 0x4E8B1AA: gen31 (fgens.c:1792)
==14576==    by 0x4E84AED: hfgens (fgens.c:288)
==14576==    by 0x4FD2932: ftgen_ (ftgen.c:155)
==14576==    by 0x4FD2932: ftgen (ftgen.c:165)
==14576==    by 0x4E8EFB8: init0 (insert.c:238)
==14576==    by 0x4E98A71: musmon (musmon.c:253)
==14576==    by 0x4FB14A6: csoundStart (main.c:492)
==14576==    by 0x401476: main (csound_main.c:322)
14576== Invalid read of size 8
==14576==    at 0x4E8B3D5: gen31 (fgens.c:1821)
==14576==    by 0x4E84AED: hfgens (fgens.c:288)
==14576==    by 0x4FD2932: ftgen_ (ftgen.c:155)
==14576==    by 0x4FD2932: ftgen (ftgen.c:165)
==14576==    by 0x4E8EFB8: init0 (insert.c:238)
==14576==    by 0x4E98A71: musmon (musmon.c:253)
==14576==    by 0x4FB14A6: csoundStart (main.c:492)
==14576==    by 0x401476: main (csound_main.c:322)
==14576==  Address 0x9bbccb0 is 0 bytes after a block of size 4,128 alloc'd
==14576==    at 0x4C2B240: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==14576==    by 0x4E95C77: mcalloc (memalloc.c:113)
==14576==    by 0x4E8B1AA: gen31 (fgens.c:1792)
==14576==    by 0x4E84AED: hfgens (fgens.c:288)
==14576==    by 0x4FD2932: ftgen_ (ftgen.c:155)
==14576==    by 0x4FD2932: ftgen (ftgen.c:165)
==14576==    by 0x4E8EFB8: init0 (insert.c:238)
==14576==    by 0x4E98A71: musmon (musmon.c:253)
==14576==    by 0x4FB14A6: csoundStart (main.c:492)
==14576==    by 0x401476: main (csound_main.c:322)

Anyone any further information?  I had this marked as fixed

==John ffitch



-odac -m0


0dbfs = 1
gisine  ftgen   0,0,4096,10,1
gi31    ftgen   0,0,4096,31,gisine, 1,1,0, 2,1,0, 3,1,0
instr 1
 a1 poscil  0.3,300,gi31
    out a1
endin


i 1 0 1

Date2018-01-19 17:49
Fromjpff
SubjectRe: [Csnd-dev] Bug in gen31?
OKFound the typo in gen31 which guarantees a crash.  Committing fix now


On Fri, 19 Jan 2018, John wrote:

> Just reviewing my collection of csd files for reported bugs I found
> this one, buggen31.csd from Sept 2016 crashes spectacularly
>
> *** Error in `./csound': corrupted double-linked list: 0x0000000001ccae20 ***
>