<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Alan,<br>
<br>
On 11/3/2022 4:20 AM, Alan Dao via Cuis-dev wrote:
<blockquote
cite="mid:CA+c6hdjxyF2fNtkFM-QrDJ3cEiBZgptGJZmKj-svXbwA-6uJiw@mail.gmail.com"
type="cite">
<div dir="ltr">Hey all,
<div><br>
</div>
<div>I've recently switched to an Arm64 Macbook. One of the
first things I did on it was launch the latest base image of
Cuis (6.0-5542). To my surprise, the Arm64 CogSpur VM crashes
when launching the base image. However, the Stack VM
successfully launches the base image. I looked at the
crash.dmp and saw that the CogSpur crash was happening in <span
style="color: rgb(0, 0, 0); font-family: Menlo; font-size:
11px;">SystemDictionary>doMixedArithmetic</span>. In the
base image, this method is called with a False value from <span
style="color: rgb(0, 0, 0); font-family: Menlo; font-size:
11px;">SystemDictionary>doStartUp</span>.</div>
<div><br>
</div>
<div>I used the Stack VM to change the image such that <span
style="color: rgb(0, 0, 0); font-family: Menlo; font-size:
11px;">SystemDictionary>doMixedArithmetic</span> is
called with a True value. After this, I was able to
successfully launch the MixedArithmetic image on my Arm64
Macbook.</div>
</div>
</blockquote>
<br>
This looks like a VM bug. You can confirm this by using Squeak or
Pharo, and doing `Smalltalk doMixedArithmethic: false`. It should
also crash. Same with the Cuis image you were able to start by
setting it to true. If so, please report the bug in vm-dev:
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/mailman/listinfo/vm-dev">http://lists.squeakfoundation.org/mailman/listinfo/vm-dev</a><br>
<br>
<blockquote
cite="mid:CA+c6hdjxyF2fNtkFM-QrDJ3cEiBZgptGJZmKj-svXbwA-6uJiw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Does anyone know why using mixed arithmetic isn't the
default? To my surprise, the base images for Pharo and Squeak
were able to launch without any modifications, so I'm assuming
they're by default using mixed arithmetic.</div>
</div>
</blockquote>
<br>
The explanation is in the comment at #doMixedArithmetic. Please take
a look. It is about letting the image (and not the VM) handle
arguably decisions WRT conversions between number types. If you find
it cryptic or have further questions, please ask here.<br>
<br>
<blockquote
cite="mid:CA+c6hdjxyF2fNtkFM-QrDJ3cEiBZgptGJZmKj-svXbwA-6uJiw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I've attached my crash.dmp to this email for those who're
curious.</div>
<div><br>
</div>
<div>Best,</div>
<div>Alan</div>
</div>
</blockquote>
<br>
I'm pretty sure you are the first to exercise this corner of the VM.
Please report in vm-dev. I'm sure they'll fix it.<br>
<br>
Thanks,<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>