[squeak-dev] Squeak VM crashes

Jaromir Matas mail at jaromir.net
Mon Jan 24 21:50:55 UTC 2022

Unless someone sees a problem right away I’d try the latest trunk image (http://files.squeak.org/trunk/) to compare the behavior… I’m not an expert though. My PC is too slow so I tried 1 mil repetitions only and nothing funny happened… (both 5.3. and latest trunk)
So I’m curious too ;)

From: Jörg Belger<mailto:unique75 at web.de>
Sent: Monday, January 24, 2022 22:09
To: The general-purpose Squeak developers list<mailto:squeak-dev at lists.squeakfoundation.org>
Subject: [squeak-dev] Squeak VM crashes


After a long time of research I have found now a simple workspace that reproduces the crash I seen in my application. Here is it:

| rows index |
rows := OrderedCollection new.
4000000 timesRepeat: [
        index := (rows size - 100) max: 0.
        rows add: #x afterIndex: index].

It seems to be that it happens easier when the #afterIndex: is more at the end of collection. In my first try I used a random „index“, but the crash happened then only very sporadically. It has something to do with the #add:afterIndex: call, because a simple #add: is working for me. The result for me is that my complete image is shutdown.

Here is the info from the About menu:

latest update: #19459
Current Change Set: HomeProject
Image format 68021 (64 bit)

Virtual Machine
Open Smalltalk Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.3109]
Win32 built on Nov 23 2021 04:45:16 Compiler: Clang 13.0.0
platform sources revision VM: 202111230439 runneradmin at fv-az34-219:/d/a/opensmalltalk-vm/opensmalltalk-vm Date: Mon Nov 22 20:39:09 2021 CommitHash: f30c25c Plugins: 202111230439 runneradmin at fv-az34-219:/d/a/opensmalltalk-vm/opensmalltalk-vm
CoInterpreter VMMaker.oscog-eem.3109 uuid: 28141cc3-6a57-4a86-b9c2-383d8563851b Nov 23 2021
StackToRegisterMappingCogit VMMaker.oscog-eem.3109 uuid: 28141cc3-6a57-4a86-b9c2-383d8563851b Nov 23 2021

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220124/ca8f16ff/attachment.html>

More information about the Squeak-dev mailing list