Hi Mariano,<div><br></div><div>   this looks like a Cog VM bug.  You should try and create a reproducible case and then send it to me.<br><br><div class="gmail_quote">On Mon, Dec 20, 2010 at 5:31 AM, Mariano Martinez Peck <span dir="ltr">&lt;<a href="mailto:marianopeck@gmail.com">marianopeck@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;"> <br>Hi Eliot. I am having some asserts failing while running my tests. Most of them during the sweep phase of the GC. <br>
<br>The two places where it fails is in <br><br>- NewCoObjectMemory &gt;&gt; lastPointerWhileForwarding: oop   <br>
<br>if fails the assert:       self assert: (coInterpreter cCoerceSimple: methodHeader to: #&#39;CogMethod *&#39;) cmType = CMMethod.<br>In different runs, the cmType answer me 1 (CMFree)<br><br>- NewCoObjectMemory &gt;&gt; lastPointerOf: oop recordWeakRoot: recordWeakRoot &quot;&lt;Boolean&gt;&quot;<br>

<br>and it fails in the same assert:        self assert: (coInterpreter cCoerceSimple: methodHeader to: #&#39;CogMethod *&#39;) cmType = CMMethod.<br>    <br>In different runs, I got values 0 or 6. BTW....seing:<br><br>initializeCogMethodConstants<br>

    CMOpenPIC := 1 + (CMClosedPIC := 1 + (CMBlock := 1 +(CMMethod := 1 + (CMFree := 1))))<br><br>I cannot understand how can I get 0 or 6....<br><br><br>Anyway, my question is if you have a clue of what can be happening so that those asserts are failing. I am using Objects as methods, but normal objects (subclasses of ProtoObject).<br>

<br>Thanks in advance,<br><br>mariano<br>
<br></blockquote></div><br></div>