Hi Chris,<div><br></div><div>    can you package up a reproducible case and point me to the image?  By reproducible I mean save the image with a doit that invokes the code that creates the bug, e.g.</div><div><br><span class="Apple-style-span" style="border-collapse:collapse;font-family:arial,sans-serif;font-size:14px">Smalltalk <span class="il" style="background-image:initial;background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">saveAs</span>: &#39;crash&#39;.<br>
<div class="im" style="color:rgb(80,0,80)">Gofer it<br>        url: &#39;<a href="http://www.squeaksource.com/MetacelloRepository" target="_blank" style="color:rgb(17,85,204)">http://www.squeaksource.com/MetacelloRepository</a>&#39;;<br>
        package: &#39;ConfigurationOfFFI&#39;;<br>        load.<br>(Smalltalk at: #ConfigurationOfFFI) project stableVersion load.</div><div class="im" style="color:rgb(80,0,80)"><br></div><div class="im" style="color:rgb(80,0,80)">
<br></div></span><div class="gmail_quote">On Wed, Mar 6, 2013 at 4:06 PM, Chris Muller <span dir="ltr">&lt;<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Eliot.  Unfortunately, for me my app still crashes instantly with:<br>
<br>
-----------<br>
[ ... big stack trace ... ]<br>
stack page bytes 4096 available headroom 3300 minimum unused headroom 2596<br>
<br>
        (last object overwritten)<br>
-----------<br>
<br>
2640 is stable for me (as long as I don&#39;t use a write-barrier).<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Tue, Mar 5, 2013 at 4:45 PM, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt; at <a href="http://www.mirandabanda.org/files/Cog/VM/VM.r2697/" target="_blank">http://www.mirandabanda.org/files/Cog/VM/VM.r2697/</a><br>
&gt;<br>
&gt; CogVM binaries as per VMMaker.oscog-eem.270/r2697<br>
&gt;<br>
&gt; Fix the become issue where methods that are identical are failing<br>
&gt; the code test because their penultimate literals are different objects.<br>
&gt; Add a flag &quot;cmUsesPenultimateLit&quot; to jitted methods, stealing bits<br>
&gt; from stackCheckOffset (which was way larger than needed).<br>
&gt; Shrink stackCheckOffset to 12 bits (still an order of magnitude larger<br>
&gt; than needed) and add an error check on assigning it.<br>
&gt; Also add a check for max method size (2^16-1 bytes) and refuse to<br>
&gt; jit a method that generates too much code.<br>
&gt; When comparing code, use the cmUsesPenultimateLit flag to decide<br>
&gt; if comparison includes penultimate lit or not.<br>
&gt;<br>
&gt; This is mildly insane, but the VM really doesn&#39;t know about the penultimate<br>
&gt; literal and it shouldn&#39;t depend on knowing it can be ignored.  Note that the<br>
&gt; CoInterpreter knows about the last literal; it uses this in supersends.<br>
&gt; With this hack, Pharo&#39;s condenseSources works.<br>
&gt;<br>
&gt; Fix bug in primitiveClone/cloneContext: that causes the copy to be a word<br>
&gt; short.<br>
&gt; Use isPointerNonInt: and isContextNonInt: in a few places.<br>
&gt;<br>
&gt; Implement unknownBytecode.  Send unknownBytecode to the activeContext on<br>
&gt; unknown bytecode if the selector is in the specialObjectsArray.<br>
&gt;<br>
&gt; Fix page size bug in platforms/Cross/vm/sqHeapMap.c.<br>
&gt;<br>
&gt; --<br>
&gt; best,<br>
&gt; Eliot<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div>