[PD-dev] Strange error with binbuf and symbol on Linux

Pierre Guillot guillotpierre6 at gmail.com
Tue May 13 20:31:42 CEST 2014


Hi everybody,
I have a strange bug only on Linux.
When I create a t_symbol with @ inside it and try to add it to a binbuf PD
crashes .

dummy code that crashes:

t_gotfn mpreset = zgetfn(&y->g_pd, s_preset);
SETSYMBOL(av, gensym("@zaza"));
binbuf_add(b, 1, av);
mpreset(y, b); (it seems to crash here)

dummy code that works:

t_gotfn mpreset = zgetfn(&y->g_pd, s_preset);
SETSYMBOL(av, gensym("zaza"));
binbuf_add(b, 1, av);
mpreset(y, b);

I don't know if it's a linking problem or if I do something wrong in the
code. Any help will be welcome !

Here the link of the full project : https://github.com/CICM/CicmWrapper
In the CreamLibrary folder, you can use the codeblock project "c.library"
if you want to try it. And the bug is in the function "preset_store" of the
file "c.preset.cpp" in the chocolate subfolder.

Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20140513/1aa53847/attachment.htm>


More information about the Pd-dev mailing list