<div dir="ltr">do:<div><br></div><div>String new: -1</div><div><br></div><div>Yes, it doesn't really run out of memory, it's just a bug in ByteString>>basicNew:</div><div><br></div><div><div><span class="gmail-Apple-tab-span" style="white-space:pre">    </span>(ec == #'insufficient object memory' or: [ec == #'bad argument']) ifTrue:</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span>[^self handleFailingBasicNew: sizeRequested].</div></div><div><br></div><div>The VM gives us a nice error code telling us the arguement is bad, and then our code proceeds to assume it is out of memory instead.</div><div><br></div><div>Bug verified in latest Trunk (as of now), and raw 5.1 image.</div><div><br></div><div>A proposed fix is in the inbox:</div><div><a href="http://source.squeak.org/inbox/Kernel-maga.1054.mcz" rel="noreferrer" target="_blank" style="font-size:12.8px">http://source.<span class="gmail-il">squeak</span>.org/<wbr><span class="gmail-il">inbox</span>/Kernel-cbc.1054.mcz</a><br style="font-size:12.8px"></div><div><br></div><div>This fix uses the old " self error: " pattern.  If you'd prefer a new error for invalid argument, I would be happy to post a variant for that.</div><div><br></div><div>Thanks,</div><div>-cbc</div></div>