Bug#880011: csound: Macro system on csound make segfault

Mickael Viey m.viey at wanadoo.fr
Fri Nov 10 20:32:28 UTC 2017


Hi,


After another test, It seems that the m statement which cause the segfault.

Consider the two attached csd files. One contains a "m" statement and 
make a segfault, the other doesn't contain it and work as expected.

a link toward documentation about this, I think I use it correctly (the 
file worked on my previous csound version on Debian Jessy):

http://www.csounds.com/manual/html/m.html


Best,

Mik


Le 10/11/2017 à 01:10, Felipe Sateler a écrit :
> Control: forwarded -1 https://github.com/csound/csound/issues/871
>
> 2017-11-08 16:45 GMT-03:00 Mickael Viey <m.viey at wanadoo.fr 
> <mailto:m.viey at wanadoo.fr>>:
>
>     Le 08/11/2017 à 14:19, Felipe Sateler a écrit :
>
>         Control: forcemerge -1 880010
>         Control: tags -1 moreinfo
>
>         On Sat, Oct 28, 2017 at 7:54 AM, Mickael Viey
>         <m.viey at wanadoo.fr <mailto:m.viey at wanadoo.fr>> wrote:
>
>             Package: csound
>
>             Version: 1:6.08.0~dfsg-1
>             Severity: normal
>
>             Dear Maintainer,
>
>
>             I have some csd files I made on another platforms which
>             generate
>             segfault when running with this version of csound. After
>             diagnostic It
>             appears that the macro system which is responsible.
>
>             By example, this macro works:
>             #define TIME # 0.25 #
>             #define freq # 146 #
>
>
>             #define T # $freq #
>             #define Am # $freq * 17 / 16 #
>             #define AM # $freq * 9/8 #
>
>             But If I had this after te last line:
>
>             #define E # $freq #
>
>             I get a segfault. I will join the complete csd file I used
>             for my tests.
>
>         Weird. I can reproduce on a stretch docker container, but I can't
>         reproduce on sid, either with 6.09 or rebuilding 6.08 . I ran
>         out of
>         time, but could you try rebuilding csound and see if the problem
>         persists?
>
>     Hi,
>
>     I am not sure what you mean by "rebuild" but this is what I done:
>
>
> Thanks, but I meant recompile the csound sources, not just reinstall.
>
> Anyway, I have debugged some more. Turns out the error in sid is still 
> present, it just doesn't cause a crash. I have forwarded upstream to 
> the above url.
>
> The error is not due to the macro, but due to the 3/2 p7. This is 
> invalid syntax, and that triggers the crash/malfunction (the crash is 
> in the error printing code, heh). You can work around the problem by 
> fixing the syntax error and passing 1.5.
>
>
> -- 
>
> Saludos,
> Felipe Sateler

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20171110/c4f5d609/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nobug_without_m.csd
Type: audio/csound
Size: 1596 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20171110/c4f5d609/attachment.csd>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_with_m.csd
Type: audio/csound
Size: 1608 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20171110/c4f5d609/attachment-0001.csd>


More information about the pkg-multimedia-maintainers mailing list