pharo-vm icon indicating copy to clipboard operation
pharo-vm copied to clipboard

PrimitiveFailed: primitive #integerOfObject:at:put:size:signed: in TFFIBackend failed

Open hernanmd opened this issue 2 years ago • 1 comments

Simulation of the StackVM produces the primitiveFFIIntegerAtPut to fail in Pharo 11 with this script:

| options stackInterpreterSimulator |

VMStackPages  initialize.
options := {
    #ObjectMemory -> #Spur64BitCoMemoryManager.
    #BytesPerWord -> 8
} asDictionary.

stackInterpreterSimulator := StackInterpreterSimulator newWithOptions: options.
stackInterpreterSimulator openOn: Smalltalk imagePath extraMemory: 100000.
stackInterpreterSimulator run.

PrimitiveFailed

hernanmd avatar Aug 21 '23 10:08 hernanmd

Probably here is trying to save a weird number to the ByteArray.

We fix it by doing in StackInterpreter >> receiver image

(But then other issues arrive...)

PalumboN avatar Oct 29 '24 16:10 PalumboN