<p dir="ltr">Forgot to include pd-list...</p>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: "Ivica Bukvic" <<a href="mailto:ico@vt.edu">ico@vt.edu</a>><br>Date: May 19, 2014 2:57 PM<br>Subject: Re: [PD] [expr] external crashing pd<br>
To: "IOhannes m zmoelnig" <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>><br>Cc: <br><br type="attribution"><p dir="ltr">This had been fixed in pd-l2ork a while ago, it is alloc/dealloc error where math is off by one and hence the crash. On top of that pd-l2ork version warns user they have exceeded the number of allowable arguments and fails to create the object this preventing potential problems that may come as a result of improperly instantiated object receiving data. Please dig through recent pd-l2ork commits to find the fix.</p>


<p dir="ltr">HTH</p>
<div class="gmail_quote">On May 19, 2014 1:11 PM, "IOhannes m zmoelnig" <<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
On 2014-05-16 21:12, Kim Cascone wrote:<br>
><br>
> two situations are crashing pd:<br>
><br>
> - when I try to change an expression in the object, like multiply<br>
> a ratio by 2 or something it crashes pd<br>
<br>
unable to reproduce.<br>
<br>
><br>
> - when I attempt to create 10 ratio divisions with outlets (try<br>
> adding one to the patch I've attached below) it crashes the app as<br>
> well<br>
><br>
> is this a known bug?<br>
<br>
kind of.<br>
looking at the sources of expr i see (extra/expr~/vexp.h):<br>
<br>
<snip><br>
/*<br>
 * Currently the maximum number of variables (inlets) that are supported<br>
 * is 10.<br>
 */<br>
#define MAX_VARS        9<br>
</snip><br>
<br>
and later (showing that not only the "inlets" are limited, but also<br>
the number of outlets is hardcoded to MAX_VARS):<br>
<snap><br>
  t_outlet *exp_outlet[MAX_VARS];<br>
</snap><br>
<br>
so you cannot have more than 9 inlets.<br>
expr should not crash though, and instead print something to the<br>
pd-console, that tells you about that problem.<br>
<br>
so for now, my hint would be to not use [expr] and instead do explicit<br>
patching.<br>
in your case this is pretty straightforward (see attached patch...)<br>
<br>
<br>
fgamsdr<br>
IOhannes<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1<br>
Comment: Using GnuPG with Icedove - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
iQIcBAEBCAAGBQJTebUxAAoJELZQGcR/ejb4hnsP/3dvJEqN4NxNgl3btxfLa3dj<br>
ooCiAqlJgUZjnA4n49Qr8E1IAXd+/9fjn5YcSOa99C6mH064JxkIXlQGX7OVYJZh<br>
k1xQGyv5zzXssmttVsxEdslIRJMEtkiPC7JL8zCOVPAxV8+GP02Vxy2lir5dNrGJ<br>
Q6zPk0adM7WVmsJdmMontAgRMglurtcvO+vgjblFukDLWO2ZbDRM1d6K/NnPg7cq<br>
lCu6/KbcEetOqAlCqFXlZwAvlDr102TewMQVW3WegqsssRsY5gLMxB9GiO7dMIMD<br>
84PgUHLb6VOY+Ee1tEcGU2nRD5dLXJH48d3V7D0zP+V4T9bC6P5q9FC0h87KcFrI<br>
S0JCkLqUAjTN0jMvkiYW48P3s6UhfKWylaqRntUynSuUNW2cfwv26minOvX1d4T2<br>
eQhkbRQnymAppsGivwGhajeje8zG/RtLKo2DycSUjtChHdptWY0DMDbZFO8YKgT2<br>
/GwBXfBYbYKDIGELvBR+vjFDnkozWNaMZRziAxczuCcheq+lmBvcBsSxCWlMxtDF<br>
LjJvh0m3BezcE6HQK4+TG7DcCtpLm6gTcB9WElV3eledVoo7/FC9jPJIzJ/G/cru<br>
dNrwovc1uoU4GjLyW5roIcgch6HrrOFh2GoMSJyqL9IgNdQ6EA0Ug2UjIMXoFY0Z<br>
7P2SQpFZQHUbPBHhZhtm<br>
=rNx0<br>
-----END PGP SIGNATURE-----<br>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div>
</div>