<br><br><div class="gmail_quote">On Mon, Dec 20, 2010 at 7:55 PM, Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@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">


 <br>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></div></blockquote><div><br>Hi Eliot. Define &quot;reproducable case&quot; ;)<br>


Really, I don&#39;t have a simple TestCase/Doit that reproduce this, but I can be sure that when running all my tests (that use objects as methods) it crashes. If it is not in the first time, for SURE in the second. But as said, it is not always in the same place not the same test. Because the problem seems while running an incremental GC.<br>


<br>What I can provide you is a Pharo image, with all my code loaded, and the test runner open with the test you have to run. And promise: if the first time or second, you will have the crash. <br>I tried to upload the image to the gforge project and we have a problem right now with it. I just send it by private email to you. I hope you don&#39;y bother.<br>

<br>I can tell you all this information:<br><br>- My tests are all about using proxies for compiled methods (subclasses of proto object, not SmallInteger).<br>- The crash DOES NOT happens if I compile a StackVM, it ONLY happens in CogVM.<br>

- With Cog, I have the crash with both, Development or Production.</div><div><br></div><div>Thanks A LOT in advance,</div><div><br></div><div>Mariano<br><br><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

<div><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" target="_blank">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"> <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>
<br></blockquote></div><br>