[squeak-dev] Error selector changed

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Apr 12 19:52:22 UTC 2021


Hi Nicolas,


I could not reproduce the problem in a fresh trunk image after 12 attempts. How often do you need to recompile the image in order to experience the error, by average?


Best,

Christoph

<http://www.hpi.de/>
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com>
Gesendet: Montag, 12. April 2021 19:28:35
An: The general-purpose Squeak developers list
Betreff: [squeak-dev] Error selector changed

Hi all,
>From time to time, (Compiler recompileAll) fails because some selector
identity changed...

Indeed, following snippet should always be true, but is sometimes false:

    selector == (Symbol findInterned: selector asString).

In such case, I can attempt a doIt and continue:

    selector beWritableObject; becomeForward: (Symbol findInterned:
selector asString).
    oldClass methodDictionary rehash

Sometimes I'm tempted to integrate the workaround directly in code,
but it would just mask a problem. Any clue on how this can happen?

Nicolas

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


More information about the Squeak-dev mailing list