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

Felipe Sateler fsateler at debian.org
Fri Nov 10 00:10:31 UTC 2017


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>:

> 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> 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/20171109/78c18248/attachment.html>


More information about the pkg-multimedia-maintainers mailing list