<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 27, 2016 at 10:32 AM, Ben Coman <span dir="ltr">&lt;<a href="mailto:btc@openinworld.com" target="_blank">btc@openinworld.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On Tue, Jun 28, 2016 at 1:04 AM, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Ben,<br>
&gt;<br>
&gt; On Sun, Jun 26, 2016 at 6:44 AM, Ben Coman &lt;<a href="mailto:btc@openinworld.com">btc@openinworld.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Sun, Jun 26, 2016 at 8:37 PM, Petr Fischer &lt;<a href="mailto:petr.fischer@me.com">petr.fischer@me.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Yes there is &quot;PharoVMBuilder buildFreeBSD&quot;, but some &quot;cog*&quot; errors occurs... So I am still building with &quot;PharoVMSpur32Builder buildUnix32&quot; under Linux (CentOS6) and then move compiled vm to my FreeBSD box with Linux compatibility layer.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I compiled DEBUG vm version according to your advice and this is gdb output:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Program received signal SIGSEGV, Segmentation fault.<br>
&gt;&gt; &gt; 0x080aefc1 in scavengeReferentsOf (referrer=684415032) at /home/pf/pharo/pharo-vm-debug/src/vm/gcc3x-cointerp.c:39014<br>
&gt;&gt; &gt; 39014   if (((longAt(referent)) &amp; ((classIndexMask()) - (isForwardedObjectClassIndexPun()))) == 0) {<br>
&gt;&gt;<br>
&gt;&gt; The C files are generated from VMMaker and the line numbers change a<br>
&gt;&gt; lot.  If you look upwards in the C file you should see a generated<br>
&gt;&gt; comment that links to the Smalltalk source it was generated from.<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I need to learn a little, how to play this &quot;core C&quot; game in gdb...<br>
&gt;&gt; &gt; What next?<br>
&gt;&gt;<br>
&gt;&gt; I recently learnt a bit of using gdb on the image.  I&#39;m planning to<br>
&gt;&gt; write up something but its a few weeks off.  The old post How to debug<br>
&gt;&gt; the VM? [1] by Mariano needs a bit of adaption, but got me off to a<br>
&gt;&gt; good start.  If you look in VMMaker package where  #printAllStacks  is<br>
&gt;&gt; defined you&#39;ll see some others you can call, that just print the<br>
&gt;&gt; current Smalltalk call stack.<br>
&gt;&gt;<br>
&gt;&gt; [1] <a href="https://marianopeck.wordpress.com/2011/04/23/how-to-debug-the-vm/" rel="noreferrer" target="_blank">https://marianopeck.wordpress.com/2011/04/23/how-to-debug-the-vm/</a><br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; A also compiled PharoS (Pharo Stack) VM, and it&#39;s 5x slower, but stable, there is no stack errors (or other crashes) like in cog spur vm.<br>
&gt;&gt;<br>
&gt;&gt; You might also try compiling the VM from upstream sources[2], running either:<br>
&gt;&gt; * vm/build.linux32x86/squeak.cog.spur/build.debug/mvm<br>
&gt;&gt; * vm/build.linux64x64/squeak.cog.spur/build.debug/mvm<br>
&gt;&gt;<br>
&gt;&gt; Did you try the early 64-bit Pharo Image [3] suggested by Esteban in<br>
&gt;&gt; another thread ?<br>
&gt;&gt;<br>
&gt;&gt; Also, you might try Squeak 64-bit Image, since its the platform Eliot<br>
&gt;&gt; develops the VM on, so it is further advanced in 64-bit stability.<br>
&gt;<br>
&gt;<br>
&gt; That&#39;s not true.  I develop on Mac OS X using Spur and the 32-bit VM.  I do run the 64-bit system from time to time and am currently collaborating with Bob Westergaard to move the Cadence system over to 64-bits.  I do hope to use 64-bit Spur from day-to-day but am not there yet, not for any reasons of deficiency in 64-bits but simply because my current, large, project-laden, VMMaker image is in 32-bits and I&#39;ve not changed it over yet.<br>
<br>
</div></div>Thanks for that insight to correct my bad presumption. Strange the<br>
images that develop in my head in isolation.<br>
cheers -ben<br></blockquote><div><br></div><div>:-).  We&#39;ll have to figure out some way of smuggling you to an ESUG :-) </div></div> <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>