Hello all,
I am having difficulty in debugging my RSPlugin code for Poly>>#initiazeCield:coefficients:, one of 4 new primitives I have written {#initializeField:coefficients:, #runEuclideanAlgorithm, #dividePolyA:polyB: & #decode:twoS:}. One of my new functions is segfaulting.
I make install the build.debug squeak and run kdbg. In kdbg I set the executable, the argument to my image and set a breakpoint inside #primitiveFECInitializePolyFieldSizeCoefficientsOop [1]. When I run the code: RSFECGenericGFPoly>>#newField:coefficients: the kdbg breaks in sqUnixX11 x2sqKeyInput instead of in my primitive. I click run again and it breaks again in sqUnixMain at a function call to sigsegv. I click run once more and squeak exits. I can't catch a break!
Is anyone familiar with this behavior and know a fix?
[1] #primitiveFECInitializePolyFieldSizeCoefficientsOop - https://pastebin.com/QkkBxFjR
Kindly, Robert . .. ... ‘...^,^
Nevermind this email, I have gotten pasty this issue.
--- Kindly, Robert
On 6/14/21 8:09 AM, Robert Withers wrote:
Hello all,
I am having difficulty in debugging my RSPlugin code for Poly>>#initiazeCield:coefficients:, one of 4 new primitives I have written {#initializeField:coefficients:, #runEuclideanAlgorithm, #dividePolyA:polyB: & #decode:twoS:}. One of my new functions is segfaulting.
I make install the build.debug squeak and run kdbg. In kdbg I set the executable, the argument to my image and set a breakpoint inside #primitiveFECInitializePolyFieldSizeCoefficientsOop [1]. When I run the code: RSFECGenericGFPoly>>#newField:coefficients: the kdbg breaks in sqUnixX11 x2sqKeyInput instead of in my primitive. I click run again and it breaks again in sqUnixMain at a function call to sigsegv. I click run once more and squeak exits. I can't catch a break!
Is anyone familiar with this behavior and know a fix?
[1] #primitiveFECInitializePolyFieldSizeCoefficientsOop - https://pastebin.com/QkkBxFjR
Kindly, Robert . .. ... ‘...^,^
vm-dev@lists.squeakfoundation.org