pharo-vm
pharo-vm copied to clipboard
PrimitiveFailed: primitive #integerOfObject:at:put:size:signed: in TFFIBackend failed
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.
Probably here is trying to save a weird number to the ByteArray.
We fix it by doing in StackInterpreter >> receiver
(But then other issues arrive...)