Open techninja1008 opened 5 years ago
I have confirmed that this indeed only occurs on ARM.
[ Quoting notifications@github.com in "Re: [miekg/pkcs11] Double free or c..." ]
I have confirmed that this indeed only occurs on ARM.
That code doesn't look wrong to me. How can a double free be arch specific? C compiler?
I'm genuinely not sure, however I do know that it's the difference between compiling on Ubuntu 18.04 x86_64 and Raspbian stretch lite (with latest stable release of Go) on a Raspberry Pi 3 (armhf). I'll check later to see which C compiler is being used, but it's going to be from the distribution.
On Sun, Mar 17, 2019, 1:04 PM Miek Gieben notifications@github.com wrote:
[ Quoting notifications@github.com in "Re: [miekg/pkcs11] Double free or c..." ]
I have confirmed that this indeed only occurs on ARM.
That code doesn't look wrong to me. How can a double free be arch specific? C compiler?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/miekg/pkcs11/issues/103#issuecomment-473663745, or mute the thread https://github.com/notifications/unsubscribe-auth/AEA4lbZlyXBGEFNWbFSlbD19hQGTOvs1ks5vXj1tgaJpZM4b4Qz2 .
Would GCC 6.3.0 on ARM vs GCC 7.3.0 on x86_64 do it?
Cross compiling to ARM on an x86_64 host using GCC 7.3.0 still yields the same result. Could it be a GO ARM bug?
[ Quoting notifications@github.com in "Re: [miekg/pkcs11] Double free or c..." ]
Cross compiling to ARM on an x86_64 host using GCC 7.3.0 still yields the same result. Could it be a GO ARM bug?
Maybe? Ive never debugged such a thing. Playing around with golang versions might yields some insights (and is relatively easy to do).
Is there any update on the problem ? i am having a very similar issue on arm linux .
[ Quoting notifications@github.com in "Re: [miekg/pkcs11] Double free or c..." ]
Is there any update on the problem ? i am having a very similar issue on arm linux .
Is there an PR?
I believe this relates to the following line: https://github.com/miekg/pkcs11/blob/6120d95c0e9576ccf4a78ba40855809dca31a9ed/pkcs11.go#L1332
I encountered this whilst using ThalesIgnite/crypto11 to add PKCS#11 support to cloudflare/cfssl. This seems to only occur on ARM, as the trace comes from running it on a raspberry pi, and I have been able to get it to work successfully on x86.
Full trace can be found at https://pastebin.com/au1ieLbp