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 crash.dmp (46K) Download Attachment |
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:
Here is the code I run that leads to the seg-fault:
---
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 |
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.
---
Kindly, Robert On 5/29/21 2:42 PM, Robert Withers
wrote:
|
In reply to this post by Robert Withers-2
I commented out these argument checks and regenerated and rebuilt the plugins. New plugins are attached. Now the RSErasureGaloisWithPlugin is working, for the following squeak calls.
I still have problems with the RSFECPlugin, calling methods in RSFECGenericGFWithPlugin:
---
Kindly, Robert On 5/29/21 2:49 PM, Robert Withers
wrote:
|
I have an issue with:
In the image I get 2. In the plugin I get 142, which is the value
for index 255 in the expTable. My question is how can I printf to
stdout, inside the plugin code. I tried adding some debug lines to
the c code: printf( "b: %i\n", b ); logA = logTable[a]; logB = logTable[b]; printf( "logA: %i\n", logA ); printf( "logB: %i\n", logB ); logResult = logA - logB; while (logResult <= 0) { logResult += 0xFF; } if (logResult == 0) { return 1; } printf( "logResult: %i\n", logResult ); result = expTable[logResult]; printf( "result: %i\n", result ); This did not work, however. How can I debug the c code? ---
Kindly, Robert On 5/29/21 3:29 PM, Robert Withers
wrote:
|
Free forum by Nabble | Edit this page |