[Vm-dev] [CRASH] I am getting a segmentation fault calling my primitive

Robert Withers robert.withers at pm.me
Sat May 29 18:49:30 UTC 2021


Could the issue be bounds checking in the primitive? But it is a seg-fault, not a #primitiveFailed. Thanks for any and all help! This one has me stumped.

> ((interpreterProxy isBytes: a)
> and: [ (interpreterProxy stSizeOf: a) = 4 ])
> ifFalse: [ ^interpreterProxy primitiveFailFor: PrimErrBadArgument ].
> ((interpreterProxy isBytes: b)
> and: [ (interpreterProxy stSizeOf: b) = 4 ])
> ifFalse: [ ^interpreterProxy primitiveFailFor: PrimErrBadArgument ].

---
Kindly,
Robert

On 5/29/21 2:42 PM, Robert Withers wrote:

> Here is the RSErasurePlugin.so & RSFECPlugin.so so folks may be able to help me test the seg-fault with these plugin and loading the latest RSErasure code:
>
>> Installer ss
>> project: 'Cryptography';
>> install: 'ProCrypto-1-1-1';
>> install: 'ProCryptoTests-1-1-1'.
>
> Here is the code I run that leads to the seg-fault:
>
>> RSErasureGalois newGalois.
>
> ---
> Kindly,
> Robert
>
> On 5/29/21 2:37 PM, Robert Withers wrote:
>
>> Hey y'all,
>>
>> I am getting a segmentation fault calling primitiveGaloisMultiplyBy in
>> my RSErasurePlugin. I have attached the crash.dmp file.
>> Investigating...assistance requested. Grazie!!
>>
>> --
>> ---
>> Kindly,
>> Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20210529/f5864da9/attachment.html>


More information about the Vm-dev mailing list