<div dir="ltr"><div><div><div><div><div>Interestingly, when I recompile on MacOSX, the bug happens on fast version of squeak.stack.v3 but not on debug version!!!<br></div>That means that it&#39;s vain to track the problem with VM simulator.<br></div>It&#39;s also vain to try debugging at C level...<br><br></div>What remains is:<br>Use lldb the unstripped fast version, put a break point in some arithmetic primitive then stepi into assembly.<br></div>Or carefully inspect the compiler warnings (with ./mvm -- WARNINGS=&#39;-Wall -Wextra&#39;) and carefully read generated C code to track for a possible undefined behavior striking.<br></div><div>Or compare generated C code with generated C assembly to understand what&#39;s going on.<br></div>Or instrument the generated code with undefined behavior guards (I don&#39;t remember the clang incantation for that, but it&#39;s possible).<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-02 22:09 GMT+02:00 Nicolas Cellier <span dir="ltr">&lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Laura,<br></div>it sounds like some LargeIntegers arithmetic is broken in v3...<br></div>The clock symptoms is just a side effect.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-02 21:23 GMT+02:00 Laura Perez Cerrato <span dir="ltr">&lt;<a href="mailto:lauraperezcerrato@gmail.com" target="_blank">lauraperezcerrato@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><div dir="ltr"><div>Hello everyone,</div><div><br></div><div>Lately, while working on the VM, I noticed that a few primitives related with the clock on V3 were returning incorrect values. Cloning the repository and building a Squeak Cog V3 VM produces a VM in which DateAndTime class&gt;&gt;#now answers a value closer than a day to the epoch in both Squeak 4.5 and the lastest version of Cuis. In the lastest version of Cuis, Time class&gt;&gt;#primLocalMicrosecondCl<wbr>ock, Time class&gt;&gt;#primLocalSecondClock and Time class&gt;&gt;#primHighResClock return odd values. This problem is seen exclusively on V3 VMs as far as I can tell, independently of the interpreter. </div><div><br></div><div>I wasn&#39;t capable of pinning down the reason for this strange behaviour. If anyone could give me a hand with that, I&#39;d appreaciate it.</div><div><br></div><div>Cheers!</div><div><br></div><div><div><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#000000" size="2">-Laura Perez Cerrato</font></div></div></div>
</div>
<br></blockquote></div><br></div>
</blockquote></div><br></div>