[Vm-dev] Arm64 MacOS CogSpur crashes when not using mixed arithmetic

Alan Dao alan.n.dao at gmail.com
Sun Nov 6 17:56:09 UTC 2022


Thanks Eliot! Appreciate the quick fix :)

On Fri, Nov 4, 2022 at 16:53 Eliot Miranda <eliot.miranda at gmail.com> wrote:

>
> Hi, Alan.  I see the problem.  I should be able to fix it quickly. Thank
> you!
>
> On Fri, Nov 4, 2022 at 11:56 AM Alan Dao <alan.n.dao at gmail.com> wrote:
>
>>
>> I've attached the crash.dmp to this email
>>
>> On Thu, Nov 3, 2022 at 10:45 PM Alan Dao <alan.n.dao at gmail.com> wrote:
>>
>>> I've noticed an immediate crash for the CogSpur VM on Arm64 MacOS when
>>> we set the VM parameters to the following.
>>>
>>> Smalltalk vmParameterAt: 48 put: ((Smalltalk vmParameterAt: 48)
>>> bitClear: 64) + 64.
>>>
>>> This issue doesn't happen on the Stack VM. Cuis, my main distro, sets
>>> this VM parameter by default while Squeak does not, but I can cause Squeak
>>> to crash by running the above command as well.
>>>
>>> I looked at the docs and saw this as the comment for the given bitflag.
>>> Squeak comment:
>>> "Bit 6: if set, implies arithmetic primitives will fail if given
>>> arguments of different types (float vs int)"
>>> Cuis comment:
>>> "Bit 6: (on VMs that support it) whether the arithmetic primitives
>>> perform conversion in case of mixed SmallInteger/Float (not set) or fail
>>> (set)
>>> (on VMs that don't support it, those primitives will fail in those
>>> cases)"
>>>
>>> I'm not sure what to make of the functionality, but at the least, it
>>> shouldn't cause the image to crash when set?
>>>
>>> Best,
>>> Alan
>>>
>>
>
> --
> _,,,^..^,,,_
> best, Eliot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20221106/f62104ae/attachment.html>


More information about the Vm-dev mailing list