And in addition to this assert, there is also one more that fail and it is  StackInterpreter &gt;&gt; createActualMessageTo: lookupClass <br>the assert:  self assert: ((objectMemory isIntegerObject: messageSelector) or: [objectMemory addressCouldBeObj: messageSelector]).<br>
<br>After debugging, I notice that it fails because, it is NOT an integer, and #addressCouldBeObj:  all answers true, but &quot;(self headerType: address) ~= HeaderTypeGC&quot;<br><br>This means that such object, has the header type HeaderTypeGC.<br>
<br>so...maybe with this and the previous mail it can ring a bell in someone&#39;s head.<br><br>Thanks a lot in advance for any hint you can point me.<br><br>Mariano<br><br><br><div class="gmail_quote">On Mon, Dec 20, 2010 at 2:31 PM, 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: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">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><font color="#888888"><br>mariano<br>
</font></blockquote></div><br>